source: packages/Xorg/xorg/driver/xf86-video-ati/Makefile @ 19719

Last change on this file since 19719 was 19719, checked in by lars, 7 years ago

[packages] Add missing md5sums

File size: 2.1 KB
Line 
1#
2# Copyright (C) 2007-2009 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
8include $(TOPDIR)/rules.mk
9
10PKG_BASE_NAME:=xf86
11PKG_NAME:=xf86-video-ati
12PKG_RELEASE:=1
13PKG_VERSION:=6.12.4
14
15PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/individual/driver
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17PKG_BUILD_DIR:=$(BUILD_DIR)/Xorg/${PKG_NAME}-$(PKG_VERSION)/
18PKG_MD5SUM:=e662348f6f957fcedf52818d668ab9f5
19
20include $(INCLUDE_DIR)/package.mk
21-include $(if $(DUMP),,$(STAGING_DIR)/mk/xorg-driver.mk)
22
23define Package/xf86-video-ati
24  SECTION:=xorg-driver
25  CATEGORY:=Xorg
26  SUBMENU:=driver
27  DEPENDS:=+xserver-xorg @TARGET_x86 @BROKEN
28  TITLE:=xf86-video-ati
29  URL:=http://xorg.freedesktop.org/
30endef
31
32define Build/InstallDev
33        DESTDIR="$(1)" $(MAKE) -C $(PKG_BUILD_DIR)/ $(MAKE_FLAGS) install
34endef
35
36EXTRA_CPPFLAGS= -I$(STAGING_DIR)/usr/include/xorg \
37                -I$(STAGING_DIR)/usr/include/X11/ \
38                $(TARGET_CPPFLAGS)
39
40EXTRA_CFLAGS+= $(EXTRA_CPPFLAGS)
41
42acvar=$(subst -,_,$(subst .,_,$(subst /,_,$(1))))
43
44CONFIGURE_VARS +=DRI_CFLAGS="-I$(STAGING_DIR)/usr/include/X11/dri/" ac_cv_file__usr_share_sgml_X11_defs_ent=yes \
45        sdkdir=$(STAGING_DIR) 
46
47define Build/Configure
48        (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
49        if [ -x $(CONFIGURE_CMD) ]; then \
50                $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/ && \
51                $(foreach a,dri.h sarea.h dristruct.h exa.h damage.h,export ac_cv_file_$(call acvar,$(STAGING_DIR)/usr/include/xorg/$(a))=yes;) \
52                sed -i "s|sdkdir=.*|sdkdir=$(STAGING_DIR)/usr/include/xorg|g" $(PKG_BUILD_DIR)/configure ;\
53                $(CONFIGURE_VARS) \
54                $(CONFIGURE_CMD) \
55                $(CONFIGURE_ARGS_XTRA) \
56                $(CONFIGURE_ARGS) \
57                CPPFLAGS="$(EXTRA_CPPFLAGS)" ;\
58        fi \
59        )
60endef
61
62define Build/Compile
63        make -C $(PKG_BUILD_DIR)
64        DESTDIR=$(PKG_INSTALL_DIR) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) install
65        find $(PKG_INSTALL_DIR) -name *a | xargs rm -rf
66endef
67
68define Package/xf86-video-ati/install
69        $(INSTALL_DIR) $(1)/usr/lib/
70        $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
71endef
72
73$(eval $(call BuildPackage,xf86-video-ati))
Note: See TracBrowser for help on using the repository browser.