aboutsummaryrefslogtreecommitdiffstats
path: root/x11-servers/XFree86-4-Server-snap/Makefile
blob: a4ee261781713dc384e32a1eda9c9edc660046c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# New ports collection makefile for:    XFree86-Server
# Date created:     10 Oct 1999
# Whom:         taguchi@tohoku.iij.ad.jp
#
# $FreeBSD$
#

PORTNAME=   Server
PORTVERSION=    4.3.99.12
PORTREVISION=   1
CATEGORIES= x11-servers
MASTER_SITES=   ${MASTER_SITE_XFREE:S|source/||:S/$/:x/} \
        ${MASTER_SITE_LOCAL:S/$/:local/}
MASTER_SITE_SUBDIR= develsnaps/:x \
            anholt/:local
PKGNAMEPREFIX=  XFree86-
DISTFILES=  XFree86-${PORTVERSION}${EXTRACT_SUFX}:x \
        Wraphelp2.gz:local
EXTRACT_ONLY=   XFree86-${PORTVERSION}${EXTRACT_SUFX}

MAINTAINER= anholt@freebsd.org
COMMENT=    XFree86-4 X server and related programs

# Override default from XFree86-4-libraries/Makefile.inc
PATCHDIR=       ${MASTERDIR}/files

.for pf in patch-Imake.cf patch-Imake.rules \
            patch-Imake.tmpl patch-X11.tmpl patch-Xcursor-Imakefile \
            patch-c2 patch-dps patch-dri-Imakefile \
            patch-f patch-imake.c \
            patch-texteroids patch-xditview-Imakefile patch-xdm \
            patch-xdm_session.c patch-xf86.tmpl patch-xfree86.cf \
            patch-xterm-Imakefile patch-z04 patch-z05 patch-z14 \
            patch-z15 patch-z30 patch-z32 patch-z34 patch-z35 \
            patch-z41 patch-z44 patch-z45
# patch-startx

EXTRA_PATCHES+=     ${.CURDIR}/../../x11/XFree86-4-libraries/files/${pf}
.endfor

NO_LATEST_LINK=     yes
USE_BZIP2=      yes
SCRIPTS_ENV=        OSVERSION=${OSVERSION} \
            BuildXF86DRI=${BuildXF86DRI} \
            WITH_DEBUG="${WITH_DEBUG}"
MAN1=           XFree86.1 \
            Xserver.1 \
            gtf.1 \
            kbd_mode.1 \
            pcitweak.1 \
            xf86cfg.1 \
            xf86config.1
MAN3=           XF86VidMode.3 \
            XF86VidModeDeleteModeLine.3 \
            XF86VidModeGetAllModeLines.3 \
            XF86VidModeGetDotClocks.3 \
            XF86VidModeGetGamma.3 \
            XF86VidModeGetGammaRamp.3 \
            XF86VidModeGetGammaRampSize.3 \
            XF86VidModeGetModeLine.3 \
            XF86VidModeGetMonitor.3 \
            XF86VidModeGetPermissions.3 \
            XF86VidModeGetViewPort.3 \
            XF86VidModeLockModeSwitch.3 \
            XF86VidModeModModeLine.3 \
            XF86VidModeQueryExtension.3 \
            XF86VidModeQueryVersion.3 \
            XF86VidModeSetClientVersion.3 \
            XF86VidModeSetGamma.3 \
            XF86VidModeSetGammaRamp.3 \
            XF86VidModeSetViewPort.3 \
            XF86VidModeSwitchMode.3 \
            XF86VidModeSwitchToMode.3 \
            XF86VidModeValidateModeLine.3
MAN4=           citron.4 \
            dynapro.4 \
            elographics.4 \
            fbdevhw.4 \
            glint.4 \
            kbd.4 \
            keyboard.4 \
            mga.4 \
            microtouch.4 \
            mouse.4 \
            mutouch.4 \
            nv.4 \
            r128.4 \
            radeon.4 \
            rendition.4 \
            s3virge.4 \
            savage.4 \
            siliconmotion.4 \
            tdfx.4 \
            vga.4 \
            void.4 \
            wacom.4
MAN5=           XF86Config.5
PKGMESSAGE=     ${WRKDIR}/.pkg-message
XBUILD_DIRS=        lib/font lib/lbxutil lib/Xdmcp lib/Xau programs/Xserver
XINCLUDE_DIRS=      lib/xkbfile lib/xtrans
XINSTALL_DIRS=      lib/font programs/Xserver
XINSTALL_MAN_DIRS=  programs/Xserver

.include "${.CURDIR}/../../x11/XFree86-4-libraries/Makefile.inc"
.include <bsd.port.pre.mk>

.if ${ARCH} == i386 ||  ${ARCH} == alpha
BuildXF86DRI=       YES
PLIST_SUB+=     DRI=""
XBUILD_DIRS+=       lib/XThrStub lib/X11 lib/Xext lib/GL
XINSTALL_DIRS+=     lib/GL/mesa/src/drv
.else
BuildXF86DRI=       NO
PLIST_SUB+=     DRI="@comment "
.endif # i386

.if ${ARCH} == alpha
PLIST_SUB+= ALPHA_NA="@comment "
.else
PLIST_SUB+= ALPHA_NA=""
MAN1+=      scanpci.1
.endif

.if ${ARCH} == ia64
PLIST_SUB+= IA64_NA="@comment "
.else
PLIST_SUB+= IA64_NA=""
.endif

.if ${ARCH} == sparc64
PLIST_SUB+= SPARC64_NA="@comment "
.else
PLIST_SUB+= SPARC64_NA=""
.endif

.if ${ARCH} == i386
PLIST_SUB+= I386=""
MAN4+=      apm.4 \
        chips.4 \
        cirrus.4 \
        cyrix.4 \
        i128.4 \
        i740.4 \
        i810.4 \
        neomagic.4 \
        nsc.4 \
        sis.4 \
        trident.4 \
        tseng.4 \
        vesa.4 \
        via.4 \
        vmware.4
.else
PLIST_SUB+= I386="@comment "
.endif

post-extract::
    ${GUNZIP_CMD} -c ${DISTDIR}/${DIST_SUBDIR}/Wraphelp2.gz > \
        ${WRKSRC}/lib/Xdmcp/Wraphelp.c

post-build:
    @${RM} -f ${PKGMESSAGE}
    @${CAT} ${.CURDIR}/pkg-message >> ${PKGMESSAGE}

post-install::
    @${SED} -e s,/usr/X11R6,${PREFIX}, ${PKGMESSAGE}
    @if [ -f ${PREFIX}/bin/Xwrapper-4 ] ; then \
    ${LN} -sf Xwrapper-4 ${PREFIX}/bin/X; \
    fi;

.include <bsd.port.post.mk>
mes?h=gnome-3.28&id=a73e847b88c3c6f21252fb539c0784d0ea050576'>Shift the expiration date of some ports that only build on FreeBSD 10 forward.rene2018-10-291-2/+2 * - Update to 0.5amdmi32018-10-295-8/+48 * games/alephone: unbreak build with Clang 6 (C++14 by default)jbeich2018-10-281-0/+1 * Fix build with GCC-based architectures for various kde@ ports.tcberner2018-10-273-3/+4 * games/eduke32: fix build with powerpc64 and powerpcspeswills2018-10-271-0/+2 * games/pingus: unbreak with boost 1.69jbeich2018-10-272-3/+9 * games/traingame: unbreak with boost 1.69jbeich2018-10-271-0/+29 * games/freeorion: unbreak with boost 1.69jbeich2018-10-272-0/+8 * games/openlierox: drop boost dependencyjbeich2018-10-271-3/+2 * games/openlierox: unbreak with boost 1.69jbeich2018-10-271-1/+1 * games/spring: unbreak with boost 1.69jbeich2018-10-271-0/+31 * lang/rust: update to 1.30.0jbeich2018-10-261-1/+1 * games/openbor: update to 6484jbeich2018-10-252-5/+5 * - Update to 10.4wamdmi32018-10-252-4/+4 * Expand FreeBSD 12 conditionals to include 13.0-CURRENTjbeich2018-10-242-0/+3 * Mark games/naev as LLD_UNSAFE when OPENAL=ontobik2018-10-231-0/+1 * devel/icu: update to 63.1jbeich2018-10-235-5/+5 * games/glob2: unbreak with boost 1.69jbeich2018-10-231-0/+17 * games/wesnoth: unbreak with boost 1.69jbeich2018-10-231-0/+32 * USES=compiler:c++11-lang is necessary to build this port on architectures whereehaupt2018-10-221-1/+2 * - Update to 1.4.0amdmi32018-10-207-58/+67 * games/emptyepsilon: Update 2018.02.15 -> 2018.09.06yuri2018-10-173-8/+9 * - Mark broken on 11.x [1]ehaupt2018-10-152-4/+6 * update games/wtf to 20180925 snapshot from NetBSDlifanov2018-10-152-4/+4 * unbreak games/nxengine on powerpc64 and otherslifanov2018-10-151-8/+6 * lang/rust: update to 1.29.2jbeich2018-10-131-1/+1 * devel/renpy: update to 7.1.1jbeich2018-10-132-4/+4 * Deprecate most glib12 consumersantoine2018-10-1211-0/+33 * Update KDE Applications to 18.08.2tcberner2018-10-1245-132/+134 * Fix some PKGNAME collisionsantoine2018-10-081-1/+1 * Deprecate some GNOME 2 applicationsantoine2018-10-0811-0/+33 * Fix every instance of RUN_DEPENDS:=${BUILD_DEPENDS} in p5 ports, exceptdes2018-10-063-6/+6 * - Update to 20180924amdmi32018-10-052-5/+5 * Add missing USES=gl to my portsmartymac2018-10-056-7/+9 * - Update to 1.06.002cs2018-10-052-10/+9 * Reset maintainer for misc ports I do not interact with anymorefeld2018-10-031-1/+1 * - Update to 3.2.2wen2018-09-304-18/+7 * The FreeBSD GNOME team proudly presents GNOME 3.28 for FreeBSD.kwm2018-09-3048-787/+482 * Bump PORTREVISION to chase update of multimedia/v4l_compat and libv4lriggs2018-09-291-1/+1 * lang/rust: update to 1.29.1jbeich2018-09-291-0/+1 * - Update to 2.6.1miwi2018-09-292-4/+4 * Fix cut-and-paste error that broke the build.linimon2018-09-271-2/+2 * Add -znotext to LDFLAGS on i386, for lldemaste2018-09-272-0/+2 * Update Objective-C LLVM version to 6.0.brooks2018-09-2612-11/+12 * games/wesnoth:lme2018-09-26