]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - xorg-x11-server/xorg-x11-server.nm
Merge remote-tracking branch 'stevee/dejavu-fonts'
[people/amarx/ipfire-3.x.git] / xorg-x11-server / xorg-x11-server.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = xorg-x11-server
7 version = 1.8.2
8 release = 5.1
9
10 maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
11 groups = X/Server
12 url = http://www.x.org
13 license = MIT
14 summary = X.Org X11 X server.
15
16 description
17 X.org X11 is an open source implementation of the X Window System.
18 It provides the basic low level functionality which full fledged
19 graphical user interfaces (GUIs) such as GNOME and KDE are designed
20 upon.
21 end
22
23 sources_dl = http://ftp.x.org/pub/individual/xserver/
24 sources = xorg-server-%{version}.tar.bz2
25
26 build
27 requires
28 audit-devel
29 autoconf
30 automake
31 libcap
32 libX11-devel
33 libXau-devel
34 libXdmcp-devel
35 libXext-devel
36 libXfixes-devel
37 libXfont-devel
38 libXmu-devel
39 libXrender-devel
40 libXres-devel
41 libXt-devel
42 libdrm-devel
43 libfontenc-devel
44 libpciaccess-devel
45 libselinux-devel
46 libtool
47 libudev-devel
48 libxcb-devel
49 libxkbfile-devel
50 mesa-devel
51 openssl-devel
52 pixman-devel
53 pkg-config
54 xorg-x11-font-utils-devel
55 xorg-x11-util-macros
56 xorg-x11-proto-devel
57 xorg-x11-xtrans-devel
58 end
59
60 DIR_APP = %{DIR_SRC}/xorg-server-%{version}
61
62 CFLAGS += -Wstrict-overflow -rdynamic
63
64 configure_options += \
65 --enable-xvfb \
66 --enable-xsdl \
67 --enable-xfake \
68 --enable-xfbdev \
69 --enable-xorg \
70 --disable-static \
71 --disable-xnest \
72 --disable-xdmx \
73 --disable-xephyr \
74 --with-pic \
75 --enable-maintainer-mode \
76 --enable-xselinux \
77 --with-int10=x86emu \
78 --with-default-font-path="catalogue:/etc/X11/fontpath.d,built-ins" \
79 --with-module-dir=%{libdir}/xorg/modules \
80 --with-builderstring="Build ID: %{name} %{version}-%{release}" \
81 --with-os-name="$(hostname -s) $(uname -r)" \
82 --with-vendor-name="$(DISTRO_NAME) Project" \
83 --with-vendor-web="http://www.ipfire.org" \
84 --with-xkb-output=/var/lib/xkb \
85 --enable-install-libxf86config \
86 --localstatedir=/var \
87 --disable-screensaver \
88 --disable-config-dbus \
89 --disable-config-hal \
90 --enable-config-udev
91
92 prepare_cmds
93 autoreconf -vfi
94 end
95
96 configure_cmds
97 # Remove BIND_NOW flag from server modules to provide autoloading of them if needed
98 # by the server itself.
99 sed -i -e "s/^CFLAGS.*/& -Wl,-z,lazy/" \
100 -e "s/^CCASFLAGS.*/& -Wl,-z,lazy/" \
101 \
102 hw/xfree86/dixmods/Makefile \
103 hw/xfree86/dixmods/extmod/Makefile \
104 hw/xfree86/dri/Makefile \
105 hw/xfree86/dri2/Makefile \
106 hw/xfree86/exa/Makefile \
107 hw/xfree86/fbdevhw/Makefile \
108 hw/xfree86/i2c/Makefile \
109 hw/xfree86/int10/Makefile \
110 hw/xfree86/shadowfb/Makefile \
111 hw/xfree86/vbe/Makefile \
112 hw/xfree86/vgahw/Makefile \
113 hw/xfree86/xaa/Makefile
114 end
115
116 make_install_targets += \
117 moduledir=%{libdir}/xorg/modules
118
119 install_cmds
120 rm -vf %{BUILDROOT}%{libdir}/xorg/modules/libxf8_16bpp.so
121 rm -vrf %{BUILDROOT}/var/log
122
123 mkdir -pv %{BUILDROOT}/etc/X11/xorg.conf.d %{BUILDROOT}/usr/share/xorg
124 install -m 0444 hw/xfree86/common/{vesa,extra}modes %{BUILDROOT}/usr/share/xorg/
125 install -m 644 %{DIR_SOURCE}/10-quirks.conf %{BUILDROOT}/usr/share/X11/xorg.conf.d
126 end
127 end
128
129 quality-agent
130 permit_not_full_relro = yes
131 end
132
133 packages
134 package %{name}
135 requires
136 mesa
137 pixman
138 udev
139 xkeyboard-config
140 xorg-x11-fonts
141 xorg-x11-font-utils
142 xorg-x11-xkb-utils
143 end
144 end
145
146 package %{name}-devel
147 template DEVEL
148
149 requires
150 libpciaccess-devel
151 pixman-devel
152 end
153 end
154
155 package %{name}-debuginfo
156 template DEBUGINFO
157 end
158 end