1998-02-14 18:13:09 +00:00
|
|
|
# New ports collection makefile for: GP
|
|
|
|
# Version required: 2.5
|
|
|
|
# Date created: 15 April 1997
|
|
|
|
# Whom: Kiriyama Kazuhiko<kiri@kiri.toba-cmt.ac.jp>
|
|
|
|
#
|
1998-02-21 22:38:11 +00:00
|
|
|
# $Id: Makefile,v 1.3 1998/02/18 06:59:36 asami Exp $
|
1998-02-14 18:13:09 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= GP-2.5
|
|
|
|
PKGNAME= gp-2.5
|
1998-02-21 22:38:11 +00:00
|
|
|
CATEGORIES= print tk42
|
1998-02-14 18:13:09 +00: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
|
|
|
|
|
|
|
|
RUN_DEPENDS= psbook:${PORTSDIR}/print/psutils \
|
|
|
|
gv:${PORTSDIR}/print/gv \
|
|
|
|
${WITH_DEPENDS}
|
|
|
|
|
|
|
|
PATCHDIR= ${.CURDIR}/../../print/gp/patches
|
|
|
|
FILESDIR= ${.CURDIR}/../../print/gp/files
|
|
|
|
SCRIPTDIR= ${.CURDIR}/../../print/gp/scripts
|
|
|
|
|
|
|
|
LANGUAGE?= English
|
|
|
|
|
|
|
|
.if (${LANGUAGE} == "Japanese")
|
|
|
|
ALL_TARGET= ja filters
|
|
|
|
.else
|
|
|
|
ALL_TARGET= filters
|
|
|
|
.endif
|
|
|
|
MAKE_ENV= LANGUAGE=${LANGUAGE}
|
|
|
|
SCRIPTS_ENV= MV=${MV} RM=${RM} SED=${SED} LANGUAGE=${LANGUAGE}
|
|
|
|
|
|
|
|
PORTDOCDIR= ${PREFIX}/share/doc/GP
|
|
|
|
.if (${LANGUAGE} == "Japanese")
|
|
|
|
DOCDIRNAME= Doc.ja
|
|
|
|
DOCEXT= .euc
|
|
|
|
WITH_DEPENDS= wish4.2jp:${PORTSDIR}/japanese/tk42 \
|
|
|
|
a2ps-j:${PORTSDIR}/japanese/a2ps \
|
|
|
|
xdvi:${PORTSDIR}/japanese/vfxdvi \
|
|
|
|
nup:${PORTSDIR}/japanese/dvi2ps
|
|
|
|
.else
|
|
|
|
DOCDIRNAME= Doc
|
|
|
|
DOCEXT=
|
|
|
|
WITH_DEPENDS?= wish4.2:${PORTSDIR}/x11/tk42 \
|
|
|
|
a2ps:${PORTSDIR}/print/a2ps \
|
|
|
|
xdvi:${PORTSDIR}/print/xdvi \
|
|
|
|
dvips:${PORTSDIR}/print/dvips
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PORTDOCDIR}/Manual/${LANGUAGE}/image
|
|
|
|
@(cd ${WRKSRC}; \
|
|
|
|
${INSTALL_DATA} ${DOCDIRNAME}/*${DOCEXT} ${PORTDOCDIR}; \
|
|
|
|
)
|
|
|
|
@(cd ${WRKSRC}/Manual; \
|
|
|
|
${INSTALL_DATA} GP.gif README${DOCEXT} index.html ${PORTDOCDIR}/Manual; \
|
|
|
|
${INSTALL_DATA} ${LANGUAGE}/*.html ${PORTDOCDIR}/Manual/${LANGUAGE}; \
|
|
|
|
${INSTALL_DATA} ${LANGUAGE}/image/*.gif ${PORTDOCDIR}/Manual/${LANGUAGE}/image; \
|
|
|
|
)
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|