1998-02-14 13:13:09 -05:00
|
|
|
# New ports collection makefile for: GP
|
1998-08-23 21:06:35 -04:00
|
|
|
# Version required: 2.5p1
|
1998-02-14 13:13:09 -05:00
|
|
|
# Date created: 15 April 1997
|
|
|
|
# Whom: Kiriyama Kazuhiko<kiri@kiri.toba-cmt.ac.jp>
|
|
|
|
#
|
1998-11-19 23:39:06 -05:00
|
|
|
# $Id: Makefile,v 1.10 1998/10/09 10:05:54 asami Exp $
|
1998-02-14 13:13:09 -05:00
|
|
|
#
|
|
|
|
|
1998-08-23 21:06:35 -04:00
|
|
|
DISTNAME= GP-2.5p2
|
|
|
|
PKGNAME?= gp-2.5p2
|
|
|
|
CATEGORIES= print tk42
|
1998-02-14 13:13:09 -05:00
|
|
|
MASTER_SITES= http://www.kamome.or.jp/hueda/GP/ \
|
|
|
|
ftp://www.neosoft.com/pub/tcl/sorted/print/GP-2.5/
|
|
|
|
|
|
|
|
MAINTAINER= kiri@kiri.toba-cmt.ac.jp
|
|
|
|
|
|
|
|
PATCHDIR= ${.CURDIR}/../../print/gp/patches
|
|
|
|
FILESDIR= ${.CURDIR}/../../print/gp/files
|
|
|
|
SCRIPTDIR= ${.CURDIR}/../../print/gp/scripts
|
|
|
|
|
1998-11-19 23:39:06 -05:00
|
|
|
RUN_DEPENDS= ${PREFIX}/bin/psbook:${PORTSDIR}/print/psutils-${PAPERSIZE} \
|
1998-08-23 21:06:35 -04:00
|
|
|
${X11BASE}/bin/gv:${PORTSDIR}/print/gv \
|
|
|
|
${PREFIX}/bin/convert:${PORTSDIR}/graphics/ImageMagick
|
|
|
|
|
1998-02-14 13:13:09 -05:00
|
|
|
LANGUAGE?= English
|
|
|
|
|
1998-08-23 21:06:35 -04:00
|
|
|
.if (${LANGUAGE} == "English")
|
1998-02-14 13:13:09 -05:00
|
|
|
ALL_TARGET= filters
|
1998-09-26 19:11:03 -04:00
|
|
|
LIB_DEPENDS= tcl76.1:${PORTSDIR}/lang/tcl76
|
1998-08-23 21:06:35 -04:00
|
|
|
RUN_DEPENDS+= ${PREFIX}/bin/wish4.2:${PORTSDIR}/x11-toolkits/tk42
|
|
|
|
LANGEXT= en
|
|
|
|
DOCDIRNAME= Doc
|
|
|
|
DOCEXT=
|
1998-11-19 23:39:06 -05:00
|
|
|
PAPERSIZE= letter
|
1998-08-23 21:06:35 -04:00
|
|
|
.elif (${LANGUAGE} == "Japanese")
|
|
|
|
ALL_TARGET= ja filters
|
1998-10-09 06:05:56 -04:00
|
|
|
LIB_DEPENDS= tcl76jp.1:${PORTSDIR}/japanese/tcl76
|
1998-08-23 21:06:35 -04:00
|
|
|
RUN_DEPENDS+= ${PREFIX}/bin/wish4.2jp:${PORTSDIR}/japanese/tk42
|
|
|
|
LANGEXT= ja
|
1998-02-14 13:13:09 -05:00
|
|
|
DOCDIRNAME= Doc.ja
|
|
|
|
DOCEXT= .euc
|
1998-11-19 23:39:06 -05:00
|
|
|
PAPERSIZE= a4
|
|
|
|
.else
|
|
|
|
PAPERSIZE= a4
|
1998-08-23 21:06:35 -04:00
|
|
|
.endif
|
|
|
|
MAKE_ENV= LANGUAGE=${LANGUAGE} LANGEXT=${LANGEXT}
|
|
|
|
SCRIPTS_ENV= MV=${MV} RM=${RM} SED=${SED} LANGUAGE=${LANGUAGE} LANGEXT=${LANGEXT}
|
|
|
|
|
|
|
|
.if (${LANGEXT} == "en")
|
|
|
|
PORTDOCDIR= ${PREFIX}/share/doc/GP/
|
1998-02-14 13:13:09 -05:00
|
|
|
.else
|
1998-08-23 21:06:35 -04:00
|
|
|
PORTDOCDIR= ${PREFIX}/share/doc/GP/${LANGEXT}/
|
1998-02-14 13:13:09 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
1998-08-23 21:06:35 -04:00
|
|
|
if [ -h ${PREFIX}/bin/GP ]; then \
|
|
|
|
${MV} ${PREFIX}/bin/GP ${PREFIX}/bin/GP.previous; \
|
|
|
|
fi
|
|
|
|
${LN} -sf GP${LANGEXT} ${PREFIX}/bin/GP
|
1998-02-14 13:13:09 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
1998-08-23 21:06:35 -04:00
|
|
|
@${MKDIR} ${PORTDOCDIR}Manual/image
|
1998-02-14 13:13:09 -05:00
|
|
|
@(cd ${WRKSRC}; \
|
|
|
|
${INSTALL_DATA} ${DOCDIRNAME}/*${DOCEXT} ${PORTDOCDIR}; \
|
|
|
|
)
|
|
|
|
@(cd ${WRKSRC}/Manual; \
|
1998-08-23 21:06:35 -04:00
|
|
|
${INSTALL_DATA} GP.gif README${DOCEXT} index.html ${PORTDOCDIR}Manual; \
|
|
|
|
${INSTALL_DATA} ${LANGUAGE}/*.html ${PORTDOCDIR}Manual; \
|
|
|
|
${INSTALL_DATA} ${LANGUAGE}/image/*.gif ${PORTDOCDIR}Manual/image; \
|
1998-02-14 13:13:09 -05:00
|
|
|
)
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|