2001-06-12 11:01:11 -04:00
|
|
|
# New ports collection makefile for: XFree86-Server
|
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
|
2002-03-16 18:40:19 -05:00
|
|
|
PORTVERSION= 4.2.0
|
2002-04-01 21:03:31 -05:00
|
|
|
PORTREVISION= 2
|
2000-06-08 06:42:32 -04:00
|
|
|
CATEGORIES= x11-servers
|
2002-03-16 18:40:19 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_XFREE} \
|
|
|
|
ftp://psych.psy.uq.oz.au/pub/X11R5/:wrap \
|
|
|
|
ftp://ftp.internat.freebsd.org/pub/FreeBSD/X11-Crypto/:wrap \
|
|
|
|
ftp://ftp3.za.freebsd.org/pub/FreeBSD/X11-Crypto/:wrap
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTVERSION}
|
2000-06-08 06:42:32 -04:00
|
|
|
PKGNAMEPREFIX= XFree86-
|
2002-03-16 18:40:19 -05:00
|
|
|
DISTFILES= X${PORTVERSION:S/.//g}src-1.tgz Wraphelp.c:wrap
|
|
|
|
EXTRACT_ONLY= X${PORTVERSION:S/.//g}src-1.tgz
|
|
|
|
IGNOREFILES= Wraphelp.c
|
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} \
|
2002-04-01 21:03:31 -05:00
|
|
|
HasGlide3=${HasGlide3} \
|
2001-04-12 10:26:00 -04:00
|
|
|
HaveMatroxHal=${HaveMatroxHal}
|
2001-06-12 11:01:11 -04:00
|
|
|
MAKE_ENV= MAN_INSTALL_TARGET=FreeBSDPortsInstall.man WORLDOPTS=
|
|
|
|
MAKE_ARGS= WORLDOPTS=
|
2000-08-25 06:35:22 -04:00
|
|
|
ALL_TARGET= FreeBSDPortsBuild
|
2001-04-12 10:26:00 -04:00
|
|
|
INSTALL_TARGET= FreeBSDPortsInstall FreeBSDPortsInstall.man
|
2001-06-12 11:01:11 -04:00
|
|
|
MAN1= XFree86.1 \
|
2000-08-25 06:35:22 -04:00
|
|
|
Xserver.1 \
|
|
|
|
kbd_mode.1 \
|
2001-03-25 18:04:52 -05:00
|
|
|
pcitweak.1 \
|
2001-06-12 11:01:11 -04:00
|
|
|
xf86cfg.1 \
|
2001-03-25 18:04:52 -05:00
|
|
|
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 \
|
2002-03-16 18:40:19 -05:00
|
|
|
XF86VidModeSwitchToMode.3 \
|
|
|
|
XF86VidModeValidateModeLine.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
|
2001-06-12 11:01:11 -04:00
|
|
|
PKGMESSAGE= ${WRKDIR}/.pkg-message
|
2001-04-12 10:26:00 -04:00
|
|
|
|
|
|
|
.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
|
2002-03-16 18:40:19 -05:00
|
|
|
HasXdmAuth?= YES
|
2001-03-25 18:04:52 -05:00
|
|
|
HasSecureRPC?= DEFAULT
|
|
|
|
HasPam?= DEFAULT
|
|
|
|
ExtendedInputDevices?= DEFAULT
|
2002-04-01 21:03:31 -05:00
|
|
|
|
|
|
|
.if ${ARCH} == i386
|
2001-04-12 10:26:00 -04:00
|
|
|
BuildXF86DRI= YES
|
|
|
|
PLIST_SUB+= DRI=""
|
2002-04-01 21:03:31 -05:00
|
|
|
MASTER_SITES+= http://gladstone.uoregon.edu/~eanholt/dri/:glide
|
|
|
|
DISTFILES+= freebsd-glide3headers.tar.gz:glide
|
|
|
|
HasGlide3= YES
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@(cd ${WRKSRC}/lib/GL/mesa/src/drv/tdfx/ ; \
|
|
|
|
tar xfpz ${DISTDIR}/${DIST_SUBDIR}/freebsd-glide3headers.tar.gz)
|
2001-06-12 11:01:11 -04:00
|
|
|
.else
|
2001-10-20 01:25:20 -04:00
|
|
|
pre-fetch::
|
2002-03-19 09:24:07 -05:00
|
|
|
@${ECHO_MSG} "DRI only built on i386"
|
2001-04-12 10:26:00 -04:00
|
|
|
BuildXF86DRI= NO
|
2002-04-01 21:03:31 -05:00
|
|
|
HasGlide3= NO
|
2002-03-16 18:40:19 -05:00
|
|
|
PLIST_SUB+= DRI="@comment "
|
2002-04-01 21:03:31 -05:00
|
|
|
.endif # i386
|
2000-06-09 02:55:56 -04:00
|
|
|
|
2002-03-19 13:22:49 -05:00
|
|
|
# Some things are not applicable if this machine is an alpha
|
|
|
|
.if ${ARCH} == alpha
|
|
|
|
PLIST_SUB+= ALPHA_NA="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ALPHA_NA=""
|
|
|
|
MAN1+= scanpci.1
|
|
|
|
MAN4+= vmware.4
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
|
2002-03-16 18:40:19 -05:00
|
|
|
# matrox BETA driver is not ready for 4.2.0.
|
|
|
|
# I don't confirm feather it is newer than the one which included in 4.2.0,
|
|
|
|
# but you can try the BETA driver. Just set that variable.
|
|
|
|
|
2002-03-17 19:52:04 -05:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} "********************************************************"
|
|
|
|
@${ECHO_MSG} "WARNING: MATROX DRIVERS NOT FULLY TESTED WITH XFREE86"
|
|
|
|
@${ECHO_MSG} "4.2.0! ENABLE AT YOUR OWN RISK!"
|
|
|
|
@${ECHO_MSG} "********************************************************"
|
|
|
|
|
2001-10-20 01:25:20 -04:00
|
|
|
.if ${BuildXF86DRI} == YES
|
2001-04-12 10:26:00 -04:00
|
|
|
.if !defined(WITH_MATROX_GXX_DRIVER)
|
|
|
|
HaveMatroxHal= NO
|
|
|
|
PLIST_SUB+= MATROX="@comment "
|
2001-10-20 01:25:20 -04:00
|
|
|
pre-fetch::
|
2002-03-17 18:03:28 -05:00
|
|
|
@${ECHO_MSG} "********************************************************"
|
2002-03-16 18:40:19 -05:00
|
|
|
@${ECHO_MSG} "Define WITH_MATROX_GXX_DRIVER to enable the official"
|
|
|
|
@${ECHO_MSG} "Matrox drivers for the G200, G400, G450, and G550"
|
|
|
|
@${ECHO_MSG} "graphic adapters."
|
2002-03-17 18:03:28 -05:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "This has been tested on a G400 AGP card."
|
|
|
|
@${ECHO_MSG} "********************************************************"
|
2001-04-12 10:26:00 -04:00
|
|
|
.else
|
2001-10-20 01:25:20 -04:00
|
|
|
NO_PACKAGE= "Matrox drivers may not be distributed."
|
2002-03-17 18:03:28 -05:00
|
|
|
RESTRICTED= "Matrox drivers may not be distributed."
|
2001-04-12 10:26:00 -04:00
|
|
|
HaveMatroxHal= YES
|
2002-03-17 18:03:28 -05:00
|
|
|
MGA_DRIVER_VERSION= 2.0
|
2002-03-17 19:52:04 -05:00
|
|
|
MASTER_SITES+= ftp://ftp.matrox.com/pub/mga/archive/linux/2002/:mga
|
|
|
|
DISTFILES+= mgadrivers-${MGA_DRIVER_VERSION}-src.tgz:mga
|
2002-03-17 18:03:28 -05:00
|
|
|
EXTRACT_ONLY+= mgadrivers-${MGA_DRIVER_VERSION}-src.tgz
|
|
|
|
RESTRICTED_FILES= mgadrivers-${MGA_DRIVER_VERSION}-src.tgz
|
2001-04-12 10:26:00 -04:00
|
|
|
PLIST_SUB+= MATROX=""
|
|
|
|
post-patch::
|
2001-10-20 01:25:20 -04:00
|
|
|
@(cd ${WRKSRC}; \
|
|
|
|
${MV} programs/Xserver/hw/xfree86/drivers/mga \
|
|
|
|
programs/Xserver/hw/xfree86/drivers/mga.old; \
|
2002-03-17 18:03:28 -05:00
|
|
|
${MV} ../mgadrivers-${MGA_DRIVER_VERSION}-src/${PORTVERSION}/drivers/src programs/Xserver/hw/xfree86/drivers/mga)
|
2001-10-20 01:25:20 -04:00
|
|
|
post-install::
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/programs/Xserver/hw/xfree86/drivers/mga/README_HALLIB ${PREFIX}/lib/X11/doc/README.mga_HALLIB
|
2001-04-12 10:26:00 -04:00
|
|
|
.endif # !WITH_MATROX_GXX_DRIVER
|
2002-03-19 09:24:07 -05:00
|
|
|
.else
|
|
|
|
HaveMatroxHal= NO
|
2002-03-19 13:22:49 -05:00
|
|
|
PLIST_SUB+= MATROX="@comment "
|
2001-10-20 01:25:20 -04:00
|
|
|
.endif
|
2001-04-12 10:26:00 -04:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
|
|
|
|
|
2001-06-12 12:08:20 -04:00
|
|
|
post-build:
|
2001-06-14 13:54:05 -04:00
|
|
|
@${RM} -f ${PKGMESSAGE}
|
2001-06-12 12:08:20 -04:00
|
|
|
@${CAT} ${.CURDIR}/pkg-message >> ${PKGMESSAGE}
|
|
|
|
|
2001-10-20 01:25:20 -04:00
|
|
|
post-install::
|
2001-06-12 12:08:20 -04:00
|
|
|
@${SED} -e s,/usr/X11R6,${PREFIX}, ${PKGMESSAGE}
|
|
|
|
strip ${PREFIX}/bin/XFree86
|
2000-11-03 06:08:12 -05:00
|
|
|
|
2001-03-25 18:04:52 -05:00
|
|
|
.include <bsd.port.post.mk>
|