diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1998-09-01 13:41:11 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1998-09-01 13:41:11 +0000 |
commit | 12541679f4e8a17022b39199f83d6f2cfa0ce617 (patch) | |
tree | cf98f3ebd7f2e3cb783945a2a4e4c75d2bb11f98 /x11-servers/XttXF86srv-common/Makefile | |
parent | Make sure we don't ask question during package build. While I'm here, (diff) |
PR: 7794
Submitted by: maintainer
1. Xtt X True Type Server has been updated to 1.0.
Now it supports KOI-8 and many ISO-8859-* TrueType fonts.
2. Old version in ports-current has following probrems.
* All packages has same contents. this means all packages are broken.
* incorrect PKGNAME
* incorrect place for documents. it should be share/doc/. not lib/X11/doc/...
* incorrect spelling
Notes
Notes:
svn path=/head/; revision=12982
Diffstat (limited to 'x11-servers/XttXF86srv-common/Makefile')
-rw-r--r-- | x11-servers/XttXF86srv-common/Makefile | 120 |
1 files changed, 53 insertions, 67 deletions
diff --git a/x11-servers/XttXF86srv-common/Makefile b/x11-servers/XttXF86srv-common/Makefile index 39c6f22ff86b..43a5927a9c30 100644 --- a/x11-servers/XttXF86srv-common/Makefile +++ b/x11-servers/XttXF86srv-common/Makefile @@ -1,55 +1,58 @@ # New ports collection makefile for: Common Files for Xservers with Xtt -# Version required: 0.6 +# Version required: 1.0 # Date created: 15 April 1998 # Whom: Taguchi Takeshi <taguchi@tohoku.iij.ad.jp> # -# $Id:$ +# $Id: Makefile,v 1.1.1.1 1998/08/11 15:04:09 kuriyama Exp $ # DISTNAME= xc -PKGNAME?= xtt-xf86srv-common-0.6 +PKGNAME?= xtt-common-1.0 CATEGORIES= x11 MASTER_SITES= ftp://ftp.xfree86.org/pub/XFree86/3.3.2/source/ \ ftp://xfree86.cdrom.com/pub/XFree86/3.3.2/source/ \ - http://cclub.cc.tut.ac.jp/~go/unix/ -DISTFILES= X332src-1.tgz xtt06.tgz + 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 + +LIB_DEPENDS= ttf\\.2\\.:${PORTSDIR}/print/freetype +.if defined(SERVER) +RUN_DEPENDS= mkfontdir.pl:${PORTSDIR}/x11/XttXF86srv-common +.endif + .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 -EXTRACT_ONLY= X332src-1.tgz xtt06.tgz IGNOREFILES= Wraphelp.c .endif .endif - -MAINTAINER= taguchi@tohoku.iij.ad.jp - -LIB_DEPENDS= ttf\\.2\\.:${PORTSDIR}/print/freetype -.if defined(SERVER) -RUN_DEPENDS= ${PREFIX}/lib/libfont.so.1.0:${.CURDIR}/../XttXF86srv-common -.endif - -USE_X11= yes +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 WRKDIR= ${.CURDIR}/../XttXF86srv-common/work WRKSRC= ${WRKDIR}/xc PATCHDIR= ${.CURDIR}/../XttXF86srv-common/patches FILESDIR= ${.CURDIR}/../XttXF86srv-common/files -DIST_SUBDIR= xc -.if defined(PATCH_DEBUG) -PATCH_XTT_ARGS= -d ${WRKDIR} -E ${PATCH_STRIP} -.else -PATCH_XTT_ARGS= -d ${WRKDIR} --forward --quiet -E ${PATCH_STRIP} -.endif +XTTDIR= ${WRKDIR}/xtt-1.0 +DOCDIR= ${PREFIX}/share/doc/Xtt +DIST_SUBDIR= xc +PATCH_DIST_STRIP= -p1 ALL_SERVER= XF86_8514 XF86_AGX XF86_I128 XF86_Mach32 XF86_Mach64 \ - XF86_Mach8 XF86_Mono XF86_P9000 XF86_S3 \ + XF86_Mach8 XF86_Mono XF86_P9000 XF86_S3 XF86_S3V \ XF86_SVGA XF86_VGA16 XF86_W32 -HOSTDEFSRC= ${FILESDIR}/host.def.template HOSTDEFLOCAL= ${WRKDIR}/host.def.local .if defined(SERVER) && (${SERVER} == xfs) ALL_TARGET= xfs -HOSTDEFSRV= ${FILESDIR}/host.def.xfs +HOSTDEFSRV= HOSTDEFDST= ${WRKSRC}/config/cf/host.def.xfs .else ALL_TARGET= World @@ -60,23 +63,18 @@ HOSTDEFSRV= ${FILESDIR}/host.def.ALL .endif HOSTDEFDST= ${WRKSRC}/config/cf/host.def .endif -DOCDIR= ${PREFIX}/lib/X11/doc/Xtt BINOWN= root BINGRP= wheel -XARGS?= /usr/bin/xargs -DIRNAME?= /usr/bin/dirname -TAIL?= /usr/bin/tail .if defined(SERVER) -CONFIGURECOOKIE= ${WRKDIR}/.configure_done -BUILDCOOKIE= ${WRKDIR}/.build_done -INSTALLCOOKIE= ${WRKDIR}/.install_done 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 .else PACKAGE_COOKIE= ${WRKDIR}/.package_done.common +TMPPLIST= ${WRKDIR}/.PLIST.common.mktmp .endif .if !defined(SERVER) && !exists(${WRKDIR}/.build_done) @@ -87,40 +85,28 @@ BROKEN= This port is dummy. .if ${SERVER} != xfs pre-fetch: @( \ - ${ECHO} "*******" ; \ - ${ECHO} "NOTICE:" ; \ - ${ECHO} "*******" ; \ - ${ECHO} " If you want to build/install this ${SERVER} server only," ; \ - ${ECHO} "you should execute:" ; \ - ${ECHO} " # make THIS_SERVER_ONLY=YES" ; \ - ${ECHO} "If the THIS_SERVER_ONLY flag not be set, this port will" ; \ - ${ECHO} "build ALL Xtt-X servers, and install only ${SERVER}." ; \ - ${ECHO} "This means you will need more disk space and CPU times." ; \ - ${ECHO} "" ; \ - ) + ${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} "" ) .endif .endif pre-patch: - @( \ - for i in ${WRKDIR}/xtt06/xtt06-serveronly.diff \ - ${WRKDIR}/xtt06/xtt06-fs.diff; do \ - ${PATCH} ${PATCH_XTT_ARGS} < $$i; \ - done ; \ - ${CP} ${FILESDIR}/Imakefile ${WRKDIR} ; \ - (cd ${WRKDIR} ; ${XMKMF} ; ${SETENV} DISTDIR=${DISTDIR} WRKDIR=${WRKDIR} FILESDIR=${FILESDIR} ${MAKE}) ; \ - ) + @( cd ${WRKDIR}; \ + ${PATCH} ${PATCH_DIST_ARGS} < ${XTTDIR}/xtt-1.0.diff ) pre-configure: @( \ - FREETYPELIBDIR=`${LDCONFIG} -r | ${GREP} -e "-lttf" | ${AWK} '{print $$3}' | ${TAIL} -1 | ${XARGS} ${DIRNAME}` ; \ - FREETYPEINCDIR=`${DIRNAME} $$FREETYPELIBDIR`/include ; \ - ${SED} "s+@FREETYPELIBDIR@+$$FREETYPELIBDIR+g" ${HOSTDEFSRC} | ${SED} "s+@FREETYPEINCDIR@+$$FREETYPEINCDIR+g" > ${HOSTDEFDST} ; \ - ${CAT} ${HOSTDEFSRV} >> ${HOSTDEFDST} ; \ - if [ -f ${HOSTDEFLOCAL} ]; then \ - ${CAT} ${HOSTDEFLOCAL} >> ${HOSTDEFDST} ; \ - fi; \ - ) + ${CP} ${FILESDIR}/Imakefile ${WRKDIR} ; \ + (cd ${WRKDIR} ; ${XMKMF} ; ${SETENV} DISTDIR=${DISTDIR} WRKDIR=${WRKDIR} FILESDIR=${FILESDIR} LOCALBASE=${LOCALBASE} ${MAKE}) ; \ + ${CAT} ${HOSTDEFLOCAL} ${HOSTDEFSRV} > ${HOSTDEFDST} ) .if defined(SERVER) .if (defined(THIS_SERVER_ONLY) && ${THIS_SERVER_ONLY} == YES) || ${SERVER} == xfs @@ -132,14 +118,16 @@ post-build: .else post-configure: @ ( \ + cd ${WRKDIR} ; \ for i in ${ALL_SERVER} ; do \ - ${TOUCH} ${TOUCH_FLAGS} ${CONFIGURECOOKIE}.$${i} ; \ + ${TOUCH} ${TOUCH_FLAGS} `${BASENAME} ${CONFIGURE_COOKIE} .${SERVER}`.$${i} ; \ done ) post-build: @ ( \ + cd ${WRKDIR} ; \ for i in ${ALL_SERVER} ; do \ - ${TOUCH} ${TOUCH_FLAGS} ${BUILDCOOKIE}.$${i} ; \ + ${TOUCH} ${TOUCH_FLAGS} `${BASENAME} ${BUILD_COOKIE} .${SERVER}`.$${i} ; \ done ) .endif .endif @@ -147,13 +135,12 @@ post-build: .if !defined(SERVER) do-install: @( \ - ${INSTALL_SCRIPT} ${FILESDIR}/mkfontdir.pl ${PREFIX}/bin; \ - ${INSTALL_DATA} ${WRKSRC}/lib/font/libfont.so.* ${PREFIX}/lib; \ + cd ${WRKSRC}/lib/font; \ + ${MAKE} install; \ ${LDCONFIG} -m ${PREFIX}/lib; \ + ${INSTALL_SCRIPT} ${FILESDIR}/mkfontdir.pl ${PREFIX}/bin; \ ${MKDIR} ${DOCDIR}; \ - ${INSTALL_DATA} ${WRKDIR}/xtt06/xtt06-readme.jis ${DOCDIR}; \ - ${INSTALL_DATA} ${WRKDIR}/xtt06/xtt06-example.jis ${DOCDIR} \ - ) + ${INSTALL_DATA} ${XTTDIR}/xtt10-* ${DOCDIR}) .elif defined(SERVER) && ${SERVER} == xfs do-install: @${INSTALL_PROGRAM} ${WRKSRC}/programs/xfs/xfs ${PREFIX}/bin/xfs.xtt @@ -161,8 +148,7 @@ do-install: do-install: @( \ ${INSTALL_PROGRAM} ${WRKSRC}/programs/Xserver/${SERVER} ${PREFIX}/bin/${SERVER}.xtt; \ - ${LN} -fs ${PREFIX}/bin/${SERVER}.xtt ${PREFIX}/bin/X \ - ) + ${LN} -fs ${PREFIX}/bin/${SERVER}.xtt ${PREFIX}/bin/X ) .endif post-install: |