added new XOrg lib folders
[openwrt/svn-archive/archive.git] / XOrg / misc / libdrm / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # blogic@openwrt.org
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libdrm
12 PKG_VERSION:=2.3.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://dri.freedesktop.org/libdrm/
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libdrm
21 SECTION:=xorg-misc
22 CATEGORY:=Xorg
23 SUBMENU:=misc
24 TITLE:=library for direct rendering
25 endef
26
27 define Build/Configure
28 cd $(PKG_BUILD_DIR)/; $(TARGET_CONFIGURE_OPTS) ./configure --host=$(GNU_TARGET_NAME)
29 endef
30
31 define Build/Compile
32 $(MAKE) -C $(PKG_BUILD_DIR)
33 endef
34
35 define Build/InstallDev
36 $(CP) $(PKG_BUILD_DIR)/libdrm/*.h $(STAGING_DIR)/include
37 $(CP) $(PKG_BUILD_DIR)/shared-core/*.h $(STAGING_DIR)/include
38 $(CP) $(PKG_BUILD_DIR)/libdrm/.libs/libdrm.so* $(STAGING_DIR)/usr/lib/
39 $(CP) $(PKG_BUILD_DIR)/libdrm.pc $(STAGING_DIR)/usr/lib/pkgconfig/
40 endef
41
42 define Package/libdrm/install
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_BUILD_DIR)/libdrm/.libs/libdrm.so* $(1)/usr/lib/
45 endef
46
47 $(eval $(call BuildPackage,libdrm))