1995-04-12 20:26:23 +00:00
|
|
|
# New ports collection makefile for: XFree86
|
|
|
|
# Date created: 5 January 1995
|
|
|
|
# Whom: jmz
|
|
|
|
#
|
1999-08-31 02:51:23 +00:00
|
|
|
# $FreeBSD$
|
1995-04-12 20:26:23 +00:00
|
|
|
#
|
|
|
|
|
2000-04-13 19:19:05 +00:00
|
|
|
PORTNAME= XFree86
|
2000-07-03 19:40:43 +00:00
|
|
|
PORTVERSION= 4.0.1
|
2000-09-30 22:13:04 +00:00
|
|
|
PORTREVISION= 2
|
1996-11-09 02:08:56 +00:00
|
|
|
CATEGORIES= x11
|
2000-09-21 08:36:28 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_XFREE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTVERSION}
|
2000-07-03 17:33:14 +00:00
|
|
|
DISTFILES= X401src-1.tgz X401src-2.tgz
|
2000-02-10 15:51:05 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= jmz@FreeBSD.org
|
1995-01-05 03:51:15 +00:00
|
|
|
|
2000-04-16 03:30:37 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DIST_SUBDIR}
|
1999-11-12 22:09:06 +00:00
|
|
|
.if (${MACHINE} != "alpha")
|
1999-12-24 16:42:18 +00:00
|
|
|
#NO_PACKAGE= package available from XFree86
|
1999-11-12 22:09:06 +00:00
|
|
|
.endif
|
1996-11-09 02:08:56 +00:00
|
|
|
ALL_TARGET= World
|
|
|
|
INSTALL_TARGET= install install.man
|
|
|
|
DIST_SUBDIR= xc
|
1998-05-05 21:47:31 +00:00
|
|
|
PATCH_DIST_ARGS=-p0 -E -d ${WRKDIR} --quiet
|
1999-07-20 23:42:31 +00:00
|
|
|
SCRIPTS_ENV= OSVERSION=${OSVERSION}
|
2000-03-11 00:20:34 +00:00
|
|
|
.ifdef DISTRIB
|
|
|
|
DESTDIR= ${WRKDIR}/distrib
|
|
|
|
MAKE_ENV+= DESTDIR=${DESTDIR}
|
|
|
|
NO_PKG_REGISTER=yes
|
|
|
|
SCRIPTS_ENV+= NO_INPUT=yes
|
|
|
|
.endif
|
1998-08-05 09:31:52 +00:00
|
|
|
# can't use USE_X_PREFIX here -- it will cause a circular dependency
|
|
|
|
PREFIX= ${X11BASE}
|
2000-03-11 00:20:34 +00:00
|
|
|
.if defined(DISTRIB) || defined(PACKAGE_BUILDING)
|
2000-03-13 08:09:33 +00:00
|
|
|
#IS_INTERACTIVE is boolean -- "no" is the same as defining it "yes"!
|
|
|
|
#IS_INTERACTIVE= no
|
2000-03-11 00:20:34 +00:00
|
|
|
.else
|
|
|
|
IS_INTERACTIVE= yes # configure script asks questions
|
|
|
|
.endif
|
1998-08-05 09:31:52 +00:00
|
|
|
MTREE_FILE= /etc/mtree/BSD.x11.dist
|
1998-10-27 04:12:44 +00:00
|
|
|
.if (${MACHINE} == "pc98")
|
|
|
|
SCRIPTS_ENV+= MACHINE=pc98
|
|
|
|
PLIST= ${PKGDIR}/PLIST.pc98
|
|
|
|
.endif
|
1999-07-27 14:27:34 +00:00
|
|
|
.if (${MACHINE} == "alpha")
|
|
|
|
SCRIPTS_ENV+= MACHINE=alpha
|
|
|
|
PLIST= ${PKGDIR}/PLIST.alpha
|
|
|
|
.endif
|
1995-01-05 03:51:15 +00:00
|
|
|
|
1998-03-19 14:57:20 +00:00
|
|
|
.if defined(XDM_DES) && (${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO)
|
|
|
|
pre-fetch:
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} You must set variable USA_RESIDENT to YES or NO.
|
1999-08-23 04:23:59 +00:00
|
|
|
@${FALSE}
|
1998-03-19 14:57:20 +00:00
|
|
|
.elif defined(USA_RESIDENT)
|
|
|
|
.if ${USA_RESIDENT} == NO
|
|
|
|
pre-fetch:
|
2000-06-13 21:54:07 +00:00
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
|
|
|
${SH} ${PKGDIR}/INSTALL
|
|
|
|
.endif
|
1998-03-19 14:57:20 +00:00
|
|
|
MASTER_SITES+= ftp://psych.psy.uq.oz.au/pub/X11R5/ \
|
|
|
|
ftp://ftp.internat.freebsd.org/pub/FreeBSD/X11-Crypto/ \
|
|
|
|
ftp://ftp3.za.freebsd.org/pub/FreeBSD/X11-Crypto/
|
2000-07-03 17:33:14 +00:00
|
|
|
EXTRACT_ONLY= X401src-1.tgz X401src-2.tgz
|
1998-03-19 14:57:20 +00:00
|
|
|
DISTFILES+= Wraphelp.c
|
|
|
|
IGNOREFILES= Wraphelp.c
|
|
|
|
.endif
|
|
|
|
.if ${USA_RESIDENT} == YES
|
|
|
|
pre-fetch:
|
2000-06-09 06:36:26 +00:00
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
|
|
|
${SH} ${PKGDIR}/INSTALL
|
|
|
|
.endif
|
1998-03-19 14:57:20 +00:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} Assuming that you have fetched a USA-Legal Wraphelp.c.
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1997-08-23 16:35:32 +00:00
|
|
|
pre-install:
|
2000-03-11 00:20:34 +00:00
|
|
|
${MKDIR} ${PREFIX}
|
1998-11-14 09:43:39 +00:00
|
|
|
|
1995-06-24 11:42:32 +00:00
|
|
|
post-install:
|
2000-03-11 00:20:34 +00:00
|
|
|
.ifndef DISTRIB
|
1998-09-21 00:04:36 +00:00
|
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
2000-03-11 00:20:34 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef DISTRIB
|
|
|
|
distrib: all install
|
|
|
|
@cd ../XFree86-contrib && \
|
|
|
|
${MAKE} NO_PKG_REGISTER=yes WRKDIR=${WRKDIR}/contrib-work \
|
|
|
|
PREFIX=${X11BASE} PREFIX=${DESTDIR}/${PREFIX} all install
|
|
|
|
@${MKDIR} ${WRKDIR}/bindist
|
|
|
|
@${CP} ${WRKSRC}/programs/Xserver/hw/xfree86/etc/bindist/FreeBSD-ELF/* \
|
|
|
|
${WRKDIR}/bindist
|
|
|
|
@${SED} -e 's:TAR="gnu-tar":TAR="${TAR}":g' \
|
|
|
|
-e 's/EXTRACTLOPTS="-t -v"/TARLOPTS="-t -v -z"/g' \
|
|
|
|
-e 's/\(#\)\( echo $$i >> $$LISTFILE\)/\2/g' \
|
|
|
|
-e 's/\(#\)\( echo "------------" >> $$LISTFILE\)/\2/g' \
|
|
|
|
-e 's/\(#\)\( $$TAR $$TARLOPTS -f $$i >> $$LISTFILE\)/\2/g' \
|
|
|
|
-e 's/\(#\)\( echo "" >> $$LISTFILE\)/\2/g' \
|
|
|
|
-e 's/\( $$EXTRACT $$EXTRACTLOPTS $$i >> $$LISTFILE\)/#\1/g' \
|
|
|
|
< ${WRKSRC}/programs/Xserver/hw/xfree86/etc/bindist/build-bindist \
|
|
|
|
> ${WRKDIR}/build-bindist
|
|
|
|
@${CHMOD} 0555 ${WRKDIR}/build-bindist
|
|
|
|
@${WRKDIR}/build-bindist X ${WRKDIR}/distrib ${WRKDIR}/bindist
|
|
|
|
.else
|
|
|
|
distrib:
|
|
|
|
@${ECHO_MSG} '>> The DISTRIB variable must be set when building ' \
|
|
|
|
'"distrib".'
|
|
|
|
@exit 1
|
|
|
|
.endif
|
1995-06-24 11:42:32 +00:00
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|