2000-08-25 06:35:22 -04:00
|
|
|
# New ports collection makefile for: XFree86XServer-4.0.1
|
2000-06-08 06:42:32 -04:00
|
|
|
# Date created: 10 Oct 1999
|
|
|
|
# Whom: taguchi@tohoku.iij.ad.jp
|
1995-04-12 16:26:23 -04:00
|
|
|
#
|
1999-08-30 22:51:23 -04:00
|
|
|
# $FreeBSD$
|
1995-04-12 16:26:23 -04:00
|
|
|
#
|
|
|
|
|
2000-06-08 06:42:32 -04:00
|
|
|
PORTNAME= Server
|
2001-03-25 18:04:52 -05:00
|
|
|
PORTVERSION= 4.0.3
|
2001-04-12 10:26:00 -04:00
|
|
|
PORTREVISION= 1
|
2000-06-08 06:42:32 -04:00
|
|
|
CATEGORIES= x11-servers
|
2000-09-21 04:46:02 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_XFREE}
|
2001-03-29 07:04:27 -05:00
|
|
|
MASTER_SITE_SUBDIR= 4.0.2
|
2000-06-08 06:42:32 -04:00
|
|
|
PKGNAMEPREFIX= XFree86-
|
2001-03-25 18:04:52 -05:00
|
|
|
DISTFILES= X402src-1.tgz
|
2000-02-10 10:51:05 -05:00
|
|
|
|
2001-03-25 18:04:52 -05:00
|
|
|
PATCH_SITES= ${MASTER_SITE_XFREE:S,%SUBDIR%/source,4.0.3/patches,g}
|
|
|
|
PATCHFILES= 4.0.2-4.0.3.diff.gz
|
|
|
|
PATCH_DIST_STRIP= -p1
|
1995-01-04 22:51:15 -05:00
|
|
|
|
2001-03-25 18:04:52 -05:00
|
|
|
MAINTAINER= taguchi@tohoku.iij.ad.jp
|
2000-11-03 06:08:12 -05:00
|
|
|
|
2000-08-25 06:35:22 -04:00
|
|
|
XFREE86_VERSION= 4
|
|
|
|
USE_IMAKE= YES
|
|
|
|
DIST_SUBDIR= xc
|
|
|
|
WRKSRC= ${WRKDIR}/xc
|
2001-03-25 18:04:52 -05:00
|
|
|
PATCHDIR= ${.CURDIR}/../../x11/XFree86-4-libraries/files
|
2001-04-12 10:26:00 -04:00
|
|
|
SCRIPTS_ENV= OSVERSION=${OSVERSION} \
|
|
|
|
HasXdmAuth=${HasXdmAuth} \
|
2001-03-25 18:04:52 -05:00
|
|
|
HasSecureRPC=${HasSecureRPC} \
|
|
|
|
HasPam=${HasPam} \
|
2001-04-12 10:26:00 -04:00
|
|
|
ExtendedInputDevices=${ExtendedInputDevices} \
|
|
|
|
BuildXF86DRI=${BuildXF86DRI} \
|
|
|
|
BuildXF86DRM=${BuildXF86DRM} \
|
|
|
|
HaveMatroxHal=${HaveMatroxHal}
|
2001-03-25 18:04:52 -05:00
|
|
|
MAKE_ENV= MAN_INSTALL_TARGET=FreeBSDPortsInstall.man
|
2000-08-25 06:35:22 -04:00
|
|
|
ALL_TARGET= FreeBSDPortsBuild
|
2001-04-12 10:26:00 -04:00
|
|
|
INSTALL_TARGET= FreeBSDPortsInstall FreeBSDPortsInstall.man
|
2000-08-25 06:35:22 -04:00
|
|
|
MAN1= SuperProbe.1 \
|
|
|
|
XFree86.1 \
|
|
|
|
Xserver.1 \
|
|
|
|
kbd_mode.1 \
|
2001-03-25 18:04:52 -05:00
|
|
|
pcitweak.1 \
|
|
|
|
scanpci.1 \
|
|
|
|
xf86config.1
|
2000-08-25 06:35:22 -04:00
|
|
|
MAN3= XF86VidMode.3 \
|
|
|
|
XF86VidModeDeleteModeLine.3 \
|
|
|
|
XF86VidModeGetAllModeLines.3 \
|
|
|
|
XF86VidModeGetModeLine.3 \
|
|
|
|
XF86VidModeGetMonitor.3 \
|
|
|
|
XF86VidModeGetViewPort.3 \
|
|
|
|
XF86VidModeLockModeSwitch.3 \
|
|
|
|
XF86VidModeModModeLine.3 \
|
|
|
|
XF86VidModeQueryExtension.3 \
|
|
|
|
XF86VidModeQueryVersion.3 \
|
|
|
|
XF86VidModeSetViewPort.3 \
|
|
|
|
XF86VidModeSwitchMode.3 \
|
|
|
|
XF86VidModeSwitchToMode.3
|
2001-03-25 18:04:52 -05:00
|
|
|
MAN4= mga.4 \
|
|
|
|
tdfx.4 \
|
2000-08-25 06:35:22 -04:00
|
|
|
glint.4 \
|
|
|
|
s3virge.4 \
|
2001-03-25 18:04:52 -05:00
|
|
|
rendition.4 \
|
|
|
|
savage.4 \
|
|
|
|
nv.4 \
|
|
|
|
siliconmotion.4 \
|
2000-08-25 06:35:22 -04:00
|
|
|
vga.4 \
|
2001-03-25 18:04:52 -05:00
|
|
|
keyboard.4 \
|
|
|
|
mouse.4
|
2001-04-12 10:26:00 -04:00
|
|
|
MAN5= XF86Config.5
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2000-06-08 06:42:32 -04:00
|
|
|
|
2001-03-25 18:04:52 -05:00
|
|
|
# XFree86 User Config:
|
|
|
|
# ---
|
|
|
|
# Name Default Meaning
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# HasXdmAuth YES support XDM-AUTHORIZATION-1.
|
|
|
|
# HasSecureRPC YES build with SecureRPC (require FreeBSD-3 or later)
|
|
|
|
# HasPam YES support PAM (require FreeBSD-3.1 or later)
|
|
|
|
# ExtendedInputDevices YES support extended input devices
|
|
|
|
HasXdmAuth?= DEFAULT
|
|
|
|
HasSecureRPC?= DEFAULT
|
|
|
|
HasPam?= DEFAULT
|
|
|
|
ExtendedInputDevices?= DEFAULT
|
2001-04-12 10:26:00 -04:00
|
|
|
.if (exists(/sys) || exists(/usr/src/sys)) && ${OSVERSION} < 500013
|
|
|
|
BuildXF86DRI= YES
|
|
|
|
BuildXF86DRM= YES
|
|
|
|
PLIST_SUB+= DRI=""
|
|
|
|
PKGMESSAGE= ${.CURDIR}/pkg-message-drm
|
2001-03-25 18:04:52 -05:00
|
|
|
.else
|
2001-04-12 10:26:00 -04:00
|
|
|
BuildXF86DRI= NO
|
|
|
|
BuildXF86DRM= NO
|
|
|
|
PLIST_SUB+= DRI="@comment "
|
|
|
|
.if ${OSVERSION} < 500013
|
|
|
|
pre-fetch::
|
|
|
|
@${ECHO_MSG} "DRI would not build: kernel source required in /sys."
|
2001-03-25 18:04:52 -05:00
|
|
|
.else
|
2001-04-12 10:26:00 -04:00
|
|
|
pre-fetch::
|
|
|
|
@${ECHO_MSG} "DRI would not build: incompatible with SMPng."
|
2001-03-25 18:04:52 -05:00
|
|
|
.endif
|
|
|
|
.endif
|
2000-06-09 02:55:56 -04:00
|
|
|
|
2001-03-25 18:04:52 -05:00
|
|
|
.if ${ARCH} == i386
|
|
|
|
PLIST_SUB+= I386:=""
|
|
|
|
MAN4+= apm.4 \
|
|
|
|
chips.4 \
|
|
|
|
cirrus.4 \
|
|
|
|
cyrix.4 \
|
|
|
|
fbdev.4 \
|
|
|
|
fbdevhw.4 \
|
|
|
|
i128.4 \
|
|
|
|
i740.4 \
|
|
|
|
i810.4 \
|
|
|
|
neomagic.4 \
|
|
|
|
r128.4 \
|
|
|
|
sis.4 \
|
|
|
|
trident.4 \
|
|
|
|
tseng.4 \
|
|
|
|
vesa.4
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= I386:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2001-04-12 10:26:00 -04:00
|
|
|
.if ${ExtendedInputDevices} == DEFAULT || ${ExtendedInputDevices} == YES
|
|
|
|
PLIST_SUB+= XIE:=""
|
|
|
|
MAN4+= citron.4 \
|
|
|
|
dynapro.4 \
|
|
|
|
elographics.4 \
|
|
|
|
microtouch.4 \
|
|
|
|
mutouch.4 \
|
|
|
|
wacom.4 \
|
|
|
|
void.4
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= XIE:="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_MATROX_GXX_DRIVER)
|
|
|
|
HaveMatroxHal= NO
|
|
|
|
PLIST_SUB+= MATROX="@comment "
|
|
|
|
pre-fetch::
|
|
|
|
@${ECHO_MSG} "Define WITH_MATROX_GXX_DRIVER to enable the official Matrox drivers for"
|
|
|
|
@${ECHO_MSG} "the G200, G400 and G450 graphic adapters."
|
|
|
|
.else
|
|
|
|
HaveMatroxHal= YES
|
|
|
|
MGA_DRIVER_VERSION= 1_2_0beta
|
|
|
|
MASTER_SITES+= ftp://ftp.matrox.com/pub/mga/archive/linux/2001/beta_${MGA_DRIVER_VERSION:S/beta//}/
|
|
|
|
DISTFILES+= mga-${MGA_DRIVER_VERSION}.tgz
|
|
|
|
EXTRACT_ONLY= X402src-1.tgz
|
|
|
|
PLIST_SUB+= MATROX=""
|
|
|
|
post-patch::
|
|
|
|
@${MV} ${WRKSRC}/programs/Xserver/hw/xfree86/drivers/mga \
|
|
|
|
${WRKSRC}/programs/Xserver/hw/xfree86/drivers/mga.old
|
|
|
|
@${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/mga-${MGA_DRIVER_VERSION}.tgz \
|
|
|
|
-C ${WRKSRC}/programs/Xserver/hw/xfree86/drivers
|
|
|
|
.endif # !WITH_MATROX_GXX_DRIVER
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
|
|
|
|
|
|
|
|
.if ${BuildXF86DRM} == "YES"
|
|
|
|
pre-install:
|
|
|
|
${MKDIR} ${PREFIX}/lib/X11/kernel
|
|
|
|
.endif
|
|
|
|
|
2000-11-03 06:08:12 -05:00
|
|
|
post-install:
|
2001-03-25 18:04:52 -05:00
|
|
|
strip ${PREFIX}/bin/XFree86
|
2001-04-12 10:26:00 -04:00
|
|
|
.if ${BuildXF86DRM} == "YES"
|
|
|
|
@${SED} -e s,/usr/X11R6,${PREFIX}, ${PKGMESSAGE}
|
|
|
|
.endif
|
2000-11-03 06:08:12 -05:00
|
|
|
|
2001-03-25 18:04:52 -05:00
|
|
|
.include <bsd.port.post.mk>
|