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