From: Lars-Peter Clausen Date: Thu, 12 Feb 2009 21:05:01 +0000 (+0000) Subject: Add libgamin package. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9d33961a58212ba6286ee1cd94460e49d79f55fa;p=openwrt%2Fsvn-archive%2Farchive.git Add libgamin package. SVN-Revision: 14489 --- diff --git a/desktop/libs/libgamin/Makefile b/desktop/libs/libgamin/Makefile new file mode 100644 index 0000000000..d23574528d --- /dev/null +++ b/desktop/libs/libgamin/Makefile @@ -0,0 +1,79 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=gamin +PKG_VERSION:=0.1.10 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.1 +PKG_MD5SUM:=2e2d9ea71f34e0aa22a700ddbff05385 +PKG_FIXUP:=libtool +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libintl/include \ + -I$(STAGING_DIR)/usr/libiconv/include + +EXTRA_LDFLAGS+= -L$(STAGING_DIR)/usr/lib/libintl/lib/ \ + -L$(STAGING_DIR)/usr/lib/libiconv/lib/ +# -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/libgamin + SECTION:=libs + CATEGORY:=Libraries + TITLE:=libgamin + URL:=http://www.gnome.org/~veillard/gamin/ + DEPENDS:=+glib2 +endef + +define Package/gamin-server + SECTION:=utils + CATEGORY:=Utilities + TITLE:=gamin-server + URL:=http://www.gnome.org/~veillard/gamin/ + DEPENDS:=+glib2 +libgamin +endef + +define Build/Configure + $(call Build/Configure/Default, \ + --libexecdir=/usr/lib/gamin \ + --disable-debug \ + --enable-server \ + --without-python \ + ) +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/} + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/*.{so*,la,a} \ + $(1)/usr/lib/ + + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \ + $(1)/usr/lib/pkgconfig/ + + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)/usr/include/*.h \ + $(1)/usr/include/ +endef + +define Package/libgamin/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/*.so* \ + $(1)/usr/lib/ +endef + +define Package/gamin-server/install + $(INSTALL_DIR) $(1)/usr/lib/gamin + $(INSTALL_BIN) \ + $(PKG_INSTALL_DIR)/usr/lib/gamin/gam_server \ + $(1)/usr/lib/gamin/ +endef + +$(eval $(call BuildPackage,libgamin)) +$(eval $(call BuildPackage,gamin-server)) diff --git a/desktop/libs/libgamin/patches/configure.patch b/desktop/libs/libgamin/patches/configure.patch new file mode 100644 index 0000000000..6ba13d053d --- /dev/null +++ b/desktop/libs/libgamin/patches/configure.patch @@ -0,0 +1,13 @@ +diff --git a/configure b/configure +index e7248f2..cf630ac 100755 +--- a/configure ++++ b/configure +@@ -23586,7 +23586,7 @@ if test "$cross_compiling" = yes; then + See \`config.log' for more details." >&5 + echo "$as_me: error: cannot run test program while cross compiling + See \`config.log' for more details." >&2;} +- { (exit 1); exit 1; }; } ++ } + else + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */