Subversion Repositories svnkaklik

Rev

Rev 498 | Blame | Compare with Previous | Last modification | View Log | Download

# 
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# This Makefile is a skeleton
#
# $Id: $

include $(TOPDIR)/rules.mk

PKG_NAME:=capture
PKG_VERSION:=1.0.4-cvs-20071123

PKG_SOURCE:=capture-1.0.4-cvs-20071123.tar.gz
PKG_SOURCE_URL:=@SF/capture
PKG_MD5SUM:=

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install

include $(INCLUDE_DIR)/package.mk

define Package/capture
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Canon Capture
  DEPENDS:=+libptp2 +lusb
  URL:=http://capture.sourceforge.net/
endef

define Package/capture/description
        Capture is a tool for periodic image capturing with digital Canon cameras.
endef


CFLAGS=-pedantic -pedantic-errors -Wall $(DEBUG_FLAGS) $(LIBPTP_INC) $(HAVE_READLINE)
LDLIBS= -lusb -lptp2

SOURCES     := capture.c  client.c  commands.c  properties.c  ptp-utils.c  server.c  viewfinder.c
DEPFILES    := $(SOURCES:.c=.d)
OBJS        := capture.o ptp-utils.o server.o client.o properties.o commands.o


define Build/Compile
        cd $(PKG_BUILD_DIR)
        $(TOOLCHAIN_DIR)/bin/$(TARGET_CC)  $(CFLAGS) $(DEFINES) $(LDLIBS) -o $(PKG_BUILD_DIR)/capture
endef

define Package/capture/install
        $(INSTALL_DIR) $(1)/usr/package
        $(CP) $(PKG_INSTALL_DIR)/usr/package/package.so.* $(1)/usr/package/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/package.init $(1)/etc/init.d/package
        $(INSTALL_DIR) $(1)/etc/config/
        $(INSTALL_CONF) $(1)/etc/config/package
endef

$(eval $(call BuildPackage,capture))