Initial import of p5-Clipboard-0.09:
[pkgsrc.git] / x11 / xorg-server / Makefile
1 # $NetBSD: Makefile,v 1.8 2004/05/07 15:25:14 cjep Exp $
2
3 DISTNAME=               ${DISTFILES}
4 PKGNAME=                xorg-server-${XORG_VER}
5 CATEGORIES=             x11
6 MASTER_SITES=           ${MASTER_SITE_XORG}
7 DISTFILES=              X11R6.7.0-src1.tar.gz X11R6.7.0-src3.tar.gz             
8
9 MAINTAINER=             xtraeme@NetBSD.org
10 HOMEPAGE=               http://www.x.org/
11 COMMENT=                X.org X server and related programs
12
13 CONFLICTS+=             XFree86-server-[0-9]*
14
15 USE_X11=                yes
16 USE_BUILDLINK3=         yes
17 CHECK_X11_TYPE=         # defined
18 DISTINFO_FILE=          ${.CURDIR}/../../x11/xorg-libs/distinfo
19 PATCHDIR=               ${.CURDIR}/../../x11/xorg-libs/patches
20
21 XBUILD_DIRS=            lib/font lib/lbxutil lib/Xdmcp lib/Xau \
22                         programs/Xserver
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
28
29 REPLACE_PERL=           exports/lib/modules/getconfig*
30
31 SUBST_CLASSES=          parser
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."
38
39 SUBST_CLASSES+=         stubs
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."
45
46 .if 0
47 SUBST_CLASSES=          mods
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."
56 .endif
57
58 .include "../../mk/bsd.prefs.mk"
59
60 .if ${OPSYS} != "NetBSD"
61 USE_PERL5=      build # Yeah, we need this :-)
62 .endif
63
64 post-install:
65         ${CHMOD} a+r ${X11ROOT}/bin/XFree86
66
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"