X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=multimedia%2Fgphoto2%2FMakefile;h=0a8fc0c429a36a654550bc480774cf527b7355cc;hp=38b44879333887dd74e0b1e3e70c1472f3e6d5bf;hb=8e013b855eb03530940cb29d816c1904161362c4;hpb=51fb4e32a0a1b74b8a708d4831f5459737cbf19e diff --git a/multimedia/gphoto2/Makefile b/multimedia/gphoto2/Makefile index 38b4487933..0a8fc0c429 100644 --- a/multimedia/gphoto2/Makefile +++ b/multimedia/gphoto2/Makefile @@ -1,60 +1,53 @@ -# -# Copyright (C) 2006 OpenWrt.org +# +# Copyright (C) 2006-2010 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -# $Id: $ include $(TOPDIR)/rules.mk PKG_NAME:=gphoto2 -PKG_VERSION:=2.2.0 +PKG_VERSION:=2.4.8 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@SF/gphoto -PKG_MD5SUM:=f5c1f83185db598b4ca52889964a5e84 -PKG_CAT:=bzcat +PKG_MD5SUM:=401e403ea6e8301d6c87cbe7cd892b8b -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install +PKG_FIXUP:=libtool +PKG_INSTALL:=1 include $(INCLUDE_DIR)/package.mk define Package/gphoto2 SECTION:=multimedia CATEGORY:=Multimedia - DEPENDS:=+libexif +libgphoto2 +libltdl +libpopt +libpthread + DEPENDS:=+libgphoto2 +libpopt +libpthread TITLE:=Gphoto Digital Camera Control - DESCRIPTION:=For downloading and controlling digital cameras URL:=http://www.gphoto.org/ endef -define Build/Configure - $(call Build/Configure/Default, \ - --without-libiconv-prefix \ - --without-libintl-prefix \ - , \ - LIBGPHOTO2_CFLAGS="$$$$CFLAGS -I$(STAGING_DIR)/usr/include/gphoto2 $$$$CPPFLAGS" \ - LIBGPHOTO2_LIBS="$$$$LDFLAGS -lgphoto2 -lgphoto2_port -lltdl" \ - LIBEXIF_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \ - LIBEXIF_LIBS="$$$$LDFLAGS -lexif" \ - POPT_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \ - POPT_LIBS="$$$$LDFLAGS -lpopt" \ - ) +define Package/gphoto2/description + For downloading and controlling digital cameras endef -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - DESTDIR="$(PKG_INSTALL_DIR)" \ - all install -endef +CONFIGURE_ARGS += \ + --without-aalib \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + +CONFIGURE_VARS += \ + LIBGPHOTO2_CFLAGS="$$$$CFLAGS -I$(STAGING_DIR)/usr/include/gphoto2 $$$$CPPFLAGS" \ + LIBGPHOTO2_LIBS="$$$$LDFLAGS -lgphoto2 -lgphoto2_port -lltdl" \ + LIBEXIF_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \ + LIBEXIF_LIBS="$$$$LDFLAGS -lexif" \ + POPT_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \ + POPT_LIBS="$$$$LDFLAGS -lpopt" \ define Package/gphoto2/install - install -d -m0755 $(1)/usr/bin - $(CP) $(PKG_INSTALL_DIR)/usr/bin/gphoto2 $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/ endef - $(eval $(call BuildPackage,gphoto2))