Subversion Repositories svnkaklik

Compare Revisions

Regard 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))
/programy/C/mips/libptp/Makefile
0,0 → 1,65
#
# 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:=libptp2
PKG_VERSION:=1.1.10
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://downloads.sourceforge.net/libptp/
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/libptp2
SECTION:=lib
CATEGORY:=Libraries
TITLE:=Picture Transfer Protocol library
URL:=http://sourceforge.net/projects/libptp/
endef
 
define Package/libptp2/description
Library communicating with PTP enabled devices (digital photo cameras and so on).
endef
 
CONFIGURE_ARGS += \
--disable-ptpcam \
 
define Build/Compile
# pass CFLAGS again to override -O2 set by configure
$(MAKE) -C $(PKG_BUILD_DIR) \
CFLAGS="$(TARGET_CFLAGS)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
 
 
define Build/InstallDev
mkdir -p $(1)/usr/include/libptp2
$(CP) $(PKG_INSTALL_DIR)/usr/include/libptp2/*.h $(1)/usr/include/libptp2/
mkdir -p $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libptp2.{a,so*} $(1)/usr/lib/
endef
 
define Build/UninstallDev
rm -rf $(1)/usr/include/package \
$(1)/usr/package/package.{a,so*}
endef
 
define Package/libptp2/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libptp2.so* $(1)/usr/lib/
endef
 
$(eval $(call BuildPackage,libptp2))