a54c4e07ccde97952c3c1c9a2a9adbd3e0ddbed4
[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)/; \
29 $(TARGET_CONFIGURE_OPTS) \
30 ./configure \
31 --host=$(GNU_TARGET_NAME)
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR)
36 endef
37
38 define Build/InstallDev
39 $(CP) $(PKG_BUILD_DIR)/libdrm/*.h $(1)/include
40 $(CP) $(PKG_BUILD_DIR)/shared-core/*.h $(1)/include
41 $(CP) $(PKG_BUILD_DIR)/libdrm/.libs/libdrm.so* $(1)/usr/lib/
42 $(CP) $(PKG_BUILD_DIR)/libdrm.pc $(1)/usr/lib/pkgconfig/
43 endef
44
45 define Package/libdrm/install
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) $(PKG_BUILD_DIR)/libdrm/.libs/libdrm.so* $(1)/usr/lib/
48 endef
49
50 $(eval $(call BuildPackage,libdrm))