X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=libs%2Flibgphoto2%2FMakefile;h=3679e013cc95c6364153bd73a8e89e69ed9a645a;hb=38ad0b9b031cbe53d82406bf8d82cb225706a005;hp=0883759142c321233a1cd8edbc4db0b0f5ef1c5b;hpb=13fb59dd0549e4f09ae3600298eda16396cb95f1;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/libs/libgphoto2/Makefile b/libs/libgphoto2/Makefile index 0883759142..3679e013cc 100644 --- a/libs/libgphoto2/Makefile +++ b/libs/libgphoto2/Makefile @@ -1,27 +1,26 @@ -# -# 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:=libgphoto2 -PKG_VERSION:=2.3.1 +PKG_VERSION:=2.4.9 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@SF/gphoto -PKG_MD5SUM:=37f85e34e5b6031ddf6cac8b8782ac4f +PKG_MD5SUM:=32b233189e3df7e5e67d2a81163682b8 -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install +PKG_FIXUP:=libtool +PKG_LIBTOOL_PATHS:=. libgphoto2_port +PKG_INSTALL:=1 include $(INCLUDE_DIR)/package.mk - define Package/libgphoto2/Default SECTION:=libs CATEGORY:=Libraries @@ -41,41 +40,37 @@ define Package/libgphoto2-drivers TITLE:=Gphoto2 drivers for various cameras endef -define Build/Configure - $(call Build/Configure/Default, \ - --enable-shared \ - --enable-static \ - --disable-rpath \ - --with-drivers=all \ - --without-included-ltdl \ - --without-libiconv-prefix \ - --without-libintl-prefix \ - , \ - CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libiconv/include" \ - LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \ - LIBEXIF_CFLAGS="$$$$CPPFLAGS" \ - LIBEXIF_LIBS="$$$$LDFLAGS -lexif" \ - LIBUSB_CFLAGS="$$$$CPPFLAGS" \ - LIBUSB_LIBS="$$$$LDFLAGS -lusb" \ - LIBS="-lltdl" \ - ) -endef - -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - DESTDIR="$(PKG_INSTALL_DIR)" \ - LIBLTDL="" \ - all install -endef +CONFIGURE_ARGS += \ + --enable-shared \ + --enable-static \ + --disable-rpath \ + --with-drivers=all \ + --without-included-ltdl \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + +CONFIGURE_VARS += \ + CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libiconv/include" \ + LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \ + LIBEXIF_CFLAGS="$$$$CPPFLAGS" \ + LIBEXIF_LIBS="$$$$LDFLAGS -lexif" \ + LIBUSB_CFLAGS="$$$$CPPFLAGS" \ + LIBUSB_LIBS="$$$$LDFLAGS -lusb" \ + LIBS="-lltdl" \ + +MAKE_FLAGS += \ + LIBLTDL="" \ + +TARGET_CFLAGS += $(FPIC) define Build/InstallDev - mkdir -p $(1)/usr/bin + $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gphoto2{,-port}-config $(1)/usr/bin/ - mkdir -p $(1)/usr/include + $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/gphoto2 $(1)/usr/include/ - mkdir -p $(1)/usr/lib + $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgphoto2{,_port}.{a,so*} $(1)/usr/lib/ - mkdir -p $(1)/usr/lib/pkgconfig + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libgphoto2.pc $(1)/usr/lib/pkgconfig/ $(SED) 's,-I$$$${prefix}/include/gphoto2,,g' $(1)/usr/bin/gphoto2{,-port}-config $(SED) 's,-I$$$${prefix}/include,,g' $(1)/usr/bin/gphoto2{,-port}-config @@ -83,14 +78,6 @@ define Build/InstallDev rm -f $(1)/usr/include/gphoto2/gphoto2 endef -define Build/UninstallDev - rm -rf \ - $(STAGING_DIR)/usr/bin/gphoto2-config \ - $(STAGING_DIR)/usr/bin/gphoto2-port-config \ - $(STAGING_DIR)/usr/include/gphoto2* \ - $(STAGING_DIR)/usr/lib/libgphoto*.{a,so*} -endef - define Package/libgphoto2/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgphoto2{,_port}.so.* $(1)/usr/lib/