Subversion Repositories svnkaklik

Rev

Rev 498 | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
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
500 kaklik 29
  DEPENDS:=+libptp2 +lusb
498 kaklik 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
 
500 kaklik 37
 
38
CFLAGS=-pedantic -pedantic-errors -Wall $(DEBUG_FLAGS) $(LIBPTP_INC) $(HAVE_READLINE)
39
LDLIBS= -lusb -lptp2
40
 
41
SOURCES     := capture.c  client.c  commands.c  properties.c  ptp-utils.c  server.c  viewfinder.c
42
DEPFILES    := $(SOURCES:.c=.d)
43
OBJS        := capture.o ptp-utils.o server.o client.o properties.o commands.o
44
 
45
 
498 kaklik 46
define Build/Compile
500 kaklik 47
	cd $(PKG_BUILD_DIR)
48
	$(TOOLCHAIN_DIR)/bin/$(TARGET_CC)  $(CFLAGS) $(DEFINES) $(LDLIBS) -o $(PKG_BUILD_DIR)/capture
498 kaklik 49
endef
50
 
51
define Package/capture/install
52
	$(INSTALL_DIR) $(1)/usr/package
53
	$(CP) $(PKG_INSTALL_DIR)/usr/package/package.so.* $(1)/usr/package/
54
	$(INSTALL_DIR) $(1)/etc/init.d
55
	$(INSTALL_BIN) ./files/package.init $(1)/etc/init.d/package
56
	$(INSTALL_DIR) $(1)/etc/config/
57
	$(INSTALL_CONF) $(1)/etc/config/package
58
endef
59
 
60
$(eval $(call BuildPackage,capture))