1 # $NetBSD: Makefile,v 1.8 2004/05/07 15:25:14 cjep Exp $
4 PKGNAME= xorg-server-${XORG_VER}
6 MASTER_SITES= ${MASTER_SITE_XORG}
7 DISTFILES= X11R6.7.0-src1.tar.gz X11R6.7.0-src3.tar.gz
9 MAINTAINER= xtraeme@NetBSD.org
10 HOMEPAGE= http://www.x.org/
11 COMMENT= X.org X server and related programs
13 CONFLICTS+= XFree86-server-[0-9]*
17 CHECK_X11_TYPE= # defined
18 DISTINFO_FILE= ${.CURDIR}/../../x11/xorg-libs/distinfo
19 PATCHDIR= ${.CURDIR}/../../x11/xorg-libs/patches
21 XBUILD_DIRS= lib/font lib/lbxutil lib/Xdmcp lib/Xau \
23 XINCLUDE_DIRS= lib/xkbfile lib/xtrans
24 XINSTALL_DIRS= lib/font/FreeType lib/font/X-TrueType \
25 lib/font/Speedo lib/font/Type1 \
26 lib/font/bitmap programs/Xserver
27 XINSTALL_MAN_DIRS= programs/Xserver
29 REPLACE_PERL= exports/lib/modules/getconfig*
32 SUBST_STAGE.parser= pre-install
33 SUBST_FILES.parser= programs/Xserver/hw/xfree86/parser/Makefile
34 SUBST_SED.parser= -e '/$$(INSTALL).*lib$$(LIBNAME).a/ d'
35 SUBST_SED.parser+= -e '/$$(RANLIB).*lib$$(LIBNAME).a/ d'
36 SUBST_SED.parser+= -e 's|$$(INSTALL) $$(INSTALLFLAGS) $$(INSTINCFLAGS)|echo|'
37 SUBST_MESSAGE.parser= "Fixing parser Makefile."
40 SUBST_STAGE.stubs= pre-install
41 SUBST_FILES.stubs= lib/font/stubs/Makefile
42 SUBST_SED.stubs= -e '/$$(INSTALL).*libfntstubs.a/ d'
43 SUBST_SED.stubs+= -e '/$$(RANLIB).*libfntstubs.a/ d'
44 SUBST_MESSAGE.stubs= "Fixing stubs Makefile."
48 SUBST_STAGE.mods= post-configure
49 SUBST_FILES.mods= lib/font/Speedo/module/speedomod.c \
50 lib/font/bitmap/module/bitmapmod.c \
51 lib/font/Type1/module/type1mod.c \
52 lib/font/FreeType/module/ftmodule.c \
53 lib/font/X-TrueType/module/xttmodule.c
54 SUBST_SED.mods= -e "s,XORG_VERSION_CURRENT,NULL,"
55 SUBST_MESSAGE.mods= "Fixing font modules."
58 .include "../../mk/bsd.prefs.mk"
60 .if ${OPSYS} != "NetBSD"
61 USE_PERL5= build # Yeah, we need this :-)
65 ${CHMOD} a+r ${X11ROOT}/bin/XFree86
67 .include "../../fonts/fontconfig/buildlink3.mk"
68 .include "../../graphics/freetype2/buildlink3.mk"
69 .include "../../meta-pkgs/xorg/Makefile.common"
70 .include "../../mk/bsd.pkg.mk"