1997-09-14 17:36:25 -04:00
|
|
|
# New ports collection makefile for: ja-groff
|
1995-05-02 03:45:53 -04:00
|
|
|
# Date created: 14 April 1995
|
|
|
|
# Whom: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
|
|
|
|
#
|
1999-08-25 01:28:01 -04:00
|
|
|
# $FreeBSD$
|
1995-05-02 03:45:53 -04:00
|
|
|
#
|
|
|
|
|
2000-04-11 10:15:53 -04:00
|
|
|
PORTNAME= groff
|
2001-08-13 21:26:24 -04:00
|
|
|
PORTVERSION= 1.17.2
|
1995-11-22 08:06:38 -05:00
|
|
|
CATEGORIES= japanese print
|
2001-06-12 03:45:37 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL:S,%SUBDIR%,okazaki/&,} \
|
|
|
|
${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= groff
|
2001-08-03 22:15:12 -04:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${TMAC_DISTNAME}.tar.gz
|
1995-05-02 03:45:53 -04:00
|
|
|
|
2000-12-11 15:40:40 -05:00
|
|
|
PATCH_SITES= ${MASTER_SITE_LOCAL}
|
2001-08-03 22:15:12 -04:00
|
|
|
PATCH_SITE_SUBDIR= okazaki/groff
|
|
|
|
PATCHFILES= ${DISTNAME}-jgroff-0.0.1.diff.gz
|
1995-05-02 03:45:53 -04:00
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
2000-12-11 15:40:40 -05:00
|
|
|
MAINTAINER= okazaki@FreeBSD.org
|
1997-01-24 05:18:53 -05:00
|
|
|
|
2001-08-13 21:26:24 -04:00
|
|
|
TMAC_DATE= 20010811
|
2001-02-14 06:17:10 -05:00
|
|
|
TMAC_DISTNAME= tmac-${TMAC_DATE}
|
|
|
|
|
1995-05-29 04:39:34 -04:00
|
|
|
USE_GMAKE= yes
|
2000-05-19 03:36:36 -04:00
|
|
|
USE_AUTOCONF= yes
|
1995-05-02 03:45:53 -04:00
|
|
|
|
2000-05-19 03:36:36 -04:00
|
|
|
CONFIGURE_ARGS= --program-prefix=g --enable-nippon
|
2001-08-05 21:14:28 -04:00
|
|
|
CONFIGURE_ENV= INSTALL_MAN="${INSTALL_MAN}"
|
1999-12-25 13:52:40 -05:00
|
|
|
|
2001-08-13 21:26:24 -04:00
|
|
|
TMACBASE= ${WRKDIR}/${TMAC_DISTNAME}
|
2001-08-03 22:15:12 -04:00
|
|
|
TMACDIR= share/groff/${PORTVERSION}/tmac
|
|
|
|
SITETMACDIR= share/groff/site-tmac
|
2000-05-19 03:36:36 -04:00
|
|
|
MDOCDIR= ${TMACDIR}/mdoc
|
|
|
|
INFODIR= ${PREFIX}/info
|
|
|
|
PORTDOCDIR= share/doc/jgroff
|
2001-08-03 22:15:12 -04:00
|
|
|
PLIST_SUB= GROFF_VERSION=${PORTVERSION}
|
1996-12-06 07:21:49 -05:00
|
|
|
|
2001-08-03 22:15:12 -04:00
|
|
|
MAN1SRC= eqn.1 indxbib.1 lookbib.1 neqn.1 nroff.1 pic.1 \
|
|
|
|
refer.1 soelim.1 tbl.1 troff.1 grn.1
|
|
|
|
|
|
|
|
MAN1= ${MAN1SRC:S/^/g/g} \
|
|
|
|
addftinfo.1 afmtodit.1 grodvi.1 \
|
|
|
|
groff.1 grog.1 \
|
|
|
|
grohtml.1 grolbp.1 grolj4.1 grops.1 grotty.1 \
|
|
|
|
hpftodit.1 lkbib.1 pfbtops.1 tfmtodit.1
|
|
|
|
MAN5= groff_font.5 groff_out.5 groff_tmac.5
|
|
|
|
MAN7= groff.7 groff_char.7 groff_man.7 groff_mdoc.7 \
|
|
|
|
groff_me.7 groff_mm.7 groff_mmse.7 groff_ms.7 \
|
|
|
|
groff_mwww.7 mmroff.7 roff.7
|
|
|
|
|
|
|
|
SITETMACFILES= mdoc.local
|
2001-08-13 21:26:24 -04:00
|
|
|
TMACFILES= tmac.orig_me tmac.vgrind \
|
|
|
|
an-old.tmac doc.tmac
|
2001-08-03 22:15:12 -04:00
|
|
|
MDOCFILES= eucJP
|
2000-05-19 03:36:36 -04:00
|
|
|
|
|
|
|
DOCUMENTS= ChangeLog.jp NEWS PROBLEMS README README.jp \
|
|
|
|
doc/meintro.me doc/meref.me doc/pic.ms
|
1999-12-25 13:52:40 -05:00
|
|
|
|
2001-08-03 22:15:12 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
2000-12-18 01:34:19 -05:00
|
|
|
|
2001-08-03 22:15:12 -04:00
|
|
|
.if ${OSVERSION} < 350001
|
|
|
|
WITHOUT_INFO= yes
|
|
|
|
PLIST_SUB+= INFO="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= INFO=""
|
|
|
|
.endif
|
1996-12-06 07:21:49 -05:00
|
|
|
|
2001-08-03 22:15:12 -04:00
|
|
|
TEXINFO_FILTER= -e 's/\@acronym/\@var/g;' \
|
|
|
|
-e 's/ifnottex/ifinfo/g;' \
|
|
|
|
-e 's/ifnotinfo/iftex/g;' \
|
|
|
|
-e 's/\@option/\@samp/g;' \
|
|
|
|
-e 's/\@env/\@code/g;'
|
1999-09-20 05:07:09 -04:00
|
|
|
|
2001-08-13 21:26:24 -04:00
|
|
|
# workaround for autoconf-2.13
|
|
|
|
|
|
|
|
CONFIGUREIN_FILTER= \
|
|
|
|
-e 's|AC_INIT|dnl|g;' \
|
|
|
|
-e 's|AC_CONFIG_SRCDIR|AC_INIT|g;' \
|
|
|
|
-e 's|AC_OUTPUT|dnl|g;' \
|
|
|
|
-e 's|AC_CONFIG_FILES|AC_OUTPUT|g;'
|
|
|
|
|
|
|
|
ACLOCAL_FILTER= -e 's/AC_LANG_POP\(C\+\+\)/AC_LANG_RESTORE/g;' \
|
|
|
|
-e 's/AC_LANG_PUSH\(C\+\+\)/AC_LANG_SAVE\nAC_LANG_CPLUSPLUS/g;'
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${LN} -sf configure.ac ${WRKSRC}/configure.in
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${PERL} -pi ${CONFIGUREIN_FILTER} ${WRKSRC}/configure.in
|
|
|
|
${PERL} -pi ${ACLOCAL_FILTER} ${WRKSRC}/aclocal.m4
|
|
|
|
|
2000-05-19 03:36:36 -04:00
|
|
|
post-build:
|
2001-08-03 22:15:12 -04:00
|
|
|
.if !defined(WITHOUT_INFO)
|
2000-05-19 03:36:36 -04:00
|
|
|
cd ${WRKSRC}/doc && makeinfo --no-split groff.texinfo
|
2001-08-03 22:15:12 -04:00
|
|
|
.endif
|
2000-05-19 03:36:36 -04:00
|
|
|
|
1997-05-20 00:50:55 -04:00
|
|
|
post-install:
|
2001-08-03 22:15:12 -04:00
|
|
|
.if !defined(WITHOUT_INFO)
|
2000-05-19 03:36:36 -04:00
|
|
|
@${MAKE} install-info
|
2001-08-03 22:15:12 -04:00
|
|
|
.endif
|
2000-05-19 03:36:36 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MAKE} install-documents
|
|
|
|
.endif
|
2001-08-03 22:15:12 -04:00
|
|
|
.for FILE in ${SITETMACFILES}
|
|
|
|
${INSTALL_DATA} ${TMACBASE}/${FILE} ${PREFIX}/${SITETMACDIR}
|
|
|
|
.endfor
|
2001-02-14 06:17:10 -05:00
|
|
|
.for FILE in ${TMACFILES}
|
|
|
|
${INSTALL_DATA} ${TMACBASE}/${FILE} ${PREFIX}/${TMACDIR}
|
|
|
|
.endfor
|
|
|
|
.for FILE in ${MDOCFILES}
|
|
|
|
${INSTALL_DATA} ${TMACBASE}/mdoc/${FILE} ${PREFIX}/${MDOCDIR}
|
|
|
|
.endfor
|
2000-05-19 03:36:36 -04:00
|
|
|
|
|
|
|
install-documents:
|
|
|
|
@${MKDIR} ${PREFIX}/${PORTDOCDIR}
|
2001-08-03 22:15:12 -04:00
|
|
|
cd ${INSTALL_WRKSRC} \
|
|
|
|
&& ${INSTALL_DATA} ${DOCUMENTS} ${PREFIX}/${PORTDOCDIR}
|
2000-05-19 03:36:36 -04:00
|
|
|
|
|
|
|
install-info:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/groff ${INFODIR}
|
|
|
|
install-info ${INFODIR}/groff ${INFODIR}/dir
|
1997-05-20 00:50:55 -04:00
|
|
|
|
1999-09-20 05:07:09 -04:00
|
|
|
.include <bsd.port.post.mk>
|