Index: devel/imake-4/Makefile =================================================================== RCS file: /home/ncvs/ports/devel/imake-4/Makefile,v retrieving revision 1.22 diff -u -r1.22 Makefile --- devel/imake-4/Makefile 22 May 2002 14:29:16 -0000 1.22 +++ devel/imake-4/Makefile 16 Jul 2002 07:49:03 -0000 @@ -14,13 +14,13 @@ ftp://ftp.internat.FreeBSD.org/pub/FreeBSD/X11-Crypto/:wrap \ ftp://ftp3.za.FreeBSD.org/pub/FreeBSD/X11-Crypto/:wrap MASTER_SITE_SUBDIR= ${PORTVERSION} +DISTFILES= X${PORTVERSION:S/.//g}src-1.tgz EXTRACT_ONLY= X${PORTVERSION:S/.//g}src-1.tgz -DISTFILES= X${PORTVERSION:S/.//g}src-1.tgz Wraphelp.c:wrap -IGNOREFILES= Wraphelp.c -MAINTAINER= taguchi@tohoku.iij.ad.jp +MAINTAINER= anholt@freebsd.org PREFIX?= ${X11BASE} +USE_PERL5= YES .include @@ -74,11 +74,11 @@ INSTALL_TARGET= install install.man # --- # User Config: -# All variables are same as Imake config macros. +# All variables are the same as Imake config macros. # For more details, see ${WRKDIR}/xc/config/cf/README. -# Followings will write to ${PFEFIX}/lib/X11/config/xf86site.def, +# Following will write to ${PREFIX}/lib/X11/config/xf86site.def, # and all of XFree86-4-* ports will use them as default value. -# Offcause, you can override them (at your own risk ;-). +# Of course, you can override them (at your own risk ;-). # Read scripts/configure for more details. # --- HasSecureRPC?= YES Index: x11/XFree86-4-clients/Makefile =================================================================== RCS file: /home/ncvs/ports/x11/XFree86-4-clients/Makefile,v retrieving revision 1.98 diff -u -r1.98 Makefile --- x11/XFree86-4-clients/Makefile 14 Jul 2002 20:26:02 -0000 1.98 +++ x11/XFree86-4-clients/Makefile 16 Jul 2002 08:21:56 -0000 @@ -30,7 +30,6 @@ SCRIPTS_ENV= InstallXdmConfig=${InstallXdmConfig} \ InstallXinitConfig=${InstallXinitConfig} \ InstallAppDefFiles=${InstallAppDefFiles} \ - HasXdmAuth=${HasXdmAuth} \ HasSecureRPC=${HasSecureRPC} \ HasPam=${HasPam} MAKE_ENV= PKGNAMEPREFIX=${PKGNAMEPREFIX} \ @@ -43,7 +42,6 @@ # 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) # InstallXdmConfig YES install config files for xdm. @@ -55,7 +53,6 @@ InstallXdmConfig?= DEFAULT InstallXinitConfig?= DEFAULT InstallAppDefFiles?= DEFAULT -HasXdmAuth?= YES HasSecureRPC?= DEFAULT HasPam?= DEFAULT @@ -64,6 +61,7 @@ ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \ ${DISTDIR}/${DIST_SUBDIR}/X${PORTVERSION:S/.//g}src-2.tgz \ | ${TAR} -xf - xc/fonts/util ) + ${CP} ${DISTDIR}/${DIST_SUBDIR}/Wraphelp.c ${WRKSRC}/lib/Xdmcp/ post-patch: cd ${WRKSRC}/nls; \ Index: x11/XFree86-4-clients/scripts/configure =================================================================== RCS file: /home/ncvs/ports/x11/XFree86-4-clients/scripts/configure,v retrieving revision 1.65 diff -u -r1.65 configure --- x11/XFree86-4-clients/scripts/configure 6 Jan 2002 20:55:16 -0000 1.65 +++ x11/XFree86-4-clients/scripts/configure 16 Jul 2002 07:56:05 -0000 @@ -1,14 +1,14 @@ #!/bin/sh -# This scripts work as following: -# (1) cp current xf86site.def (it may be created by imake-4 ports) +# This script does the following: +# (1) cp current xf86site.def (it is created by the imake-4 port) # to ${WRKDIR}/xc/config/cf. -# this means this ports use imake-4's config defaultly. +# this means this port uses imake-4's config for defaults. # (2) Generate temporal config for compiling. # Some configs, such as `ForceNormalLib', `FreeBSDBuildXprog', are -# used for compiling this ports localy. so these configs will be generated -# this scripts. these configs will be stored to `host.def' file. -# but this host.def will never install. use local only. +# used locally for compiling this port, so these configs will be generated +# by this script. These configs will be stored to the `host.def' file, +# but this host.def will never be installed. ORIGDEF=$PREFIX/lib/X11/config/xf86site.def DESTDEF=$WRKDIR/xc/config/cf/xf86site.def @@ -71,36 +71,9 @@ echo "#define FreeBSDBuildXlib NO" >> $LOCALDEF echo "#define FreeBSDBuildXbin YES" >> $LOCALDEF - # Check Wraphelp.c - if [ $HasXdmAuth = DEFAULT ]; then - HasXdmAuth=$(awk '/^#define.*HasXdmAuth/ {print $3}' $ORIGDEF|tail -1) - fi - - cpwh=NO - if [ $HasXdmAuth = YES ]; then - WH=$WRKDIR/xc/lib/Xdmcp/Wraphelp.c - if [ -f $WH ] ; then - cpwh=SOURCE - elif [ -f $DISTDIR/xc/Wraphelp.c ] ; then - cpwh=$DISTDIR/xc/Wraphelp.c - else - echo "==> You must fetch USA-legal Wraphelp.c manually" - echo "==> and put it to ${DISTDIR}/xc/." - exit 1 - fi - if [ X$cpwh != XNO -a X$cpwh != XSOURCE ]; then - tr -d '\r' < $cpwh > $WH - fi - fi - # Copy ORIGDEF to DESTDEF rm -f $DESTDEF - grep -v '#define.*HasXdmAuth' $ORIGDEF >> $DESTDEF - if [ $cpwh = NO ] ; then - echo "#define HasXdmAuth NO" >> $DESTDEF - else - echo "#define HasXdmAuth YES" >> $DESTDEF - fi + cp -f $ORIGDEF $DESTDEF # copy generated config to host.def cp -f $LOCALDEF $HOSTDEF Index: x11/XFree86-4-libraries/Makefile =================================================================== RCS file: /home/ncvs/ports/x11/XFree86-4-libraries/Makefile,v retrieving revision 1.106 diff -u -r1.106 Makefile --- x11/XFree86-4-libraries/Makefile 14 Jul 2002 20:26:06 -0000 1.106 +++ x11/XFree86-4-libraries/Makefile 16 Jul 2002 08:21:56 -0000 @@ -39,8 +39,7 @@ INSTALLS_SHLIB= yes DIST_SUBDIR= xc WRKSRC= ${WRKDIR}/xc -SCRIPTS_ENV= HasXdmAuth=${HasXdmAuth} \ - HasSecureRPC=${HasSecureRPC} \ +SCRIPTS_ENV= HasSecureRPC=${HasSecureRPC} \ BuildPexExt=${BuildPexExt} \ BuildXinerama=${BuildXinerama} \ BuildXIE=${BuildXIE} \ @@ -59,7 +58,6 @@ # --- # Name Default Meaning # ---------------------------------------------------------------------------- -# HasXdmAuth YES support XDM-AUTHORIZATION-1. # HasSecureRPC YES build with SecureRPC (require FreeBSD-3 or later) # BuildPexExt YES build PEX extension # BuildXinerama YES build Xinerama extension @@ -70,7 +68,6 @@ # ---------------------------------------------------------------------------- # DEFAULT means ports will use values which set by ${PORTSDIR}/devel/imake-4 # -HasXdmAuth?= YES HasSecureRPC?= DEFAULT BuildPexExt?= DEFAULT BuildXinerama?= DEFAULT @@ -88,6 +85,9 @@ .else PLIST_SUB+= OSMESA:="" .endif + +post-extract: + ${CP} ${DISTDIR}/${DIST_SUBDIR}/Wraphelp.c ${WRKSRC}/lib/Xdmcp/ post-patch: cd ${WRKSRC}/nls; \ Index: x11/XFree86-4-libraries/scripts/configure =================================================================== RCS file: /home/ncvs/ports/x11/XFree86-4-libraries/scripts/configure,v retrieving revision 1.66 diff -u -r1.66 configure --- x11/XFree86-4-libraries/scripts/configure 16 Mar 2002 23:40:18 -0000 1.66 +++ x11/XFree86-4-libraries/scripts/configure 16 Jul 2002 07:56:10 -0000 @@ -1,14 +1,14 @@ #!/bin/sh -# This scripts work as following: -# (1) cp current xf86site.def (it may be created by imake-4 ports) +# This script does the following: +# (1) cp current xf86site.def (it is created by the imake-4 port) # to ${WRKDIR}/xc/config/cf. -# this means this ports use imake-4's config defaultly. +# this means this port uses imake-4's config for defaults. # (2) Generate temporal config for compiling. # Some configs, such as `ForceNormalLib', `FreeBSDBuildXprog', are -# used for compiling this ports localy. so these configs will be generated -# this scripts. these configs will be add to `host.def' file. -# but this host.def will never install. use local only. +# used locally for compiling this port, so these configs will be generated +# by this script. These configs will be stored to the `host.def' file, +# but this host.def will never be installed. ORIGDEF=$PREFIX/lib/X11/config/xf86site.def DESTDEF=$WRKDIR/xc/config/cf/xf86site.def @@ -73,33 +73,9 @@ echo "#define FreeBSDBuildXlib YES" >> $LOCALDEF echo "#define FreeBSDBuildXbin NO" >> $LOCALDEF - HasXdmAuth=YES - - cpwh=NO - if [ $HasXdmAuth = YES ]; then - WH=$WRKDIR/xc/lib/Xdmcp/Wraphelp.c - if [ -f $WH ] ; then - cpwh=SOURCE - elif [ -f $DISTDIR/xc/Wraphelp.c ] ; then - cpwh=$DISTDIR/xc/Wraphelp.c - else - echo "==> You must fetch USA-legal Wraphelp.c manually" - echo "==> and put it to ${DISTDIR}/xc/." - exit 1 - fi - if [ X$cpwh != XNO -a X$cpwh != XSOURCE ]; then - tr -d '\r' < $cpwh > $WH - fi - fi - # Copy ORIGDEF to DESTDEF rm -f $DESTDEF - grep -v '#define.*HasXdmAuth' $ORIGDEF >> $DESTDEF - if [ $cpwh = NO ] ; then - echo "#define HasXdmAuth NO" >> $DESTDEF - else - echo "#define HasXdmAuth YES" >> $DESTDEF - fi + cp -f $ORIGDEF $DESTDEF # copy generated config to host.def cp -f $LOCALDEF $HOSTDEF Index: x11-servers/XFree86-4-FontServer/Makefile =================================================================== RCS file: /home/ncvs/ports/x11-servers/XFree86-4-FontServer/Makefile,v retrieving revision 1.12 diff -u -r1.12 Makefile --- x11-servers/XFree86-4-FontServer/Makefile 14 Jul 2002 20:26:22 -0000 1.12 +++ x11-servers/XFree86-4-FontServer/Makefile 16 Jul 2002 18:31:13 -0000 @@ -8,10 +8,15 @@ PORTNAME= FontServer PORTVERSION= 4.2.0 CATEGORIES= x11-servers x11-fonts -MASTER_SITES= ${MASTER_SITE_XFREE} +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} PKGNAMEPREFIX= XFree86- -DISTFILES= X${PORTVERSION:S/.//g}src-1.tgz +DISTFILES= X${PORTVERSION:S/.//g}src-1.tgz Wraphelp.c:wrap +EXTRACT_ONLY= X${PORTVERSION:S/.//g}src-1.tgz +IGNOREFILES= Wraphelp.c MAINTAINER= anholt@freebsd.org @@ -24,6 +29,9 @@ ALL_TARGET= FreeBSDPortsBuild INSTALL_TARGET= FreeBSDPortsInstall installXserver.man MAN1= Xserver.1 xfs.1 + +post-extract: + ${CP} ${DISTDIR}/${DIST_SUBDIR}/Wraphelp.c ${WRKSRC}/lib/Xdmcp/ do-configure: cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure Index: x11-servers/XFree86-4-FontServer/distinfo =================================================================== RCS file: /home/ncvs/ports/x11-servers/XFree86-4-FontServer/distinfo,v retrieving revision 1.5 diff -u -r1.5 distinfo --- x11-servers/XFree86-4-FontServer/distinfo 16 Mar 2002 23:40:14 -0000 1.5 +++ x11-servers/XFree86-4-FontServer/distinfo 16 Jul 2002 18:31:32 -0000 @@ -1 +1,2 @@ MD5 (xc/X420src-1.tgz) = ad43a8e9e39703322005cd6f7145b77f +MD5 (xc/Wraphelp.c) = IGNORE Index: x11-servers/XFree86-4-FontServer/scripts/configure =================================================================== RCS file: /home/ncvs/ports/x11-servers/XFree86-4-FontServer/scripts/configure,v retrieving revision 1.4 diff -u -r1.4 configure --- x11-servers/XFree86-4-FontServer/scripts/configure 6 Jan 2002 20:33:54 -0000 1.4 +++ x11-servers/XFree86-4-FontServer/scripts/configure 16 Jul 2002 07:56:13 -0000 @@ -1,14 +1,14 @@ #!/bin/sh -# This scripts work as following: -# (1) cp current xf86site.def (it may be created by imake-4 ports) +# This script does the following: +# (1) cp current xf86site.def (it is created by the imake-4 port) # to ${WRKDIR}/xc/config/cf. -# this means this ports use imake-4's config defaultly. +# this means this port uses imake-4's config for defaults. # (2) Generate temporal config for compiling. # Some configs, such as `ForceNormalLib', `FreeBSDBuildXprog', are -# used for compiling this ports localy. so these configs will be generated -# this scripts. these configs will be stored to `host.def' file. -# but this host.def will never install. use local only. +# used locally for compiling this port, so these configs will be generated +# by this script. These configs will be stored to the `host.def' file, +# but this host.def will never be installed. ORIGDEF=$PREFIX/lib/X11/config/xf86site.def DESTDEF=$WRKDIR/xc/config/cf/xf86site.def @@ -58,6 +58,8 @@ echo "#define InstallFSConfig $InstallFSConfig" >> $LOCALDEF echo "#define FreeBSDBuildXfs YES" >> $LOCALDEF + # Copy ORIGDEF to DESTDEF + rm -f $DESTDEF cp -f $ORIGDEF $DESTDEF # copy generated config to host.def Index: x11-servers/XFree86-4-NestServer/Makefile =================================================================== RCS file: /home/ncvs/ports/x11-servers/XFree86-4-NestServer/Makefile,v retrieving revision 1.13 diff -u -r1.13 Makefile --- x11-servers/XFree86-4-NestServer/Makefile 14 Jul 2002 20:26:29 -0000 1.13 +++ x11-servers/XFree86-4-NestServer/Makefile 16 Jul 2002 08:21:57 -0000 @@ -25,14 +25,14 @@ DIST_SUBDIR= xc WRKSRC= ${WRKDIR}/xc PATCHDIR= ${.CURDIR}/../../x11/XFree86-4-libraries/files -SCRIPTS_ENV= HasXdmAuth=${HasXdmAuth} MAKE_ENV= MAN_INSTALL_TARGET=installXnest.man ALL_TARGET= FreeBSDPortsBuild INSTALL_TARGET= installXnest installXserver.man MANCOMPRESSED= yes MAN1= Xnest.1 Xserver.1 -HasXdmAuth?= YES +post-extract: + ${CP} ${DISTDIR}/${DIST_SUBDIR}/Wraphelp.c ${WRKSRC}/lib/Xdmcp/ do-configure: cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure Index: x11-servers/XFree86-4-NestServer/scripts/configure =================================================================== RCS file: /home/ncvs/ports/x11-servers/XFree86-4-NestServer/scripts/configure,v retrieving revision 1.3 diff -u -r1.3 configure --- x11-servers/XFree86-4-NestServer/scripts/configure 6 Jan 2002 20:55:21 -0000 1.3 +++ x11-servers/XFree86-4-NestServer/scripts/configure 16 Jul 2002 07:56:16 -0000 @@ -1,14 +1,14 @@ #!/bin/sh -# This scripts work as following: -# (1) cp current xf86site.def (it may be created by imake-4 ports) +# This script does the following: +# (1) cp current xf86site.def (it is created by the imake-4 port) # to ${WRKDIR}/xc/config/cf. -# this means this ports use imake-4's config defaultly. +# this means this port uses imake-4's config for defaults. # (2) Generate temporal config for compiling. # Some configs, such as `ForceNormalLib', `FreeBSDBuildXprog', are -# used for compiling this ports localy. so these configs will be generated -# this scripts. these configs will be stored to `host.def' file. -# but this host.def will never install. use local only. +# used locally for compiling this port, so these configs will be generated +# by this script. These configs will be stored to the `host.def' file, +# but this host.def will never be installed. ORIGDEF=$PREFIX/lib/X11/config/xf86site.def DESTDEF=$WRKDIR/xc/config/cf/xf86site.def @@ -49,36 +49,9 @@ echo "#define XnestServer YES" >> $LOCALDEF echo "#define BuildServersOnly YES" >> $LOCALDEF - # Check Wraphelp.c - if [ $HasXdmAuth = DEFAULT ]; then - HasXdmAuth=$(awk '/^#define.*HasXdmAuth/ {print $3}' $ORIGDEF|tail -1) - fi - - cpwh=NO - if [ $HasXdmAuth = YES ]; then - WH=$WRKDIR/xc/lib/Xdmcp/Wraphelp.c - if [ -f $WH ] ; then - cpwh=SOURCE - elif [ -f $DISTDIR/xc/Wraphelp.c ] ; then - cpwh=$DISTDIR/xc/Wraphelp.c - else - echo "==> You must fetch USA-legal Wraphelp.c manually" - echo "==> and put it to ${DISTDIR}/xc/." - exit 1 - fi - if [ X$cpwh != XNO -a X$cpwh != XSOURCE ]; then - tr -d '\r' < $cpwh > $WH - fi - fi - # Copy ORIGDEF to DESTDEF rm -f $DESTDEF - grep -v '#define.*HasXdmAuth' $ORIGDEF >> $DESTDEF - if [ $cpwh = NO ] ; then - echo "#define HasXdmAuth NO" >> $DESTDEF - else - echo "#define HasXdmAuth YES" >> $DESTDEF - fi + cp -f $ORIGDEF $DESTDEF # copy generated config to host.def cp -f $LOCALDEF $HOSTDEF Index: x11-servers/XFree86-4-PrintServer/Makefile =================================================================== RCS file: /home/ncvs/ports/x11-servers/XFree86-4-PrintServer/Makefile,v retrieving revision 1.13 diff -u -r1.13 Makefile --- x11-servers/XFree86-4-PrintServer/Makefile 14 Jul 2002 20:26:30 -0000 1.13 +++ x11-servers/XFree86-4-PrintServer/Makefile 16 Jul 2002 08:21:57 -0000 @@ -25,12 +25,12 @@ DIST_SUBDIR= xc WRKSRC= ${WRKDIR}/xc PATCHDIR= ${.CURDIR}/../../x11/XFree86-4-libraries/files -SCRIPTS_ENV= HasXdmAuth=${HasXdmAuth} MAKE_ENV= MAN_INSTALL_TARGET=NOOP ALL_TARGET= FreeBSDPortsBuild INSTALL_TARGET= installXprt -HasXdmAuth?= YES +post-extract: + ${CP} ${DISTDIR}/${DIST_SUBDIR}/Wraphelp.c ${WRKSRC}/lib/Xdmcp/ do-configure: cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure Index: x11-servers/XFree86-4-PrintServer/scripts/configure =================================================================== RCS file: /home/ncvs/ports/x11-servers/XFree86-4-PrintServer/scripts/configure,v retrieving revision 1.3 diff -u -r1.3 configure --- x11-servers/XFree86-4-PrintServer/scripts/configure 6 Jan 2002 20:55:21 -0000 1.3 +++ x11-servers/XFree86-4-PrintServer/scripts/configure 16 Jul 2002 07:56:18 -0000 @@ -1,14 +1,14 @@ #!/bin/sh -# This scripts work as following: -# (1) cp current xf86site.def (it may be created by imake-4 ports) +# This script does the following: +# (1) cp current xf86site.def (it is created by the imake-4 port) # to ${WRKDIR}/xc/config/cf. -# this means this ports use imake-4's config defaultly. +# this means this port uses imake-4's config for defaults. # (2) Generate temporal config for compiling. # Some configs, such as `ForceNormalLib', `FreeBSDBuildXprog', are -# used for compiling this ports localy. so these configs will be generated -# this scripts. these configs will be stored to `host.def' file. -# but this host.def will never install. use local only. +# used locally for compiling this port, so these configs will be generated +# by this script. These configs will be stored to the `host.def' file, +# but this host.def will never be installed. ORIGDEF=$PREFIX/lib/X11/config/xf86site.def DESTDEF=$WRKDIR/xc/config/cf/xf86site.def @@ -49,36 +49,9 @@ echo "#define XprtServer YES" >> $LOCALDEF echo "#define BuildServersOnly YES" >> $LOCALDEF - # Check Wraphelp.c - if [ $HasXdmAuth = DEFAULT ]; then - HasXdmAuth=$(awk '/^#define.*HasXdmAuth/ {print $3}' $ORIGDEF|tail -1) - fi - - cpwh=NO - if [ $HasXdmAuth = YES ]; then - WH=$WRKDIR/xc/lib/Xdmcp/Wraphelp.c - if [ -f $WH ] ; then - cpwh=SOURCE - elif [ -f $DISTDIR/xc/Wraphelp.c ] ; then - cpwh=$DISTDIR/xc/Wraphelp.c - else - echo "==> You must fetch USA-legal Wraphelp.c manually" - echo "==> and put it to ${DISTDIR}/xc/." - exit 1 - fi - if [ X$cpwh != XNO -a X$cpwh != XSOURCE ]; then - tr -d '\r' < $cpwh > $WH - fi - fi - # Copy ORIGDEF to DESTDEF rm -f $DESTDEF - grep -v '#define.*HasXdmAuth' $ORIGDEF >> $DESTDEF - if [ $cpwh = NO ] ; then - echo "#define HasXdmAuth NO" >> $DESTDEF - else - echo "#define HasXdmAuth YES" >> $DESTDEF - fi + cp -f $ORIGDEF $DESTDEF # copy generated config to host.def cp -f $LOCALDEF $HOSTDEF Index: x11-servers/XFree86-4-Server/Makefile =================================================================== RCS file: /home/ncvs/ports/x11-servers/XFree86-4-Server/Makefile,v retrieving revision 1.113 diff -u -r1.113 Makefile --- x11-servers/XFree86-4-Server/Makefile 14 Jul 2002 20:26:30 -0000 1.113 +++ x11-servers/XFree86-4-Server/Makefile 16 Jul 2002 23:13:54 -0000 @@ -30,7 +30,6 @@ EXTRA_PATCHES+= ${.CURDIR}/files/${pf} .endfor SCRIPTS_ENV= OSVERSION=${OSVERSION} \ - HasXdmAuth=${HasXdmAuth} \ HasSecureRPC=${HasSecureRPC} \ HasPam=${HasPam} \ ExtendedInputDevices=${ExtendedInputDevices} \ @@ -81,11 +80,9 @@ # --- # 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?= YES HasSecureRPC?= DEFAULT HasPam?= DEFAULT ExtendedInputDevices?= DEFAULT @@ -97,7 +94,7 @@ DISTFILES+= freebsd-glide3headers.tar.gz:glide HasGlide3= YES -post-extract: +post-extract:: @(cd ${WRKSRC}/lib/GL/mesa/src/drv/tdfx/ ; \ tar xfpz ${DISTDIR}/${DIST_SUBDIR}/freebsd-glide3headers.tar.gz) .else @@ -194,6 +191,9 @@ HaveMatroxHal= NO PLIST_SUB+= MATROX="@comment " .endif + +post-extract:: + ${CP} ${DISTDIR}/${DIST_SUBDIR}/Wraphelp.c ${WRKSRC}/lib/Xdmcp/ do-configure: cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure Index: x11-servers/XFree86-4-Server/scripts/configure =================================================================== RCS file: /home/ncvs/ports/x11-servers/XFree86-4-Server/scripts/configure,v retrieving revision 1.72 diff -u -r1.72 configure --- x11-servers/XFree86-4-Server/scripts/configure 14 Jul 2002 20:26:32 -0000 1.72 +++ x11-servers/XFree86-4-Server/scripts/configure 16 Jul 2002 07:56:21 -0000 @@ -1,14 +1,14 @@ #!/bin/sh -# This scripts work as following: -# (1) cp current xf86site.def (it may be created by imake-4 ports) +# This script does the following: +# (1) cp current xf86site.def (it is created by the imake-4 port) # to ${WRKDIR}/xc/config/cf. -# this means this ports use imake-4's config defaultly. +# this means this port uses imake-4's config for defaults. # (2) Generate temporal config for compiling. # Some configs, such as `ForceNormalLib', `FreeBSDBuildXprog', are -# used for compiling this ports localy. so these configs will be generated -# this scripts. these configs will be stored to `host.def' file. -# but this host.def will never install. use local only. +# used locally for compiling this port, so these configs will be generated +# by this script. These configs will be stored to the `host.def' file, +# but this host.def will never be installed. ORIGDEF=$PREFIX/lib/X11/config/xf86site.def DESTDEF=$WRKDIR/xc/config/cf/xf86site.def @@ -104,36 +104,9 @@ echo "#define BuildThreadStubLibrary YES" >> $LOCALDEF echo "#define FreeBSDBuildXxserv YES" >> $LOCALDEF - # Check Wraphelp.c - if [ $HasXdmAuth = DEFAULT ]; then - HasXdmAuth=$(awk '/^#define.*HasXdmAuth/ {print $3}' $ORIGDEF|tail -1) - fi - - cpwh=NO - if [ $HasXdmAuth = YES ]; then - WH=$WRKDIR/xc/lib/Xdmcp/Wraphelp.c - if [ -f $WH ] ; then - cpwh=SOURCE - elif [ -f $DISTDIR/xc/Wraphelp.c ] ; then - cpwh=$DISTDIR/xc/Wraphelp.c - else - echo "==> You must fetch USA-legal Wraphelp.c manually" - echo "==> and put it to ${DISTDIR}/xc/." - exit 1 - fi - if [ X$cpwh != XNO -a X$cpwh != XSOURCE ]; then - tr -d '\r' < $cpwh > $WH - fi - fi - # Copy ORIGDEF to DESTDEF rm -f $DESTDEF - grep -v '#define.*HasXdmAuth' $ORIGDEF >> $DESTDEF - if [ $cpwh = NO ] ; then - echo "#define HasXdmAuth NO" >> $DESTDEF - else - echo "#define HasXdmAuth YES" >> $DESTDEF - fi + cp -f $ORIGDEF $DESTDEF # copy generated config to host.def cp -f $LOCALDEF $HOSTDEF Index: x11-servers/XFree86-4-VirtualFramebufferServer/Makefile =================================================================== RCS file: /home/ncvs/ports/x11-servers/XFree86-4-VirtualFramebufferServer/Makefile,v retrieving revision 1.14 diff -u -r1.14 Makefile --- x11-servers/XFree86-4-VirtualFramebufferServer/Makefile 14 Jul 2002 20:26:33 -0000 1.14 +++ x11-servers/XFree86-4-VirtualFramebufferServer/Makefile 16 Jul 2002 08:21:57 -0000 @@ -30,13 +30,13 @@ DIST_SUBDIR= xc WRKSRC= ${WRKDIR}/xc PATCHDIR= ${.CURDIR}/../../x11/XFree86-4-libraries/files -SCRIPTS_ENV= HasXdmAuth=${HasXdmAuth} ALL_TARGET= FreeBSDPortsBuild INSTALL_TARGET= installXvfb installXserver.man MAKE_ENV= MAN_INSTALL_TARGET=installXvfb.man MAN1= Xserver.1 Xvfb.1 -HasXdmAuth?= YES +post-extract: + ${CP} ${DISTDIR}/${DIST_SUBDIR}/Wraphelp.c ${WRKSRC}/lib/Xdmcp/ do-configure: cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure Index: x11-servers/XFree86-4-VirtualFramebufferServer/scripts/configure =================================================================== RCS file: /home/ncvs/ports/x11-servers/XFree86-4-VirtualFramebufferServer/scripts/configure,v retrieving revision 1.3 diff -u -r1.3 configure --- x11-servers/XFree86-4-VirtualFramebufferServer/scripts/configure 6 Jan 2002 20:55:22 -0000 1.3 +++ x11-servers/XFree86-4-VirtualFramebufferServer/scripts/configure 16 Jul 2002 07:56:25 -0000 @@ -1,14 +1,14 @@ #!/bin/sh -# This scripts work as following: -# (1) cp current xf86site.def (it may be created by imake-4 ports) +# This script does the following: +# (1) cp current xf86site.def (it is created by the imake-4 port) # to ${WRKDIR}/xc/config/cf. -# this means this ports use imake-4's config defaultly. +# this means this port uses imake-4's config for defaults. # (2) Generate temporal config for compiling. # Some configs, such as `ForceNormalLib', `FreeBSDBuildXprog', are -# used for compiling this ports localy. so these configs will be generated -# this scripts. these configs will be stored to `host.def' file. -# but this host.def will never install. use local only. +# used locally for compiling this port, so these configs will be generated +# by this script. These configs will be stored to the `host.def' file, +# but this host.def will never be installed. ORIGDEF=$PREFIX/lib/X11/config/xf86site.def DESTDEF=$WRKDIR/xc/config/cf/xf86site.def @@ -49,36 +49,9 @@ echo "#define XVirtualFramebufferServer YES" >> $LOCALDEF echo "#define BuildServersOnly YES" >> $LOCALDEF - # Check Wraphelp.c - if [ $HasXdmAuth = DEFAULT ]; then - HasXdmAuth=$(awk '/^#define.*HasXdmAuth/ {print $3}' $ORIGDEF|tail -1) - fi - - cpwh=NO - if [ $HasXdmAuth = YES ]; then - WH=$WRKDIR/xc/lib/Xdmcp/Wraphelp.c - if [ -f $WH ] ; then - cpwh=SOURCE - elif [ -f $DISTDIR/xc/Wraphelp.c ] ; then - cpwh=$DISTDIR/xc/Wraphelp.c - else - echo "==> You must fetch USA-legal Wraphelp.c manually" - echo "==> and put it to ${DISTDIR}/xc/." - exit 1 - fi - if [ X$cpwh != XNO -a X$cpwh != XSOURCE ]; then - tr -d '\r' < $cpwh > $WH - fi - fi - # Copy ORIGDEF to DESTDEF rm -f $DESTDEF - grep -v '#define.*HasXdmAuth' $ORIGDEF >> $DESTDEF - if [ $cpwh = NO ] ; then - echo "#define HasXdmAuth NO" >> $DESTDEF - else - echo "#define HasXdmAuth YES" >> $DESTDEF - fi + cp -f $ORIGDEF $DESTDEF # copy generated config to host.def cp -f $LOCALDEF $HOSTDEF