2008-12-01 23:07:01 +00:00
|
|
|
#
|
2010-02-19 00:14:01 +00:00
|
|
|
# Copyright (C) 2007-2010 OpenWrt.org
|
2008-01-25 11:23:41 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2008-12-01 23:07:01 +00:00
|
|
|
# blogic@openwrt.org
|
|
|
|
|
2008-01-25 11:23:41 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2008-11-16 19:31:42 +00:00
|
|
|
PKG_NAME:=libdrm
|
|
|
|
PKG_VERSION:=2.3.1
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_RELEASE:=3
|
|
|
|
|
2008-11-16 19:31:42 +00:00
|
|
|
PKG_SOURCE_URL:=http://dri.freedesktop.org/libdrm
|
2008-01-25 11:23:41 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2008-12-01 23:07:01 +00:00
|
|
|
PKG_BUILD_DIR=$(BUILD_DIR)/Xorg/$(_CATEGORY)/$(PKG_NAME)-$(PKG_VERSION)/
|
2010-02-19 01:20:44 +00:00
|
|
|
PKG_MD5SUM:=620fe7dd02c3236c3e9881a3a238173d
|
2008-01-25 11:23:41 +00:00
|
|
|
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
|
2008-01-25 11:23:41 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-11-16 19:31:42 +00:00
|
|
|
define Package/libdrm
|
2010-03-28 06:27:01 +00:00
|
|
|
SECTION:=xorg-libraries
|
2008-01-25 11:23:41 +00:00
|
|
|
CATEGORY:=Xorg
|
2009-01-09 17:10:38 +00:00
|
|
|
SUBMENU:=libraries
|
2008-12-01 23:07:01 +00:00
|
|
|
DEPENDS:=
|
2008-11-16 19:31:42 +00:00
|
|
|
TITLE:=libdrm
|
|
|
|
URL:=http://dri.freedesktop.org/
|
2008-01-25 11:23:41 +00:00
|
|
|
endef
|
|
|
|
|
2008-11-16 19:31:42 +00:00
|
|
|
CONFIGURE_ARGS += --enable-malloc0returnsnull --without-xcb
|
|
|
|
|
2008-01-25 11:23:41 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(call $(PKG_NAME)/Compile)
|
|
|
|
make -C $(PKG_BUILD_DIR)
|
|
|
|
DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
|
2008-11-16 19:31:42 +00:00
|
|
|
find $(PKG_INSTALL_DIR) -name *.la | xargs rm -rf
|
2008-01-25 11:23:41 +00:00
|
|
|
endef
|
|
|
|
|
2008-11-16 19:31:42 +00:00
|
|
|
define Package/libdrm/install
|
2008-01-25 11:23:41 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2008-11-16 19:31:42 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
|
2008-01-25 11:23:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/* $(1)/
|
|
|
|
endef
|
|
|
|
|
2008-11-16 19:31:42 +00:00
|
|
|
$(eval $(call BuildPackage,libdrm))
|