xorg-kdrive: Disable xsdl autoconf check
[openwrt/svn-archive/archive.git] / Xorg / xorg / xserver / xorg-kdrive / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xserver-kdrive
11 PKG_VERSION:=1.7.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=http://xorg.freedesktop.org/releases/individual/xserver/
15 PKG_SOURCE:=xorg-server-$(PKG_VERSION).tar.bz2
16 PKG_BUILD_DIR:=$(BUILD_DIR)/Xorg/xserver/$(PKG_NAME)/xorg-server-$(PKG_VERSION)/
17 PKG_MD5SUM:=dda7842467cda6018fdc87e6002e4db1
18
19 PKG_BUILD_DEPENDS:=randrproto renderproto fixesproto damageproto xcmiscproto \
20 xextproto xproto bigreqsproto resourceproto \
21 fontsproto inputproto kbproto videoproto resourceproto \
22 xf86dgaproto xtrans xf86driproto calibrateproto \
23 compositeproto xineramaproto
24
25 PKG_CONFIG_DEPENDS := \
26 CONFIG_PACKAGE-xserver-kdrive-fbdev \
27 CONFIG_PACKAGE_xserver-kdrive-xephyr \
28 CONFIG_X_TSLIB CONFIG_X_COMPOSITE \
29 CONFIG_X_XINERAMA CONFIG_X_XCALIBRATE
30
31 PKG_FIXUP:=libtool
32 PKG_INSTALL:=1
33
34 include $(INCLUDE_DIR)/package.mk
35
36 define Package/xserver-kdrive/Default
37 PROVIDES:=xserver
38 SECTION:=xorg-server
39 CATEGORY:=Xorg
40 SUBMENU:=server
41 URL:=http://xorg.freedesktop.org/
42 DEPENDS:=@!avr32 \
43 +xserver-common \
44 +libpthread \
45 +libxkbfile \
46 +libXfont \
47 +libXau \
48 +libXv \
49 +libfontenc \
50 +pixman \
51 +libopenssl \
52 +libdrm \
53 +xkbcomp \
54 +xkbdata \
55 @DISPLAY_SUPPORT \
56 +X_TSLIB:tslib
57 endef
58
59 define Package/xserver-kdrive-xfbdev
60 $(call Package/xserver-kdrive/Default)
61 TITLE:=Kdrive framebuffer xserver
62 endef
63
64 define Package/xserver-kdrive-xephyr
65 $(call Package/xserver-kdrive/Default)
66 TITLE:=Kdrive ephyr xserver
67 DEPENDS += @BROKEN
68 endef
69
70 define Build/Configure
71 $(call Build/Configure/Default, \
72 --enable-kdrive \
73 $(if $(CONFIG_PACKAGE_xserver-kdrive-xfbdev), \
74 --enable-xfbdev, \
75 --disable-xfbdev) \
76 $(if $(CONFIG_PACKAGE_xserver-kdrive-xephyr), \
77 --enable-xephyr, \
78 --disable-xephyr) \
79 $(if $(CONFIG_X_TSLIB),--enable-tslib,--disable-tslib) \
80 $(if $(CONFIG_X_COMPOSITE),--enable-composite,--disable-composite) \
81 $(if $(CONFIG_X_XINERAMA),--enable-xinerama,--disable-xinerama) \
82 $(if $(CONFIG_X_XCALIBRATE),--enable-xcalibrate,--disable-xcalibrate) \
83 --disable-dependency-tracking \
84 --disable-debug \
85 --disable-unit-tests \
86 --disable-builddocs \
87 --disable-glx-tls \
88 --disable-shm \
89 --disable-xres \
90 --disable-record \
91 --enable-xv \
92 --enable-xvmc \
93 --disable-dga \
94 --disable-screensaver \
95 --disable-xdmcp \
96 --disable-xdm-auth-1 \
97 --disable-glx \
98 --enable-dri \
99 --disable-dri2 \
100 --disable-xf86vidmode \
101 --disable-xace \
102 --disable-xselinux \
103 --disable-xsecurity \
104 --disable-multibuffer \
105 --disable-dbe \
106 --disable-xf86bigfont \
107 --enable-dpms \
108 --disable-config-dbus \
109 --disable-config-hal \
110 --disable-xfree86-utils \
111 --disable-xaa \
112 --enable-vgahw \
113 --disable-vbe \
114 --enable-int10-module \
115 --disable-xorg \
116 --disable-dmx \
117 --disable-xvfb \
118 --disable-xnest \
119 --disable-xquartz \
120 --disable-standalone-xpbproxy \
121 --disable-xwin \
122 --disable-xfake \
123 --disable-installsetuid \
124 --disable-secure-rpc \
125 --enable-silent-rules \
126 --disable-shave \
127 --disable-xsdl \
128 )
129 endef
130
131 define Package/xserver-kdrive-xfbdev/install
132 $(INSTALL_DIR) $(1)/usr/bin
133 $(INSTALL_BIN) \
134 $(PKG_INSTALL_DIR)/usr/bin/Xfbdev \
135 $(1)/usr/bin/
136 endef
137
138 define Package/xserver-kdrive-xephyr/install
139 $(INSTALL_DIR) $(1)/usr/bin
140 $(INSTALL_BIN) \
141 $(PKG_INSTALL_DIR)/usr/bin/Xephyr \
142 $(1)/usr/bin/
143 endef
144
145 $(eval $(call BuildPackage,xserver-kdrive-xfbdev))
146 $(eval $(call BuildPackage,xserver-kdrive-xephyr))