1997-09-14 23:36:25 +02:00
|
|
|
# New ports collection makefile for: ja-groff
|
1995-05-02 09:45:53 +02:00
|
|
|
# Date created: 14 April 1995
|
|
|
|
# Whom: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
|
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1995-05-02 09:45:53 +02:00
|
|
|
#
|
|
|
|
|
2000-04-11 16:15:53 +02:00
|
|
|
PORTNAME= groff
|
2001-08-14 03:26:24 +02:00
|
|
|
PORTVERSION= 1.17.2
|
2002-09-19 03:38:47 +02:00
|
|
|
PORTREVISION= 5
|
1995-11-22 14:06:38 +01:00
|
|
|
CATEGORIES= japanese print
|
2001-06-12 09:45:37 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL:S,%SUBDIR%,okazaki/&,} \
|
|
|
|
${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= groff
|
2001-08-04 04:15:12 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${TMAC_DISTNAME}.tar.gz
|
1995-05-02 09:45:53 +02:00
|
|
|
|
2000-12-11 21:40:40 +01:00
|
|
|
PATCH_SITES= ${MASTER_SITE_LOCAL}
|
2001-08-04 04:15:12 +02:00
|
|
|
PATCH_SITE_SUBDIR= okazaki/groff
|
2001-09-04 09:16:19 +02:00
|
|
|
PATCHFILES= ${DISTNAME}-jgroff-0.0.2.diff.gz
|
1995-05-02 09:45:53 +02:00
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
2000-12-11 21:40:40 +01:00
|
|
|
MAINTAINER= okazaki@FreeBSD.org
|
1997-01-24 11:18:53 +01:00
|
|
|
|
2002-09-19 03:38:47 +02:00
|
|
|
TMAC_DATE= 20020918
|
2001-02-14 12:17:10 +01:00
|
|
|
TMAC_DISTNAME= tmac-${TMAC_DATE}
|
|
|
|
|
1995-05-29 10:39:34 +02:00
|
|
|
USE_GMAKE= yes
|
2002-06-03 04:47:09 +02:00
|
|
|
# declare USE_AUTOCONF_VER as 213 until bsd.port.mk supports 252 (or later)
|
|
|
|
USE_AUTOCONF_VER= 213
|
2002-06-20 21:13:13 +02:00
|
|
|
.if ${USE_AUTOCONF_VER} == 213
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
.endif
|
1995-05-02 09:45:53 +02:00
|
|
|
|
2000-05-19 09:36:36 +02:00
|
|
|
CONFIGURE_ARGS= --program-prefix=g --enable-nippon
|
2001-08-06 03:14:28 +02:00
|
|
|
CONFIGURE_ENV= INSTALL_MAN="${INSTALL_MAN}"
|
1999-12-25 19:52:40 +01:00
|
|
|
|
2001-08-14 03:26:24 +02:00
|
|
|
TMACBASE= ${WRKDIR}/${TMAC_DISTNAME}
|
2001-08-04 04:15:12 +02:00
|
|
|
TMACDIR= share/groff/${PORTVERSION}/tmac
|
|
|
|
SITETMACDIR= share/groff/site-tmac
|
2000-05-19 09:36:36 +02:00
|
|
|
MDOCDIR= ${TMACDIR}/mdoc
|
|
|
|
INFODIR= ${PREFIX}/info
|
2002-01-22 07:21:10 +01:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/jgroff
|
2001-08-04 04:15:12 +02:00
|
|
|
PLIST_SUB= GROFF_VERSION=${PORTVERSION}
|
1996-12-06 13:21:49 +01:00
|
|
|
|
2001-08-04 04:15:12 +02: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
|
2002-01-22 07:21:10 +01:00
|
|
|
TMACFILES= tmac.orig_me tmac.vgrind \
|
|
|
|
an-old.tmac doc.tmac e.tmac
|
|
|
|
MDOCFILES= eucJP doc-common doc-syms
|
2000-05-19 09:36:36 +02:00
|
|
|
|
|
|
|
DOCUMENTS= ChangeLog.jp NEWS PROBLEMS README README.jp \
|
|
|
|
doc/meintro.me doc/meref.me doc/pic.ms
|
1999-12-25 19:52:40 +01:00
|
|
|
|
2001-08-04 04:15:12 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2000-12-18 07:34:19 +01:00
|
|
|
|
2001-08-04 04:15:12 +02:00
|
|
|
.if ${OSVERSION} < 350001
|
|
|
|
WITHOUT_INFO= yes
|
|
|
|
PLIST_SUB+= INFO="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= INFO=""
|
|
|
|
.endif
|
1996-12-06 13:21:49 +01:00
|
|
|
|
2001-08-14 03:26:24 +02: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;'
|
|
|
|
|
2002-06-20 21:13:13 +02:00
|
|
|
ACLOCAL_FILTER= \
|
|
|
|
-e 's/AC_LANG_POP[(]C[+][+][)]/AC_LANG_RESTORE/g;' \
|
|
|
|
-e 's/AC_LANG_PUSH[(]C[+][+][)]/AC_LANG_SAVE[]AC_LANG_CPLUSPLUS/g;'
|
2001-08-14 03:26:24 +02:00
|
|
|
|
|
|
|
post-patch:
|
2002-06-03 04:47:09 +02:00
|
|
|
.if ${USE_AUTOCONF_VER} == 213
|
2002-06-20 21:13:13 +02:00
|
|
|
${CP} -p ${WRKSRC}/configure.ac ${WRKSRC}/configure.in
|
|
|
|
${REINPLACE_CMD} ${CONFIGUREIN_FILTER} ${WRKSRC}/configure.in
|
|
|
|
${REINPLACE_CMD} ${ACLOCAL_FILTER} ${WRKSRC}/aclocal.m4
|
2002-06-03 04:47:09 +02:00
|
|
|
.endif
|
2001-08-14 03:26:24 +02:00
|
|
|
|
2000-05-19 09:36:36 +02:00
|
|
|
post-build:
|
2001-08-04 04:15:12 +02:00
|
|
|
.if !defined(WITHOUT_INFO)
|
2000-05-19 09:36:36 +02:00
|
|
|
cd ${WRKSRC}/doc && makeinfo --no-split groff.texinfo
|
2001-08-04 04:15:12 +02:00
|
|
|
.endif
|
2000-05-19 09:36:36 +02:00
|
|
|
|
1997-05-20 06:50:55 +02:00
|
|
|
post-install:
|
2001-08-04 04:15:12 +02:00
|
|
|
.if !defined(WITHOUT_INFO)
|
2000-05-19 09:36:36 +02:00
|
|
|
@${MAKE} install-info
|
2001-08-04 04:15:12 +02:00
|
|
|
.endif
|
2000-05-19 09:36:36 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MAKE} install-documents
|
|
|
|
.endif
|
2001-08-04 04:15:12 +02:00
|
|
|
.for FILE in ${SITETMACFILES}
|
|
|
|
${INSTALL_DATA} ${TMACBASE}/${FILE} ${PREFIX}/${SITETMACDIR}
|
|
|
|
.endfor
|
2001-02-14 12:17:10 +01: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 09:36:36 +02:00
|
|
|
|
|
|
|
install-documents:
|
2002-01-22 07:21:10 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2001-08-04 04:15:12 +02:00
|
|
|
cd ${INSTALL_WRKSRC} \
|
2002-01-22 07:21:10 +01:00
|
|
|
&& ${INSTALL_DATA} ${DOCUMENTS} ${DOCSDIR}
|
2000-05-19 09:36:36 +02:00
|
|
|
|
|
|
|
install-info:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/groff ${INFODIR}
|
|
|
|
install-info ${INFODIR}/groff ${INFODIR}/dir
|
1997-05-20 06:50:55 +02:00
|
|
|
|
1999-09-20 11:07:09 +02:00
|
|
|
.include <bsd.port.post.mk>
|