1998-08-11 15:04:09 +00:00
|
|
|
# New ports collection makefile for: Common Files for Xservers with Xtt
|
1998-09-01 13:41:11 +00:00
|
|
|
# Version required: 1.0
|
1998-08-11 15:04:09 +00:00
|
|
|
# Date created: 15 April 1998
|
|
|
|
# Whom: Taguchi Takeshi <taguchi@tohoku.iij.ad.jp>
|
|
|
|
#
|
1998-09-21 08:41:46 +00:00
|
|
|
# $Id: Makefile,v 1.2 1998/09/01 13:41:10 asami Exp $
|
1998-08-11 15:04:09 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= xc
|
1998-09-01 13:41:11 +00:00
|
|
|
PKGNAME?= xtt-common-1.0
|
1998-08-11 15:04:09 +00:00
|
|
|
CATEGORIES= x11
|
|
|
|
MASTER_SITES= ftp://ftp.xfree86.org/pub/XFree86/3.3.2/source/ \
|
|
|
|
ftp://xfree86.cdrom.com/pub/XFree86/3.3.2/source/ \
|
1998-09-01 13:41:11 +00:00
|
|
|
http://hawk.ise.chuo-u.ac.jp/student/person/tshiozak/study/freebsd-at-random/x-tt/dists/
|
|
|
|
DISTFILES= X332src-1.tgz xtt-1.0.tar.gz
|
|
|
|
|
|
|
|
PATCH_SITES= ftp://ftp.xfree86.org/pub/XFree86/3.3.2/fixes/ \
|
|
|
|
ftp://xfree86.cdrom.com/pub/XFree86/3.3.2/fixes/ \
|
|
|
|
PATCHFILES= 3.3.2-patch1 3.3.2-patch2 3.3.2-patch3
|
|
|
|
|
|
|
|
MAINTAINER= taguchi@tohoku.iij.ad.jp
|
|
|
|
|
1998-09-21 08:41:46 +00:00
|
|
|
LIB_DEPENDS= ttf.2:${PORTSDIR}/print/freetype
|
1998-09-01 13:41:11 +00:00
|
|
|
.if defined(SERVER)
|
|
|
|
RUN_DEPENDS= mkfontdir.pl:${PORTSDIR}/x11/XttXF86srv-common
|
|
|
|
.endif
|
|
|
|
|
1998-08-11 15:04:09 +00:00
|
|
|
.if !defined(XDM_DES) && defined(USA_RESIDENT)
|
|
|
|
.if ${USA_RESIDENT} == NO
|
|
|
|
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/
|
|
|
|
DISTFILES+= Wraphelp.c
|
|
|
|
IGNOREFILES= Wraphelp.c
|
|
|
|
.endif
|
|
|
|
.endif
|
1998-09-01 13:41:11 +00:00
|
|
|
EXTRACT_ONLY= X332src-1.tgz xtt-1.0.tar.gz
|
|
|
|
# can't use USE_X_PREFIX here
|
|
|
|
PREFIX= ${X11BASE}
|
|
|
|
MTREE_FILE= /etc/mtree/BSD.x11.dist
|
1998-08-11 15:04:09 +00:00
|
|
|
WRKDIR= ${.CURDIR}/../XttXF86srv-common/work
|
|
|
|
WRKSRC= ${WRKDIR}/xc
|
|
|
|
PATCHDIR= ${.CURDIR}/../XttXF86srv-common/patches
|
|
|
|
FILESDIR= ${.CURDIR}/../XttXF86srv-common/files
|
1998-09-01 13:41:11 +00:00
|
|
|
XTTDIR= ${WRKDIR}/xtt-1.0
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/Xtt
|
|
|
|
DIST_SUBDIR= xc
|
|
|
|
PATCH_DIST_STRIP= -p1
|
1998-08-11 15:04:09 +00:00
|
|
|
ALL_SERVER= XF86_8514 XF86_AGX XF86_I128 XF86_Mach32 XF86_Mach64 \
|
1998-09-01 13:41:11 +00:00
|
|
|
XF86_Mach8 XF86_Mono XF86_P9000 XF86_S3 XF86_S3V \
|
1998-08-11 15:04:09 +00:00
|
|
|
XF86_SVGA XF86_VGA16 XF86_W32
|
|
|
|
HOSTDEFLOCAL= ${WRKDIR}/host.def.local
|
|
|
|
.if defined(SERVER) && (${SERVER} == xfs)
|
|
|
|
ALL_TARGET= xfs
|
1998-09-01 13:41:11 +00:00
|
|
|
HOSTDEFSRV=
|
1998-08-11 15:04:09 +00:00
|
|
|
HOSTDEFDST= ${WRKSRC}/config/cf/host.def.xfs
|
|
|
|
.else
|
|
|
|
ALL_TARGET= World
|
|
|
|
.if (defined(THIS_SERVER_ONLY) && ${THIS_SERVER_ONLY} == YES)
|
|
|
|
HOSTDEFSRV= ${FILESDIR}/host.def.${SERVER}
|
|
|
|
.else
|
|
|
|
HOSTDEFSRV= ${FILESDIR}/host.def.ALL
|
|
|
|
.endif
|
|
|
|
HOSTDEFDST= ${WRKSRC}/config/cf/host.def
|
|
|
|
.endif
|
|
|
|
BINOWN= root
|
|
|
|
BINGRP= wheel
|
|
|
|
|
|
|
|
.if defined(SERVER)
|
|
|
|
CONFIGURE_COOKIE= ${WRKDIR}/.configure_done.${SERVER}
|
|
|
|
BUILD_COOKIE= ${WRKDIR}/.build_done.${SERVER}
|
|
|
|
INSTALL_COOKIE= ${WRKDIR}/.install_done.${SERVER}
|
|
|
|
PACKAGE_COOKIE= ${WRKDIR}/.package_done.${SERVER}
|
1998-09-01 13:41:11 +00:00
|
|
|
TMPPLIST= ${WRKDIR}/.PLIST.${SERVER}.mktmp
|
1998-08-11 15:04:09 +00:00
|
|
|
.else
|
|
|
|
PACKAGE_COOKIE= ${WRKDIR}/.package_done.common
|
1998-09-01 13:41:11 +00:00
|
|
|
TMPPLIST= ${WRKDIR}/.PLIST.common.mktmp
|
1998-08-11 15:04:09 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(SERVER) && !exists(${WRKDIR}/.build_done)
|
|
|
|
BROKEN= This port is dummy.
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(SERVER)
|
|
|
|
.if ${SERVER} != xfs
|
|
|
|
pre-fetch:
|
|
|
|
@( \
|
1998-09-01 13:41:11 +00:00
|
|
|
${ECHO_MSG} "*******" ; \
|
|
|
|
${ECHO_MSG} "NOTICE:" ; \
|
|
|
|
${ECHO_MSG} "*******" ; \
|
|
|
|
${ECHO_MSG} " If you want to build/install this ${SERVER} server only," ; \
|
|
|
|
${ECHO_MSG} "you should execute:" ; \
|
|
|
|
${ECHO_MSG} " # make THIS_SERVER_ONLY=YES" ; \
|
|
|
|
${ECHO_MSG} "If the THIS_SERVER_ONLY flag not be set, this port will" ; \
|
|
|
|
${ECHO_MSG} "build ALL Xtt-X servers, and install only ${SERVER}." ; \
|
|
|
|
${ECHO_MSG} "This means you will need more disk space and CPU times." ; \
|
|
|
|
${ECHO_MSG} "" )
|
1998-08-11 15:04:09 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-patch:
|
1998-09-01 13:41:11 +00:00
|
|
|
@( cd ${WRKDIR}; \
|
|
|
|
${PATCH} ${PATCH_DIST_ARGS} < ${XTTDIR}/xtt-1.0.diff )
|
1998-08-11 15:04:09 +00:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@( \
|
1998-09-01 13:41:11 +00:00
|
|
|
${CP} ${FILESDIR}/Imakefile ${WRKDIR} ; \
|
|
|
|
(cd ${WRKDIR} ; ${XMKMF} ; ${SETENV} DISTDIR=${DISTDIR} WRKDIR=${WRKDIR} FILESDIR=${FILESDIR} LOCALBASE=${LOCALBASE} ${MAKE}) ; \
|
|
|
|
${CAT} ${HOSTDEFLOCAL} ${HOSTDEFSRV} > ${HOSTDEFDST} )
|
1998-08-11 15:04:09 +00:00
|
|
|
|
|
|
|
.if defined(SERVER)
|
|
|
|
.if (defined(THIS_SERVER_ONLY) && ${THIS_SERVER_ONLY} == YES) || ${SERVER} == xfs
|
|
|
|
post-configure:
|
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${CONFIGURE_COOKIE}
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${BUILD_COOKIE}
|
|
|
|
.else
|
|
|
|
post-configure:
|
|
|
|
@ ( \
|
1998-09-01 13:41:11 +00:00
|
|
|
cd ${WRKDIR} ; \
|
1998-08-11 15:04:09 +00:00
|
|
|
for i in ${ALL_SERVER} ; do \
|
1998-09-01 13:41:11 +00:00
|
|
|
${TOUCH} ${TOUCH_FLAGS} `${BASENAME} ${CONFIGURE_COOKIE} .${SERVER}`.$${i} ; \
|
1998-08-11 15:04:09 +00:00
|
|
|
done )
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@ ( \
|
1998-09-01 13:41:11 +00:00
|
|
|
cd ${WRKDIR} ; \
|
1998-08-11 15:04:09 +00:00
|
|
|
for i in ${ALL_SERVER} ; do \
|
1998-09-01 13:41:11 +00:00
|
|
|
${TOUCH} ${TOUCH_FLAGS} `${BASENAME} ${BUILD_COOKIE} .${SERVER}`.$${i} ; \
|
1998-08-11 15:04:09 +00:00
|
|
|
done )
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(SERVER)
|
|
|
|
do-install:
|
|
|
|
@( \
|
1998-09-01 13:41:11 +00:00
|
|
|
cd ${WRKSRC}/lib/font; \
|
|
|
|
${MAKE} install; \
|
1998-08-11 15:04:09 +00:00
|
|
|
${LDCONFIG} -m ${PREFIX}/lib; \
|
1998-09-01 13:41:11 +00:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/mkfontdir.pl ${PREFIX}/bin; \
|
1998-08-11 15:04:09 +00:00
|
|
|
${MKDIR} ${DOCDIR}; \
|
1998-09-01 13:41:11 +00:00
|
|
|
${INSTALL_DATA} ${XTTDIR}/xtt10-* ${DOCDIR})
|
1998-08-11 15:04:09 +00:00
|
|
|
.elif defined(SERVER) && ${SERVER} == xfs
|
|
|
|
do-install:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/programs/xfs/xfs ${PREFIX}/bin/xfs.xtt
|
|
|
|
.else
|
|
|
|
do-install:
|
|
|
|
@( \
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/programs/Xserver/${SERVER} ${PREFIX}/bin/${SERVER}.xtt; \
|
1998-09-01 13:41:11 +00:00
|
|
|
${LN} -fs ${PREFIX}/bin/${SERVER}.xtt ${PREFIX}/bin/X )
|
1998-08-11 15:04:09 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
|
|
|
|
|
|
|
|
post-package:
|
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${PACKAGE_COOKIE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|