Add libstartup-notification pcakage.
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 12 Feb 2009 12:48:16 +0000 (12:48 +0000)
committerLars-Peter Clausen <lars@metafoo.de>
Thu, 12 Feb 2009 12:48:16 +0000 (12:48 +0000)
SVN-Revision: 14485

desktop/libs/libstartup-notification/Makefile [new file with mode: 0644]

diff --git a/desktop/libs/libstartup-notification/Makefile b/desktop/libs/libstartup-notification/Makefile
new file mode 100644 (file)
index 0000000..d43ca00
--- /dev/null
@@ -0,0 +1,61 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=startup-notification
+PKG_VERSION:=0.9
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.9
+PKG_MD5SUM:=624b42f1fac5a12c543a079e2cd3b366
+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+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
+                          -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
+                          -L$(STAGING_DIR)/usr/lib/libiconv/lib/
+
+define Package/libstartup-notification
+  SECTION:=xorg-libs
+  CATEGORY:=Xorg
+  SUBMENU:=libraries
+  TITLE:=libstartup-notification
+  URL:=http://freedesktop.org/wiki/Software/startup-notification
+  DEPENDS:=+libX11 +libSM +libICE +libXt
+endef
+
+define Build/Configure
+       $(call Build/Configure/Default, \
+               , \
+               lf_cv_sane_realloc=no \
+       )
+endef
+
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/{lib/pkgconfig,include/startup-notification-1.0/libsn}
+
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/lib/libstartup-notification-1.{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/startup-notification-1.0/libsn/*.h \
+               $(1)/usr/include/startup-notification-1.0/libsn/
+endef
+
+define Package/libstartup-notification/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) \
+               $(PKG_INSTALL_DIR)/usr/lib/libstartup-notification-1.so* \
+               $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libstartup-notification))