2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_URL
:=@SF
/gphoto
18 PKG_MD5SUM
:=f5c1f83185db598b4ca52889964a5e84
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/gphoto2
28 DEPENDS
:=+libusb
+libexif
+libpopt
+libgphoto2
29 TITLE
:=Gphoto Digital Camera Control
30 DESCRIPTION
:=For downloading and controlling digital cameras
31 URL
:=http
://www.gphoto.org
41 ifeq ($(ARCH
),powerpc
)
45 define Build
/Configure
46 $(call Build
/Configure
/Default
,--without-libiconv-prefix \
47 --without-libintl-prefix \
48 $(DISABLE_LARGEFILE
) \
51 --enable-static
,LIBGPHOTO2_CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/gphoto2" \
52 LIBGPHOTO2_LIBS
="-L$(STAGING_DIR)/usr/lib -lgphoto2_port -lgphoto2" \
53 LIBEXIF_CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
54 LIBEXIF_LIBS
="-L$(STAGING_DIR)/usr/lib -lexif" \
55 POPT_CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
56 POPT_LIBS
="-L$(STAGING_DIR)/usr/lib -lpopt" \
57 ac_cv_c_bigendian
=$(BIG_ENDIAN
) \
58 ac_cv_func_malloc_0_nonnull
=yes
)
62 $(call Build
/Compile
/Default
,DESTDIR
="$(PKG_INSTALL_DIR)" \
66 define Package
/gphoto2
/install
67 install -d
-m0755
$(1)/usr
/bin
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/gphoto2
$(1)/usr
/bin
/
72 $(eval
$(call BuildPackage
,gphoto2
))