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
}
120 .
/files
/config
/$(X_CONFIG
) \
121 $(1)/etc
/config
/x11 \
125 define Package
/xserver-xorg
/install
126 $(INSTALL_DIR
) $(1)/usr
/bin
128 $(PKG_INSTALL_DIR
)/usr
/bin
/Xorg \
131 $(INSTALL_DIR
) $(1)/usr
/lib
/xorg
/modules
/{extensions
,fonts
,linux
,multimedia
}
133 $(PKG_INSTALL_DIR
)/usr
/lib
/xorg
/modules
/*.so \
134 $(1)/usr
/lib
/xorg
/modules
/
136 $(foreach d
,extensions fonts linux multimedia
, \
138 $(PKG_INSTALL_DIR
)/usr
/lib
/xorg
/modules
/$(d
)/*.so \
139 $(1)/usr
/lib
/xorg
/modules
/$(d
)/; \
143 define Build
/InstallDev
144 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
/
146 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
147 $(1)/usr
/share
/aclocal
/
149 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
151 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
152 $(1)/usr
/lib
/pkgconfig
/
153 $(if
$(CONFIG_PACKAGE_xserver-xorg
), \
154 $(INSTALL_DIR
) $(1)/usr
/include/xorg
; \
156 $(PKG_INSTALL_DIR
)/usr
/include/xorg
/*.h \
157 $(1)/usr
/include/xorg
/; \
161 $(eval
$(call BuildPackage
,xserver-common
))
162 $(eval
$(call BuildPackage
,xserver-xorg
))