add libmatchbox
authorFelix Fietkau <nbd@openwrt.org>
Fri, 25 Jan 2008 11:24:00 +0000 (11:24 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 25 Jan 2008 11:24:00 +0000 (11:24 +0000)
SVN-Revision: 10248

XOrg/lib/libmatchbox/Makefile [new file with mode: 0644]

diff --git a/XOrg/lib/libmatchbox/Makefile b/XOrg/lib/libmatchbox/Makefile
new file mode 100644 (file)
index 0000000..9937cac
--- /dev/null
@@ -0,0 +1,40 @@
+# 
+# Copyright (C) 2007 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# blogic@openwrt.org 
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libmatchbox
+PKG_RELEASE:=1
+PKG_VERSION:=1.9
+PKG_SOURCE_URL:=http://matchbox-project.org/sources/libmatchbox/$(PKG_VERSION)
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_MD5SUM:=9f73e7515cc4679171a5db180dc1343b
+PKG_BUILD_DIR=$(BUILD_DIR)/${PKG_NAME}-$(PKG_VERSION)
+
+PKG_FIXUP = libtool
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libmatchbox
+  SECTION:=xorg-libraries
+  CATEGORY:=Xorg
+  SUBMENU:=libraries
+  DEPENDS:=+libX11 +libXft +libpng +libjpeg @DISPLAY_SUPPORT
+  TITLE:=libmatchbox
+  URL:=http://matchbox-project.org
+endef
+
+define Build/InstallDev
+       DESTDIR=$(1) $(MAKE) -C $(PKG_BUILD_DIR)/ $(MAKE_FLAGS) install
+endef
+
+define Package/libmatchbox/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_BUILD_DIR)/libmb/.libs/libmb.so* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libmatchbox))