From 07ddab787098138333402fe5124d3f5d0bb04035 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Thu, 12 Feb 2009 21:05:01 +0000 Subject: [PATCH] Add libgamin package. SVN-Revision: 14489 --- desktop/libs/libgamin/Makefile | 79 +++++++++++++++++++ desktop/libs/libgamin/patches/configure.patch | 13 +++ 2 files changed, 92 insertions(+) create mode 100644 desktop/libs/libgamin/Makefile create mode 100644 desktop/libs/libgamin/patches/configure.patch diff --git a/desktop/libs/libgamin/Makefile b/desktop/libs/libgamin/Makefile new file mode 100644 index 0000000..d235745 --- /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 0000000..6ba13d0 --- /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. */ -- 2.30.2