498 |
kaklik |
1 |
#
|
|
|
2 |
# Copyright (C) 2007 OpenWrt.org
|
|
|
3 |
#
|
|
|
4 |
# This is free software, licensed under the GNU General Public License v2.
|
|
|
5 |
# See /LICENSE for more information.
|
|
|
6 |
#
|
|
|
7 |
# This Makefile is a skeleton
|
|
|
8 |
#
|
|
|
9 |
# $Id: $
|
|
|
10 |
|
|
|
11 |
include $(TOPDIR)/rules.mk
|
|
|
12 |
|
|
|
13 |
PKG_NAME:=capture
|
|
|
14 |
PKG_VERSION:=1.0.4-cvs-20071123
|
|
|
15 |
|
|
|
16 |
PKG_SOURCE:=capture-1.0.4-cvs-20071123.tar.gz
|
|
|
17 |
PKG_SOURCE_URL:=@SF/capture
|
|
|
18 |
PKG_MD5SUM:=
|
|
|
19 |
|
|
|
20 |
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
21 |
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
22 |
|
|
|
23 |
include $(INCLUDE_DIR)/package.mk
|
|
|
24 |
|
|
|
25 |
define Package/capture
|
|
|
26 |
SECTION:=utils
|
|
|
27 |
CATEGORY:=Utilities
|
|
|
28 |
TITLE:=Canon Capture
|
|
|
29 |
DEPENDS:=+libptp2
|
|
|
30 |
URL:=http://capture.sourceforge.net/
|
|
|
31 |
endef
|
|
|
32 |
|
|
|
33 |
define Package/capture/description
|
|
|
34 |
Capture is a tool for periodic image capturing with digital Canon cameras.
|
|
|
35 |
endef
|
|
|
36 |
|
|
|
37 |
define Build/Compile
|
|
|
38 |
$(TOOLCHAIN_DIR)/bin/$(TARGET_CC) -Wall $(PKG_BUILD_DIR)/capture.c $(PKG_BUILD_DIR)/client.c $(PKG_BUILD_DIR)/commands.c $(PKG_BUILD_DIR)/properties.c $(PKG_BUILD_DIR)/ptp-utils.c $(PKG_BUILD_DIR)/server.c $(PKG_BUILD_DIR)/viewfinder.c -lusb -lptp2 -o $(PKG_INSTALL_DIR)/capture
|
|
|
39 |
install
|
|
|
40 |
endef
|
|
|
41 |
|
|
|
42 |
define Package/capture/install
|
|
|
43 |
$(INSTALL_DIR) $(1)/usr/package
|
|
|
44 |
$(CP) $(PKG_INSTALL_DIR)/usr/package/package.so.* $(1)/usr/package/
|
|
|
45 |
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
46 |
$(INSTALL_BIN) ./files/package.init $(1)/etc/init.d/package
|
|
|
47 |
$(INSTALL_DIR) $(1)/etc/config/
|
|
|
48 |
$(INSTALL_CONF) $(1)/etc/config/package
|
|
|
49 |
endef
|
|
|
50 |
|
|
|
51 |
$(eval $(call BuildPackage,capture))
|