2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL
:=http
://xorg.freedesktop.org
/releases
/individual
/xserver
/
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_MD5SUM
:=dda7842467cda6018fdc87e6002e4db1
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/Xorg
/xserver
/$(PKG_NAME
)-$(PKG_VERSION
)/
19 PKG_BUILD_DEPENDS
:=randrproto renderproto fixesproto damageproto xcmiscproto \
20 xextproto xproto scrnsaverproto bigreqsproto resourceproto \
21 fontsproto inputproto kbproto videoproto resourceproto \
22 compositeproto xf86dgaproto xtrans xf86driproto dri2proto
27 include $(INCLUDE_DIR
)/package.mk
30 ifeq ($(CONFIG_TARGET_olpc
),y
)
33 ifeq ($(CONFIG_TARGET_s3c24xx
),y
)
37 define Package
/xorg
/Default
42 URL
:=http
://xorg.freedesktop.org
/
45 define Package
/xserver-xorg
46 $(call Package
/xorg
/Default
)
49 DEPENDS
:=+xserver-common \
65 define Package
/xserver-xorg-config
66 $(call Package
/xorg
/Default
)
67 TITLE
:=Xorg server configuration tools
71 define Package
/xserver-common
72 $(call Package
/xorg
/Default
)
76 define Build
/Configure
77 $(call Build
/Configure
/Default
, \
78 --disable-dependency-tracking \
80 --disable-unit-tests \
90 --disable-screensaver \
92 --disable-xdm-auth-1 \
97 --disable-xf86vidmode \
100 --disable-xsecurity \
101 --disable-xcalibrate \
103 --disable-multibuffer \
105 --disable-xf86bigfont \
107 --disable-config-dbus \
108 --disable-config-hal \
109 --disable-xfree86-utils \
113 --enable-int10-module \
119 --disable-standalone-xpbproxy \
124 --disable-installsetuid \
125 --disable-secure-rpc \
126 --enable-silent-rules \
131 define Package
/xserver-common
/install
132 $(INSTALL_DIR
) $(1)/etc
/{init.d
,config
,X11
}
136 $(INSTALL_DATA
) .
/files
/tmp
/x11.uci \
138 test -f .
/files
/config.xorg
/$(X_CONFIG
) && \
140 .
/files
/config.xorg
/$(X_CONFIG
) \
141 $(1)/etc
/X11
/xorg.conf
142 # test -f ./files/config.uci/$(X_CONFIG) && \
144 # ./files/config.uci/$(X_CONFIG) \
145 # $(1)/etc/config/x11
148 define Package
/xserver-xorg
/install
149 $(INSTALL_DIR
) $(1)/usr
/bin
151 $(PKG_INSTALL_DIR
)/usr
/bin
/Xorg \
154 $(INSTALL_DIR
) $(1)/usr
/lib
/xorg
/modules
/{extensions
,fonts
,linux
,multimedia
}
156 $(PKG_INSTALL_DIR
)/usr
/lib
/xorg
/modules
/*.so \
157 $(1)/usr
/lib
/xorg
/modules
/
159 $(foreach d
,extensions fonts linux multimedia
, \
161 $(PKG_INSTALL_DIR
)/usr
/lib
/xorg
/modules
/$(d
)/*.so \
162 $(1)/usr
/lib
/xorg
/modules
/$(d
)/; \
166 define Build
/InstallDev
167 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
/
169 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
170 $(1)/usr
/share
/aclocal
/
172 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
174 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
175 $(1)/usr
/lib
/pkgconfig
/
177 $(if
$(CONFIG_PACKAGE_xserver-xorg
), \
178 $(INSTALL_DIR
) $(1)/usr
/include/xorg
; \
180 $(PKG_INSTALL_DIR
)/usr
/include/xorg
/*.h \
181 $(1)/usr
/include/xorg
/; \
183 $(INSTALL_DIR
) $(1)/mk
185 .
/files
/xorg-driver.mk \
187 $(SED
) 's,@VERSION@,$(PKG_VERSION),' $(1)/mk
/xorg-driver.mk
190 $(eval
$(call BuildPackage
,xserver-common
))
191 $(eval
$(call BuildPackage
,xserver-xorg
))