1998-08-11 15:04:09 +00:00
|
|
|
# New ports collection makefile for: Common Files for Xservers with Xtt
|
1999-01-02 19:11:13 +00:00
|
|
|
# Version required: 1.1
|
1998-08-11 15:04:09 +00:00
|
|
|
# Date created: 15 April 1998
|
|
|
|
# Whom: Taguchi Takeshi <taguchi@tohoku.iij.ad.jp>
|
|
|
|
#
|
1999-01-04 20:42:33 +00:00
|
|
|
# $Id: Makefile,v 1.13 1999/01/03 18:49:57 sada Exp $
|
1998-08-11 15:04:09 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= xc
|
1999-01-02 19:11:13 +00:00
|
|
|
PKGNAME?= xtt-common-1.1
|
1998-08-11 15:04:09 +00:00
|
|
|
CATEGORIES= x11
|
1999-01-02 19:11:13 +00:00
|
|
|
MASTER_SITES= ftp://ftp.xfree86.org/pub/XFree86/3.3.3/source/ \
|
|
|
|
ftp://xfree86.cdrom.com/pub/XFree86/3.3.3/source/ \
|
|
|
|
http://hawk.ise.chuo-u.ac.jp/student/person/tshiozak/x-tt/dists/1.x/ \
|
1998-10-10 04:22:12 +00:00
|
|
|
ftp://www.tohoku.iij.ad.jp/xtt/
|
1999-01-02 19:11:13 +00:00
|
|
|
DISTFILES= X333src-1.tgz xtt-1.1.tar.gz \
|
|
|
|
xttdoc11-to-pl01.diff.gz
|
1998-09-01 13:41:11 +00:00
|
|
|
|
1999-01-02 19:11:13 +00:00
|
|
|
PATCH_SITES= http://hawk.ise.chuo-u.ac.jp/student/person/tshiozak/x-tt/dists/1.x/ \
|
1998-10-10 04:22:12 +00:00
|
|
|
ftp://www.tohoku.iij.ad.jp/xtt/
|
1999-01-02 19:11:13 +00:00
|
|
|
PATCHFILES= xtt11-to-pl00.diff.gz xtt11pl00-to-pl01.diff.gz \
|
1999-01-03 18:49:58 +00:00
|
|
|
xtt11pl01-to-pl02.diff.gz xtt11pl02-to-pl03.diff.gz
|
1998-09-01 13:41:11 +00:00
|
|
|
|
|
|
|
MAINTAINER= taguchi@tohoku.iij.ad.jp
|
|
|
|
|
1998-12-12 21:03:36 +00:00
|
|
|
LIB_DEPENDS= ttf.3:${PORTSDIR}/print/freetype
|
1999-01-04 20:42:33 +00:00
|
|
|
RUN_DEPENDS+= mkttfdir:${PORTSDIR}/print/perlftlib
|
1998-09-01 13:41:11 +00:00
|
|
|
|
1999-01-03 18:49:58 +00:00
|
|
|
.if !defined(USE_SHARED_WRKSRC) && defined(COMPILE_ALL_SERVERS_AT_ONCE)
|
|
|
|
USE_SHARED_WRKSRC= YES
|
|
|
|
.endif
|
|
|
|
.if !defined(XDM_DES) && defined(USA_RESIDENT) && ${USA_RESIDENT} == NO
|
1998-08-11 15:04:09 +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/
|
|
|
|
DISTFILES+= Wraphelp.c
|
|
|
|
IGNOREFILES= Wraphelp.c
|
|
|
|
.endif
|
1999-01-02 19:11:13 +00:00
|
|
|
USE_X_PREFIX= YES
|
|
|
|
EXTRACT_ONLY= X333src-1.tgz xtt-1.1.tar.gz
|
|
|
|
BINOWN= root
|
|
|
|
BINGRP= wheel
|
1999-01-03 18:49:58 +00:00
|
|
|
MASTERDIR?= ${.CURDIR}/../XttXF86srv-common
|
|
|
|
FILESDIR= ${MASTERDIR}/files
|
|
|
|
PATCHDIR= ${MASTERDIR}/patches
|
|
|
|
.if defined(USE_SHARED_WRKSRC)
|
|
|
|
WRKDIR= ${MASTERDIR}/work
|
1999-01-02 19:11:13 +00:00
|
|
|
.endif
|
1998-08-11 15:04:09 +00:00
|
|
|
WRKSRC= ${WRKDIR}/xc
|
1999-01-02 19:11:13 +00:00
|
|
|
DIST_SUBDIR= xc
|
|
|
|
XTTDIR= ${WRKDIR}/xtt-1.1
|
1998-09-01 13:41:11 +00:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/Xtt
|
1999-01-02 19:11:13 +00:00
|
|
|
SERVER?= common
|
|
|
|
PATCH_DIST_ARGS= -d ${WRKDIR} --forward --quiet -E ${PATCH_STRIP}
|
|
|
|
#PATCH_DIST_STRIP= -p1
|
|
|
|
|
1999-01-03 18:49:58 +00:00
|
|
|
# ******************
|
|
|
|
# USE_SHARED_WRKSRC:
|
|
|
|
# All Xtt ports require many disk space. Imagen, X source code will extract
|
|
|
|
# under server and common ports dir. This variable save your disk space.
|
|
|
|
# if this variable is defined, X source will only extract under common
|
|
|
|
# ports. server ports will use this common's WRKSRC.
|
|
|
|
# COMPILE_ALL_SERVERS_AT_ONCE:
|
|
|
|
# If this variable is defined, All server ports will build at once.
|
|
|
|
# This variable will save your time, if you want to make all xtt packages.
|
|
|
|
# ******************
|
|
|
|
.if defined(USE_SHARED_WRKSRC)
|
|
|
|
CONFIGURE_COOKIE= ${WRKDIR}/.configure_done.${SERVER}
|
|
|
|
BUILD_COOKIE= ${WRKDIR}/.build_done.${SERVER}
|
|
|
|
INSTALL_COOKIE= ${WRKDIR}/.install_done.${SERVER}
|
|
|
|
PACKAGE_COOKIE= ${WRKDIR}/.package_done.${SERVER}
|
|
|
|
TMPPLIST= ${WRKDIR}/.PLIST.${SERVER}.mktmp
|
|
|
|
ALL_TARGET= World
|
|
|
|
.if defined(COMPILE_ALL_SERVERS_AT_ONCE) && ${SERVER} != xfs
|
1999-01-02 19:11:13 +00:00
|
|
|
ALL_SERVER= XF86_3DLabs XF86_8514 XF86_AGX XF86_I128 XF86_Mach32 \
|
|
|
|
XF86_Mach64 XF86_Mach8 XF86_Mono XF86_P9000 XF86_S3 XF86_S3V \
|
|
|
|
XF86_SVGA XF86_VGA16 XF86_W32 \
|
|
|
|
XF98_EGC XF98_GA968 XF98_GANBWAP XF98_MGA XF98_NEC480 \
|
|
|
|
XF98_NECS3 XF98_NKVNEC XF98_SVGA XF98_TGUI XF98_PWLB XF98_PWSKB \
|
|
|
|
XF98_WABEP XF98_WABS XF98_WSNA \
|
|
|
|
common
|
1998-08-11 15:04:09 +00:00
|
|
|
HOSTDEFSRV= ${FILESDIR}/host.def.ALL
|
1999-01-02 19:11:13 +00:00
|
|
|
.else
|
1999-01-03 18:49:58 +00:00
|
|
|
ALL_SERVER= ${SERVER} common
|
1999-01-02 19:11:13 +00:00
|
|
|
HOSTDEFSRV= ${FILESDIR}/host.def.${SERVER}
|
1998-08-11 15:04:09 +00:00
|
|
|
.endif
|
1999-01-03 18:49:58 +00:00
|
|
|
.if ${SERVER} == xfs
|
1999-01-02 19:11:13 +00:00
|
|
|
HOSTDEFDST= ${WRKSRC}/config/cf/host.def.xfs
|
1999-01-03 18:49:58 +00:00
|
|
|
.else
|
|
|
|
HOSTDEFDST= ${WRKSRC}/config/cf/host.def
|
1998-08-11 15:04:09 +00:00
|
|
|
.endif
|
|
|
|
.else
|
1999-01-03 18:49:58 +00:00
|
|
|
ALL_SERVER= ${SERVER}
|
1999-01-02 19:11:13 +00:00
|
|
|
.if (${SERVER} == xfs)
|
|
|
|
ALL_TARGET= xfs
|
|
|
|
HOSTDEFSRV=
|
|
|
|
HOSTDEFDST= ${WRKSRC}/config/cf/host.def.xfs
|
|
|
|
.elif (${SERVER} == common)
|
|
|
|
ALL_TARGET= libfont
|
|
|
|
HOSTDEFSRV= ${FILESDIR}/host.def.${SERVER}
|
|
|
|
HOSTDEFDST= ${WRKSRC}/config/cf/host.def
|
|
|
|
.else
|
|
|
|
ALL_TARGET= World
|
|
|
|
HOSTDEFSRV= ${FILESDIR}/host.def.${SERVER}
|
|
|
|
HOSTDEFDST= ${WRKSRC}/config/cf/host.def
|
1998-08-11 15:04:09 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
1999-01-02 19:11:13 +00:00
|
|
|
HOSTDEFLOCAL= ${WRKDIR}/host.def.local
|
1998-08-11 15:04:09 +00:00
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1999-01-03 18:49:58 +00:00
|
|
|
.if !defined(USE_SHARED_WRKSRC) && exists(${MASTERDIR}/work/.configure_done.${SERVER})
|
|
|
|
pre-extract:
|
|
|
|
@( \
|
|
|
|
echo "ERROR:" ; \
|
|
|
|
echo "Xtt ${SERVER} ports have already extracted with" ; \
|
|
|
|
echo "\"USE_SHARED_WRKSRC\" option." ; \
|
|
|
|
false )
|
|
|
|
.endif
|
|
|
|
|
1998-08-11 15:04:09 +00:00
|
|
|
pre-patch:
|
1999-01-02 19:11:13 +00:00
|
|
|
@( cd ${WRKSRC}; ${PATCH} -p1 -t -s < ${XTTDIR}/xtt-1.1.diff ; \
|
|
|
|
cd ${XTTDIR}; \
|
|
|
|
${GZCAT} ${DISTDIR}/${DIST_SUBDIR}/xttdoc11-to-pl01.diff.gz | \
|
|
|
|
${PATCH} -t -s )
|
1998-08-11 15:04:09 +00:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@( \
|
1998-09-01 13:41:11 +00:00
|
|
|
${CP} ${FILESDIR}/Imakefile ${WRKDIR} ; \
|
1999-01-02 19:11:13 +00:00
|
|
|
(cd ${WRKDIR} ; ${XMKMF} ; \
|
|
|
|
${SETENV} ${MAKE_ENV} DISTDIR=${DISTDIR} WRKDIR=${WRKDIR} \
|
1999-01-03 18:49:58 +00:00
|
|
|
FILESDIR=${FILESDIR} ${MAKE}) ; \
|
1998-09-01 13:41:11 +00:00
|
|
|
${CAT} ${HOSTDEFLOCAL} ${HOSTDEFSRV} > ${HOSTDEFDST} )
|
1998-08-11 15:04:09 +00:00
|
|
|
|
1999-01-02 19:11:13 +00:00
|
|
|
.if ${SERVER} == common
|
1998-08-11 15:04:09 +00:00
|
|
|
do-install:
|
|
|
|
@( \
|
1998-09-01 13:41:11 +00:00
|
|
|
cd ${WRKSRC}/lib/font; \
|
1998-10-10 04:22:12 +00:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} install; \
|
|
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${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}; \
|
1999-01-02 19:11:13 +00:00
|
|
|
${INSTALL_DATA} ${XTTDIR}/[0A-Z]*.eng ${DOCDIR}; \
|
|
|
|
${INSTALL_DATA} ${XTTDIR}/[0A-Z]*.jis ${DOCDIR} )
|
1998-11-14 09:43:39 +00:00
|
|
|
.if ${PORTOBJFORMAT} == "aout"
|
1999-01-02 19:11:13 +00:00
|
|
|
${LN} -sf libfont.so.1.1 ${PREFIX}/lib/libfont.so
|
1998-11-14 09:43:39 +00:00
|
|
|
.endif
|
1999-01-02 19:11:13 +00:00
|
|
|
.elif ${SERVER} == xfs
|
1998-08-11 15:04:09 +00:00
|
|
|
do-install:
|
1999-01-02 19:11:13 +00:00
|
|
|
@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${INSTALL_PROGRAM} \
|
|
|
|
${WRKSRC}/programs/xfs/xfs ${PREFIX}/bin/xfs.xtt
|
1998-08-11 15:04:09 +00:00
|
|
|
.else
|
|
|
|
do-install:
|
|
|
|
@( \
|
1999-01-02 19:11:13 +00:00
|
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${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
|
|
|
|
|
1999-01-03 18:49:58 +00:00
|
|
|
.if defined(USE_SHARED_WRKSRC)
|
1999-01-02 19:11:13 +00:00
|
|
|
post-configure:
|
|
|
|
@( \
|
1999-01-03 18:49:58 +00:00
|
|
|
cd ${WRKDIR} ; for i in ${ALL_SERVER} ; do \
|
1999-01-02 19:11:13 +00:00
|
|
|
${TOUCH} ${TOUCH_FLAGS} `${BASENAME} ${CONFIGURE_COOKIE} .${SERVER}`.$${i} ; \
|
|
|
|
done )
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@( \
|
1999-01-03 18:49:58 +00:00
|
|
|
cd ${WRKDIR} ; for i in ${ALL_SERVER} ; do \
|
1999-01-02 19:11:13 +00:00
|
|
|
${TOUCH} ${TOUCH_FLAGS} `${BASENAME} ${BUILD_COOKIE} .${SERVER}`.$${i} ; \
|
|
|
|
done )
|
|
|
|
|
1998-08-11 15:04:09 +00:00
|
|
|
post-install:
|
1999-01-02 19:11:13 +00:00
|
|
|
@( \
|
1999-01-03 18:49:58 +00:00
|
|
|
cd ${WRKDIR} ; ${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE} )
|
1998-08-11 15:04:09 +00:00
|
|
|
|
|
|
|
post-package:
|
1999-01-02 19:11:13 +00:00
|
|
|
@( \
|
1999-01-03 18:49:58 +00:00
|
|
|
cd ${WRKDIR} ; ${TOUCH} ${TOUCH_FLAGS} ${PACKAGE_COOKIE} )
|
1999-01-02 19:11:13 +00:00
|
|
|
.endif
|
1998-08-11 15:04:09 +00:00
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|