Subversion Repositories svnkaklik

Compare Revisions

Ignore whitespace Rev 497 → Rev 498

/programy/C/mips/capture/Makefile
0,0 → 1,51
#
# 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
URL:=http://capture.sourceforge.net/
endef
 
define Package/capture/description
Capture is a tool for periodic image capturing with digital Canon cameras.
endef
 
define Build/Compile
$(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
install
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))