Subversion Repositories svnkaklik

Rev

Rev 498 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 498 Rev 500
Line 24... Line 24...
24
 
24
 
25
define Package/capture
25
define Package/capture
26
  SECTION:=utils
26
  SECTION:=utils
27
  CATEGORY:=Utilities
27
  CATEGORY:=Utilities
28
  TITLE:=Canon Capture
28
  TITLE:=Canon Capture
29
  DEPENDS:=+libptp2
29
  DEPENDS:=+libptp2 +lusb
30
  URL:=http://capture.sourceforge.net/
30
  URL:=http://capture.sourceforge.net/
31
endef
31
endef
32
 
32
 
33
define Package/capture/description
33
define Package/capture/description
34
	Capture is a tool for periodic image capturing with digital Canon cameras.
34
	Capture is a tool for periodic image capturing with digital Canon cameras.
35
endef
35
endef
36
 
36
 
-
 
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
 
37
define Build/Compile
46
define Build/Compile
-
 
47
	cd $(PKG_BUILD_DIR)
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
48
	$(TOOLCHAIN_DIR)/bin/$(TARGET_CC)  $(CFLAGS) $(DEFINES) $(LDLIBS) -o $(PKG_BUILD_DIR)/capture
39
	install
-
 
40
endef
49
endef
41
 
50
 
42
define Package/capture/install
51
define Package/capture/install
43
	$(INSTALL_DIR) $(1)/usr/package
52
	$(INSTALL_DIR) $(1)/usr/package
44
	$(CP) $(PKG_INSTALL_DIR)/usr/package/package.so.* $(1)/usr/package/
53
	$(CP) $(PKG_INSTALL_DIR)/usr/package/package.so.* $(1)/usr/package/