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
|
2003-03-06 05:59:53 +01:00
|
|
|
PORTVERSION= 1.18.1
|
2004-03-11 06:31:52 +01:00
|
|
|
PORTREVISION= 7
|
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/&,} \
|
2003-10-17 11:46:23 +02:00
|
|
|
${MASTER_SITE_DEBIAN:S,$,:debian,}
|
|
|
|
MASTER_SITE_SUBDIR= groff/:DEFAULT pool/main/g/groff/:debian
|
|
|
|
DISTFILES= ${DISTNAME:S,-,_,}.orig${EXTRACT_SUFX}:debian ${TMAC_DISTNAME}.tar.gz
|
1995-05-02 09:45:53 +02:00
|
|
|
|
2003-09-10 14:31:48 +02:00
|
|
|
PATCH_SITES= ${MASTER_SITE_DEBIAN}
|
|
|
|
PATCH_SITE_SUBDIR= pool/main/g/groff
|
2004-03-11 06:31:52 +01:00
|
|
|
PATCHFILES= ${DISTNAME:S,-,_,}-15.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
|
2003-03-06 05:59:53 +01:00
|
|
|
COMMENT= Japanese enhancement of GNU groff
|
1997-01-24 11:18:53 +01:00
|
|
|
|
2004-05-14 02:33:43 +02:00
|
|
|
.if !defined(PACKAGE_BUILDING)
|
2003-03-06 05:59:53 +01:00
|
|
|
RUN_DEPENDS= pnmcut:${PORTSDIR}/graphics/netpbm
|
2004-05-14 02:33:43 +02:00
|
|
|
.endif
|
2003-03-06 05:59:53 +01:00
|
|
|
|
2003-05-23 02:21:13 +02:00
|
|
|
TMAC_DATE= 20030521
|
2003-10-17 11:46:23 +02:00
|
|
|
TMAC_DISTNAME= tmac-${TMAC_DATE}_2
|
2001-02-14 12:17:10 +01:00
|
|
|
|
2003-03-06 05:59:53 +01:00
|
|
|
GNU_CONFIGURE= yes
|
1995-05-29 10:39:34 +02:00
|
|
|
USE_GMAKE= yes
|
2004-02-11 11:16:13 +01:00
|
|
|
USE_ICONV= yes
|
2002-06-20 21:13:13 +02:00
|
|
|
USE_REINPLACE= yes
|
1995-05-02 09:45:53 +02:00
|
|
|
|
2003-03-06 05:59:53 +01:00
|
|
|
CONFIGURE_ARGS= --enable-multibyte
|
|
|
|
CONFIGURE_ENV= INSTALL_MAN="${INSTALL_MAN}" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib -liconv"
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
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
|
2003-03-06 05:59:53 +01:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/groff/${PORTVERSION}
|
2001-08-04 04:15:12 +02:00
|
|
|
PLIST_SUB= GROFF_VERSION=${PORTVERSION}
|
1996-12-06 13:21:49 +01:00
|
|
|
|
2003-03-06 05:59:53 +01:00
|
|
|
MAN1= addftinfo.1 afmtodit.1 \
|
|
|
|
eqn.1 eqn2graph.1 \
|
|
|
|
grn.1 grodvi.1 groff.1 groffer.1 grog.1 \
|
2001-08-04 04:15:12 +02:00
|
|
|
grohtml.1 grolbp.1 grolj4.1 grops.1 grotty.1 \
|
2003-03-06 05:59:53 +01:00
|
|
|
hpftodit.1 indxbib.1 lkbib.1 lookbib.1 mmroff.1 \
|
|
|
|
neqn.1 nroff.1 pfbtops.1 pic.1 pic2graph.1 \
|
|
|
|
refer.1 soelim.1 tbl.1 tfmtodit.1 troff.1
|
2001-08-04 04:15:12 +02:00
|
|
|
MAN5= groff_font.5 groff_out.5 groff_tmac.5
|
2003-03-06 05:59:53 +01:00
|
|
|
MAN7= ditroff.7 groff.7 groff_char.7 groff_diff.7 \
|
|
|
|
groff_man.7 groff_mdoc.7 \
|
|
|
|
groff_me.7 groff_mm.7 groff_mmse.7 groff_mom.7 groff_ms.7 \
|
|
|
|
groff_trace.7 groff_www.7 roff.7
|
2001-08-04 04:15:12 +02:00
|
|
|
|
|
|
|
SITETMACFILES= mdoc.local
|
2002-01-22 07:21:10 +01:00
|
|
|
TMACFILES= tmac.orig_me tmac.vgrind \
|
|
|
|
an-old.tmac doc.tmac e.tmac
|
2003-03-06 05:59:53 +01:00
|
|
|
MDOCFILES= ja.eucJP doc-common doc-syms
|
2000-05-19 09:36:36 +02:00
|
|
|
|
2003-03-06 05:59:53 +01:00
|
|
|
DOCUMENTS= ChangeLog.jp NEWS PROBLEMS README README.jp
|
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
|
|
|
|
2003-10-03 13:56:58 +02:00
|
|
|
# nl_langinfo(CODESET) drops the support of ja_JP.EUC after 5.1-RELEASE
|
|
|
|
.if ${OSVERSION} > 501100
|
|
|
|
LOCALE_CMD?= /usr/bin/locale
|
|
|
|
.if exists(${LOCALE_CMD})
|
|
|
|
CHARMAP!= ${LOCALE_CMD} charmap
|
|
|
|
.if (${CHARMAP} == "EUC")
|
|
|
|
MAKE_ENV= LC_ALL=C
|
|
|
|
pre-build:
|
|
|
|
@${ECHO_CMD} "Warning: Your current locale setting is not supported by the system."
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2003-03-06 05:59:53 +01:00
|
|
|
# formatting groff.info requires texinfo 4.2
|
|
|
|
.if ${OSVERSION} < 470000
|
2001-08-04 04:15:12 +02:00
|
|
|
WITHOUT_INFO= yes
|
2004-02-11 11:16:13 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_INFO)
|
2001-08-04 04:15:12 +02:00
|
|
|
PLIST_SUB+= INFO="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= INFO=""
|
|
|
|
.endif
|
1996-12-06 13:21:49 +01:00
|
|
|
|
2003-03-06 05:59:53 +01:00
|
|
|
# wchar.h is exist since 4.4-RELEASE
|
|
|
|
.if ${OSVERSION} < 440000
|
|
|
|
WITHOUT_WCHAR_H= yes
|
|
|
|
.endif
|
2001-08-14 03:26:24 +02:00
|
|
|
|
|
|
|
post-patch:
|
2003-03-06 08:50:42 +01:00
|
|
|
.if defined(WITHOUT_WCHAR_H)
|
2003-03-06 05:59:53 +01:00
|
|
|
${REINPLACE_CMD} -e 's|#include <wchar[.]h>||g;' \
|
|
|
|
${WRKSRC}/src/libs/libgroff/encoding.cc
|
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:
|
2003-03-06 05:59:53 +01:00
|
|
|
${RM} -f ${WRKSRC}/doc/groff ${WRKSRC}/doc/groff-*
|
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
|
2003-03-06 05:59:53 +01:00
|
|
|
cd ${WRKSRC} && ${FIND} font -name DESC \
|
2003-07-30 14:33:50 +02:00
|
|
|
| ${XARGS} ${REINPLACE_CMD} -e 's|pro \(.*\)|pro ${PREFIX}/bin/\1|g;'
|
2000-05-19 09:36:36 +02:00
|
|
|
|
2004-02-11 11:16:13 +01:00
|
|
|
POST_INSTALL_SEQ= install-links
|
2001-08-04 04:15:12 +02:00
|
|
|
.if !defined(WITHOUT_INFO)
|
2004-02-11 11:16:13 +01:00
|
|
|
POST_INSTALL_SEQ+= install-info
|
2001-08-04 04:15:12 +02:00
|
|
|
.endif
|
2000-05-19 09:36:36 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-02-11 11:16:13 +01:00
|
|
|
POST_INSTALL_SEQ+= install-documents
|
2000-05-19 09:36:36 +02:00
|
|
|
.endif
|
2004-02-11 11:16:13 +01:00
|
|
|
|
|
|
|
post-install: ${POST_INSTALL_SEQ}
|
|
|
|
.for F in ${SITETMACFILES}
|
|
|
|
${INSTALL_DATA} ${TMACBASE}/${F} ${PREFIX}/${SITETMACDIR}
|
2001-08-04 04:15:12 +02:00
|
|
|
.endfor
|
2004-02-11 11:16:13 +01:00
|
|
|
.for F in ${TMACFILES}
|
|
|
|
${INSTALL_DATA} ${TMACBASE}/${F} ${PREFIX}/${TMACDIR}
|
2001-02-14 12:17:10 +01:00
|
|
|
.endfor
|
2004-02-11 11:16:13 +01:00
|
|
|
.for F in ${MDOCFILES}
|
|
|
|
${INSTALL_DATA} ${TMACBASE}/mdoc/${F} ${PREFIX}/${MDOCDIR}
|
2001-02-14 12:17:10 +01:00
|
|
|
.endfor
|
2000-05-19 09:36:36 +02:00
|
|
|
|
|
|
|
install-documents:
|
2002-01-22 07:21:10 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-02-11 11:16:13 +01:00
|
|
|
.for F in ${DOCUMENTS}
|
|
|
|
${INSTALL_DATA} ${INSTALL_WRKSRC}/${F} ${DOCSDIR}
|
|
|
|
.endfor
|
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
|
|
|
|
2003-03-06 05:59:53 +01:00
|
|
|
install-links:
|
2004-02-11 11:16:13 +01:00
|
|
|
.for F in eqn neqn pic tbl
|
2004-02-16 13:37:01 +01:00
|
|
|
${LN} -sf ${F} ${PREFIX}/bin/g${F}
|
2003-03-06 05:59:53 +01:00
|
|
|
.endfor
|
|
|
|
|
1999-09-20 11:07:09 +02:00
|
|
|
.include <bsd.port.post.mk>
|