2 # Copyright (C) 2006-2009 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
13 PKG_SOURCE_URL
:=http
://xorg.freedesktop.org
/releases
/X11R7.4
/src
/xserver
/
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_BUILD_DIR
=$(BUILD_DIR
)/Xorg
/xserver
/$(PKG_NAME
)-$(PKG_VERSION
)/
16 PKG_BUILD_DEPENDS
:=randrproto renderproto fixesproto damageproto xcmiscproto \
17 xextproto xproto scrnsaverproto bigreqsproto resourceproto \
18 fontsproto inputproto kbproto videoproto resourceproto \
19 compositeproto xf86dgaproto xtrans xf86driproto
23 include $(INCLUDE_DIR
)/package.mk
26 ifeq ($(CONFIG_TARGET_olpc
),y
)
29 ifeq ($(CONFIG_TARGET_s3c24xx
),y
)
33 define Package
/xorg
/Default
38 URL
:=http
://xorg.freedesktop.org
/
41 define Package
/xserver-xorg
42 $(call Package
/xorg
/Default
)
45 DEPENDS
:=+xserver-common \
60 define Package
/xserver-xorg-config
61 $(call Package
/xorg
/Default
)
62 TITLE
:=Xorg server configuration tools
66 define Package
/xserver-common
67 $(call Package
/xorg
/Default
)
71 define Build
/Configure
72 $(call Build
/Configure
/Default
, \
83 --disable-xdm-auth-1 \
84 --disable-config-hal \
86 --disable-xf86vidmode \
87 --disable-xf86bigfont \
96 --disable-install-setuid \
104 --disable-xfree86-utils \
108 --disable-screensaver \
109 --enable-builtin-fonts \
113 define Package
/xserver-common
/install
114 $(INSTALL_DIR
) $(1)/etc
/{init.d
,config
,X11
}
118 $(INSTALL_DATA
) .
/files
/tmp
/x11.uci \
120 test -f .
/files
/config.xorg
/$(X_CONFIG
) && \
122 .
/files
/config.xorg
/$(X_CONFIG
) \
123 $(1)/etc
/X11
/xorg.conf
124 # test -f ./files/config.uci/$(X_CONFIG) && \
126 # ./files/config.uci/$(X_CONFIG) \
127 # $(1)/etc/config/x11
130 define Package
/xserver-xorg
/install
131 $(INSTALL_DIR
) $(1)/usr
/bin
133 $(PKG_INSTALL_DIR
)/usr
/bin
/Xorg \
136 $(INSTALL_DIR
) $(1)/usr
/lib
/xorg
/modules
/{extensions
,fonts
,linux
,multimedia
}
138 $(PKG_INSTALL_DIR
)/usr
/lib
/xorg
/modules
/*.so \
139 $(1)/usr
/lib
/xorg
/modules
/
141 $(foreach d
,extensions fonts linux multimedia
, \
143 $(PKG_INSTALL_DIR
)/usr
/lib
/xorg
/modules
/$(d
)/*.so \
144 $(1)/usr
/lib
/xorg
/modules
/$(d
)/; \
148 define Build
/InstallDev
149 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
/
151 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
152 $(1)/usr
/share
/aclocal
/
154 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
156 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
157 $(1)/usr
/lib
/pkgconfig
/
158 $(if
$(CONFIG_PACKAGE_xserver-xorg
), \
159 $(INSTALL_DIR
) $(1)/usr
/include/xorg
; \
161 $(PKG_INSTALL_DIR
)/usr
/include/xorg
/*.h \
162 $(1)/usr
/include/xorg
/; \
166 $(eval
$(call BuildPackage
,xserver-common
))
167 $(eval
$(call BuildPackage
,xserver-xorg
))