tig: update to 2.5.11
[oi-userland.git] / components / x11 / xf86-video-ati / Makefile
blob703d368e047992993c4e10291a011c35629447a3
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2015 Alexander Pyhalov
16 X11_CATEGORY=DRIVER
17 include ../../../make-rules/shared-macros.mk
18 include $(WS_MAKE_RULES)/x11.mk
20 COMPONENT_NAME= xf86-video-ati
21 COMPONENT_VERSION= 6.14.6
22 COMPONENT_REVISION= 6
23 COMPONENT_FMRI= x11/server/xorg/driver/xorg-video-ati
24 COMPONENT_SUMMARY= xf86-video-ati - ATI Radeon video driver for the Xorg X server
25 COMPONENT_ARCHIVE_HASH= \
26 sha256:aa5286b3e4f0187d7df14785c06dd800255d9405205dbf061da5d77df86bec36
28 CONFIGURE_DEFAULT_DIRS = no
29 include $(WS_MAKE_RULES)/common.mk
31 COMPONENT_PREP_ACTION = \
32 ( cd $(@D) && \
33 aclocal -I. && \
34 autoheader && \
35 PATH="$(PATH)" libtoolize --automake --copy --force && \
36 automake -a -f -c && \
37 autoconf && \
38 cp $(COMPONENT_DIR)/srcs/i2c/*.h $(COMPONENT_DIR)/srcs/i2c/*.c src/ )
40 # Paths to find libraries/modules to link with - libraries themselves listed
41 # in src/Makefile.am since ATI has multiple submodules with different needs
43 LD_OPTIONS+= \
44 -L$(X11_SERVERMODS_DIR) -R$(X11_SERVERMODS_DIR) \
45 -L$(X11_SERVERLIBS_DIR) -R$(X11_SERVERLIBS_DIR) \
46 -L$(X11_SERVERMODS_EXTENSIONS_DIR) -R$(X11_SERVERMODS_EXTENSIONS_DIR) \
47 -L$(MESA_XSERVERMODS_EXTENSIONS_DIR) -R$(MESA_XSERVERMODS_EXTENSIONS_DIR) \
48 -M $(COMPONENT_DIR)/mapfile-bt829_drv-external \
49 -M $(COMPONENT_DIR)/mapfile-fi1236_drv-external \
50 -M $(COMPONENT_DIR)/mapfile-msp3430_drv-external \
51 -M $(COMPONENT_DIR)/mapfile-tda9885_drv-external \
52 -M $(COMPONENT_DIR)/mapfile-uda1380_drv-external
54 # Need to override install path for all the modules, not just ati_drv.so
55 COMPONENT_COMMON_ARGS = \
56 ati_drv_ladir='$(X11_SERVERMODS_DRIVERS_DIR)' \
57 radeon_drv_ladir='$(X11_SERVERMODS_DRIVERS_DIR)' \
58 theatre_detect_drv_ladir='$(X11_SERVERMODS_MULTIMEDIA_DIR)' \
59 theatre_drv_ladir='$(X11_SERVERMODS_MULTIMEDIA_DIR)' \
60 theatre200_drv_ladir='$(X11_SERVERMODS_MULTIMEDIA_DIR)'
62 CONFIGURE_OPTIONS += --enable-dri
63 CONFIGURE_OPTIONS += --disable-kms
65 COMPONENT_BUILD_ARGS += $(COMPONENT_COMMON_ARGS)
66 COMPONENT_INSTALL_ARGS += $(COMPONENT_COMMON_ARGS)
68 # Build dependencies
69 REQUIRED_PACKAGES += x11/header/x11-protocols
70 REQUIRED_PACKAGES += system/header/header-drm
72 # Auto-generated dependencies
73 REQUIRED_PACKAGES += diagnostic/scanpci
74 REQUIRED_PACKAGES += library/graphics/pixman
75 REQUIRED_PACKAGES += system/library
76 REQUIRED_PACKAGES += system/library/math
77 REQUIRED_PACKAGES += x11/library/libdrm
78 REQUIRED_PACKAGES += x11/server/xorg