]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/xorg-x11-server/xorg-x11-server.nm
Merge remote-tracking branch 'stevee/fixes'
[people/ms/ipfire-3.x.git] / pkgs / xorg-x11-server / xorg-x11-server.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = xorg-x11-server
28 PKG_VER = 1.8.2
29 PKG_REL = 2
30
31 PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
32 PKG_GROUP = X/Server
33 PKG_URL = http://www.x.org
34 PKG_LICENSE = MIT
35 PKG_SUMMARY = X.Org X11 X server.
36
37 PKG_BUILD_DEPS+= audit-devel autoconf automake libcap libX11-devel libXau-devel \
38 libXdmcp-devel libXext-devel libXfixes-devel libXfont-devel libXmu-devel \
39 libXrender-devel libXres-devel libXt-devel libdrm-devel libfontenc-devel \
40 libpciaccess-devel libselinux-devel libtool libudev-devel libxcb-devel \
41 libxkbfile-devel mesa-devel openssl-devel pixman-devel pkg-config \
42 xorg-x11-font-utils-devel xorg-x11-util-macros xorg-x11-proto-devel \
43 xorg-x11-xtrans-devel
44
45 PKG_DEPS += mesa pixman udev xkeyboard-config xorg-x11-fonts xorg-x11-font-utils \
46 xorg-x11-xkb-utils
47
48 PKG_PACKAGES += $(PKG_NAME)-devel
49 PKG_DEPS-$(PKG_NAME)-devel += libpciaccess-devel pixman-devel
50
51 define PKG_DESCRIPTION
52 X.org X11 is an open source implementation of the X Window System. \
53 It provides the basic low level functionality which full fledged \
54 graphical user interfaces (GUIs) such as GNOME and KDE are designed \
55 upon.
56 endef
57
58 PKG_TARBALL = xorg-server-$(PKG_VER).tar.bz2
59
60 CFLAGS += -Wstrict-overflow -rdynamic
61
62 QUALITY_AGENT_PERMIT_NOT_FULL_RELRO = yes
63
64 DIR_APP = $(DIR_SRC)/xorg-server-$(PKG_VER)
65
66 CONFIGURE_OPTIONS += \
67 --enable-xvfb \
68 --enable-xsdl \
69 --enable-xfake \
70 --enable-xfbdev \
71 --enable-xorg \
72 --disable-static \
73 --disable-xnest \
74 --disable-xdmx \
75 --disable-xephyr \
76 --with-pic \
77 --enable-maintainer-mode \
78 --enable-xselinux \
79 --with-int10=x86emu \
80 --with-default-font-path="catalogue:/etc/X11/fontpath.d,built-ins" \
81 --with-module-dir=/usr/lib/xorg/modules \
82 --with-builderstring="Build ID: $(PKG_NAME) $(PKG_VER)-$(PKG_REL)" \
83 --with-os-name="$(hostname -s) $(uname -r)" \
84 --with-vendor-name="$(DISTRO_NAME) Project" \
85 --with-vendor-web="http://www.ipfire.org" \
86 --with-xkb-output=/var/lib/xkb \
87 --enable-install-libxf86config \
88 --localstatedir=/var \
89 --disable-screensaver \
90 --disable-config-dbus \
91 --disable-config-hal \
92 --enable-config-udev
93
94 define STAGE_PREPARE_CMDS
95 cd $(DIR_APP) && autoreconf -vfi
96 endef
97
98 # Remove BIND_NOW flag from server modules to provide autoloading of them if needed
99 # by the server itself.
100 define STAGE_CONFIGURE_CMDS
101 cd $(DIR_APP) && sed -i \
102 -e "s/^CFLAGS.*/& -Wl,-z,lazy/" \
103 -e "s/^CCASFLAGS.*/& -Wl,-z,lazy/" \
104 \
105 hw/xfree86/dixmods/Makefile \
106 hw/xfree86/dixmods/extmod/Makefile \
107 hw/xfree86/dri/Makefile \
108 hw/xfree86/dri2/Makefile \
109 hw/xfree86/exa/Makefile \
110 hw/xfree86/fbdevhw/Makefile \
111 hw/xfree86/i2c/Makefile \
112 hw/xfree86/int10/Makefile \
113 hw/xfree86/shadowfb/Makefile \
114 hw/xfree86/vbe/Makefile \
115 hw/xfree86/vgahw/Makefile \
116 hw/xfree86/xaa/Makefile
117 endef
118
119 define STAGE_INSTALL
120 cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) \
121 moduledir=/usr/lib/xorg/modules
122
123 rm -vf $(BUILDROOT)/usr/lib/xorg/modules/libxf8_16bpp.so
124 rm -vrf $(BUILDROOT)/var/log
125
126 -mkdir -pv $(BUILDROOT)/etc/X11/xorg.conf.d $(BUILDROOT)/usr/share/xorg
127 cd $(DIR_APP) && install -m 0444 hw/xfree86/common/{vesa,extra}modes \
128 $(BUILDROOT)/usr/share/xorg/
129 cd $(DIR_APP) && install -m 644 $(DIR_SOURCE)/10-quirks.conf \
130 $(BUILDROOT)/usr/share/X11/xorg.conf.d
131
132 # Capabilities
133 chmod u-s $(BUILDROOT)/usr/bin/Xorg
134 setcap cap_chown,cap_dac_override,cap_sys_rawio,cap_sys_admin+ep \
135 $(BUILDROOT)/usr/bin/Xorg
136 endef