Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / modular-xorg-server / Makefile
blobb8a0025f30d379a917952e89b00ed8db0213a885
1 # $NetBSD: Makefile,v 1.73 2012/12/15 09:26:07 is Exp $
4 DISTNAME= xorg-server-1.6.5
5 PKGNAME= modular-${DISTNAME}
6 PKGREVISION= 15
7 CATEGORIES= x11
8 MASTER_SITES= ${MASTER_SITE_XORG:=xserver/}
9 EXTRACT_SUFX= .tar.bz2
11 MAINTAINER= pkgsrc-users@NetBSD.org
12 HOMEPAGE= http://xorg.freedesktop.org/
13 COMMENT= Modular X11 server from modular X.org
15 SPECIAL_PERMS+= bin/Xorg ${SETUID_ROOT_PERMS}
17 GNU_CONFIGURE= yes
18 USE_LIBTOOL= yes
19 USE_TOOLS+= gmake pkg-config
21 PKGCONFIG_OVERRIDE+= xorg-server.pc.in
22 SHLIBTOOL_OVERRIDE= # empty
24 BUILD_DEFS+= VARBASE
25 BUILD_DEFS_EFFECTS+= XKB_OUTPUT_DIR
27 OWN_DIRS+= ${VARBASE}/log
28 OWN_DIRS+= ${XKB_OUTPUT_DIR}
29 XKB_OUTPUT_DIR?= ${VARBASE}/db/xkb # XXX sync with xkeyboard-config
31 CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
32 CONFIGURE_ARGS+= --with-xkb-output=${XKB_OUTPUT_DIR:Q}
34 .if !empty(USE_TOOLS:Mauto*)
35 BUILD_DEPENDS+= xorg-util-macros>=1.1.5:../../devel/xorg-util-macros
36 .endif
38 DEPENDS+= xkbcomp-[0-9]*:../../x11/xkbcomp
39 DEPENDS+= xkeyboard-config-[0-9]*:../../x11/xkeyboard-config
41 .include "../../mk/bsd.prefs.mk"
43 CONFIGURE_ARGS+= --with-release-version=${PKGNAME:Q}
44 .if ${OPSYS} == "NetBSD"
45 CONFIGURE_ARGS+= --with-builder-addr="tech-x11@NetBSD.org"
46 CONFIGURE_ARGS+= --with-os-vendor="The NetBSD Foundation"
47 .endif
48 .if ${OPSYS} == "NetBSD"
49 CONFIGURE_ARGS+= --without-dtrace
50 .endif
51 .if ${OPSYS} == "FreeBSD"
52 CONFIGURE_ARGS+= --without-dtrace
53 .endif
54 CONFIGURE_ARGS+= --with-os-name=${MACHINE_PLATFORM:Q}
56 CONFIGURE_ARGS+= --enable-xorg
58 CONFIGURE_ARGS+= --with-fontdir=${PREFIX}/share/fonts/X11
60 LEGACY_FONT_PATH=
61 DEFAULT_FONT_PATH=
62 .for f in misc TTF OTF Type1 100dpi 75dpi cyrillic
63 DEFAULT_FONT_PATH+= ${PREFIX}/share/fonts/X11/${f}
64 LEGACY_FONT_PATH+= ${PREFIX}/lib/X11/fonts/${f}
65 .endfor
66 FONT_PATH= ${DEFAULT_FONT_PATH} ${LEGACY_FONT_PATH}
68 CONFIGURE_ARGS+= --with-default-font-path=${FONT_PATH:ts,:Q}
70 CONFIGURE_ARGS+= --disable-config-hal
71 CONFIGURE_ARGS+= --disable-dmx
72 CONFIGURE_ARGS+= --disable-xprint
73 CONFIGURE_ARGS+= --disable-xwin
74 CONFIGURE_ARGS+= --disable-xephyr
75 CONFIGURE_ARGS+= --disable-kdrive
76 CONFIGURE_ARGS+= --disable-kdrive-vesa
77 CONFIGURE_ARGS+= --disable-xfake
78 CONFIGURE_ARGS+= --disable-xsdl
79 CONFIGURE_ARGS+= --disable-xfbdev
80 CONFIGURE_ARGS+= --disable-kbd_mode # deprecated
81 CONFIGURE_ARGS+= --disable-xorgcfg # deprecated
83 CONFIGURE_ARGS+= --with-int10=x86emu
85 CONFIGURE_ENV+= APP_MAN_SUFFIX=1 FILE_MAN_SUFFIX=5
86 CONFIGURE_ENV+= DRIVER_MAN_SUFFIX=4
88 PLIST_VARS+= sunos
89 PLIST_SUBST+= SUNOS_ARCH=${SUNOS_ARCH}
91 .if ${OPSYS} == "SunOS"
92 PLIST.sunos= yes
93 . if ${MACHINE_ARCH} == "i386"
94 SUNOS_ARCH= ia32
95 . elif ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "x86_64"
96 SUNOS_ARCH= amd64
97 . elif ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
98 SUNOS_ARCH= sparcv8plus
99 . endif
100 .endif
102 # Workaround for PR#41556.
103 # Avoid to use bsd_kqueue_apm, force to use bsd_apm instead.
104 .if ${OPSYS} == "NetBSD"
105 CONFIGURE_ENV+= ac_cv_header_sys_event_h=no
106 .endif
108 INSTALLATION_DIRS+= lib/xorg/modules/drivers lib/xorg/modules/input
110 BUILDLINK_API_DEPENDS.MesaLib+= MesaLib>=7.1.0
111 BUILDLINK_API_DEPENDS.compositeproto+= compositeproto>=0.4
112 BUILDLINK_API_DEPENDS.fixesproto+= fixesproto>=4.0
113 BUILDLINK_API_DEPENDS.glproto+= glproto>=1.4.9
114 BUILDLINK_API_DEPENDS.inputproto+= inputproto>=1.5
115 BUILDLINK_API_DEPENDS.kbproto+= kbproto>=1.0.3
116 BUILDLINK_API_DEPENDS.pixman+= pixman>=0.13.2
117 BUILDLINK_API_DEPENDS.randrproto+= randrproto>=1.2.99.1
118 BUILDLINK_API_DEPENDS.renderproto+= renderproto>=0.9.3
119 BUILDLINK_API_DEPENDS.xf86dgaproto+= xf86dgaproto>=2.0.3
120 BUILDLINK_API_DEPENDS.xf86driproto+= xf86driproto>=2.0.4
122 .include "../../mk/compiler.mk"
123 .if !empty(PKGSRC_COMPILER:Mclang)
124 BUILD_DEPENDS+= ucpp-[0-9]*:../../devel/ucpp
125 CONFIGURE_ENV+= ac_cv_path_RAWCPP="${PREFIX}/bin/ucpp -t -c90 -Uunix"
126 .elif empty(PKGSRC_COMPILER:Mgcc)
127 CONFIGURE_ENV+= ac_cv_path_RAWCPP="cc -E -Uunix -"
128 .endif
130 .include "options.mk"
132 .include "../../devel/ncurses/buildlink3.mk"
133 .include "../../devel/zlib/buildlink3.mk"
134 .include "../../fonts/libfontenc/buildlink3.mk"
135 .include "../../graphics/MesaLib/buildlink3.mk"
136 .include "../../security/openssl/buildlink3.mk"
137 BUILDLINK_API_DEPENDS.libpciaccess+= libpciaccess>=0.11.0
138 .include "../../sysutils/libpciaccess/buildlink3.mk"
139 .include "../../x11/bigreqsproto/buildlink3.mk"
140 .include "../../x11/compositeproto/buildlink3.mk"
141 .include "../../x11/damageproto/buildlink3.mk"
142 .include "../../x11/dri2proto/buildlink3.mk"
143 .include "../../x11/evieext/buildlink3.mk"
144 .include "../../x11/fixesproto/buildlink3.mk"
145 .include "../../x11/fontsproto/buildlink3.mk"
146 .include "../../x11/glproto/buildlink3.mk"
147 .include "../../x11/inputproto/buildlink3.mk"
148 .include "../../x11/libX11/buildlink3.mk"
149 .include "../../x11/libXau/buildlink3.mk"
150 .include "../../x11/libXaw/buildlink3.mk"
151 BUILDLINK_API_DEPENDS.libXext+= libXext>=1.1.1
152 .include "../../x11/libXext/buildlink3.mk"
153 .include "../../x11/libXfixes/buildlink3.mk"
154 .include "../../x11/libXfont/buildlink3.mk"
155 .include "../../x11/libXt/buildlink3.mk"
156 .include "../../x11/libXxf86misc/buildlink3.mk"
157 .include "../../x11/libXxf86vm/buildlink3.mk"
158 .include "../../x11/libXinerama/buildlink3.mk"
159 .include "../../x11/libdrm/buildlink3.mk"
160 .include "../../x11/libxkbfile/buildlink3.mk"
161 .include "../../x11/libxkbui/buildlink3.mk"
162 .include "../../x11/pixman/buildlink3.mk"
163 .include "../../x11/randrproto/buildlink3.mk"
164 .include "../../x11/recordproto/buildlink3.mk"
165 .include "../../x11/renderproto/buildlink3.mk"
166 .include "../../x11/resourceproto/buildlink3.mk"
167 .include "../../x11/scrnsaverproto/buildlink3.mk"
168 .include "../../x11/trapproto/buildlink3.mk"
169 .include "../../x11/videoproto/buildlink3.mk"
170 .include "../../x11/xcmiscproto/buildlink3.mk"
171 .include "../../x11/xf86bigfontproto/buildlink3.mk"
172 .include "../../x11/xf86dgaproto/buildlink3.mk"
173 .include "../../x11/xf86driproto/buildlink3.mk"
174 .include "../../x11/xf86miscproto/buildlink3.mk"
175 .include "../../x11/xf86vidmodeproto/buildlink3.mk"
176 .include "../../x11/xineramaproto/buildlink3.mk"
177 .include "../../x11/xproto/buildlink3.mk"
178 .include "../../x11/xtrans/buildlink3.mk"
180 .include "../../mk/bsd.pkg.mk"