diff options
author | okazaki <okazaki@FreeBSD.org> | 2004-02-11 18:16:13 +0800 |
---|---|---|
committer | okazaki <okazaki@FreeBSD.org> | 2004-02-11 18:16:13 +0800 |
commit | 631caeba4050c562552efec72c29dba0192d659a (patch) | |
tree | 2d4e0890cc7034a3720a93d8343e3398c29048c1 /japanese/groff | |
parent | 19e179bca2bc50591b964b56939fbc366a685d91 (diff) | |
download | freebsd-ports-gnome-631caeba4050c562552efec72c29dba0192d659a.tar.gz freebsd-ports-gnome-631caeba4050c562552efec72c29dba0192d659a.tar.zst freebsd-ports-gnome-631caeba4050c562552efec72c29dba0192d659a.zip |
Utilize USE_ICONV.
Fix PLIST_SUB when WITHOUT_INFO is defined and OSVERSION >= 470000.
Rename for-loop iterators FILE to F, to avoid overriding FILE variable provided by bsd.port.mk.
Stop using sub make in post-install rules.
Diffstat (limited to 'japanese/groff')
-rw-r--r-- | japanese/groff/Makefile | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/japanese/groff/Makefile b/japanese/groff/Makefile index be7c6f0c3268..515f1fbd7f11 100644 --- a/japanese/groff/Makefile +++ b/japanese/groff/Makefile @@ -22,7 +22,6 @@ PATCH_DIST_STRIP= -p1 MAINTAINER= okazaki@FreeBSD.org COMMENT= Japanese enhancement of GNU groff -LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv BUILD_DEPENDS= pnmcut:${PORTSDIR}/graphics/netpbm RUN_DEPENDS= pnmcut:${PORTSDIR}/graphics/netpbm @@ -31,6 +30,7 @@ TMAC_DISTNAME= tmac-${TMAC_DATE}_2 GNU_CONFIGURE= yes USE_GMAKE= yes +USE_ICONV= yes USE_REINPLACE= yes CONFIGURE_ARGS= --enable-multibyte @@ -84,6 +84,9 @@ pre-build: # formatting groff.info requires texinfo 4.2 .if ${OSVERSION} < 470000 WITHOUT_INFO= yes +.endif + +.if defined(WITHOUT_INFO) PLIST_SUB+= INFO="@comment " .else PLIST_SUB+= INFO="" @@ -108,35 +111,38 @@ post-build: cd ${WRKSRC} && ${FIND} font -name DESC \ | ${XARGS} ${REINPLACE_CMD} -e 's|pro \(.*\)|pro ${PREFIX}/bin/\1|g;' -post-install: install-links +POST_INSTALL_SEQ= install-links .if !defined(WITHOUT_INFO) - @${MAKE} install-info +POST_INSTALL_SEQ+= install-info .endif .if !defined(NOPORTDOCS) - @${MAKE} install-documents +POST_INSTALL_SEQ+= install-documents .endif -.for FILE in ${SITETMACFILES} - ${INSTALL_DATA} ${TMACBASE}/${FILE} ${PREFIX}/${SITETMACDIR} + +post-install: ${POST_INSTALL_SEQ} +.for F in ${SITETMACFILES} + ${INSTALL_DATA} ${TMACBASE}/${F} ${PREFIX}/${SITETMACDIR} .endfor -.for FILE in ${TMACFILES} - ${INSTALL_DATA} ${TMACBASE}/${FILE} ${PREFIX}/${TMACDIR} +.for F in ${TMACFILES} + ${INSTALL_DATA} ${TMACBASE}/${F} ${PREFIX}/${TMACDIR} .endfor -.for FILE in ${MDOCFILES} - ${INSTALL_DATA} ${TMACBASE}/mdoc/${FILE} ${PREFIX}/${MDOCDIR} +.for F in ${MDOCFILES} + ${INSTALL_DATA} ${TMACBASE}/mdoc/${F} ${PREFIX}/${MDOCDIR} .endfor install-documents: @${MKDIR} ${DOCSDIR} - cd ${INSTALL_WRKSRC} \ - && ${INSTALL_DATA} ${DOCUMENTS} ${DOCSDIR} +.for F in ${DOCUMENTS} + ${INSTALL_DATA} ${INSTALL_WRKSRC}/${F} ${DOCSDIR} +.endfor install-info: ${INSTALL_DATA} ${WRKSRC}/doc/groff ${INFODIR} install-info ${INFODIR}/groff ${INFODIR}/dir install-links: -.for FILE in eqn neqn pic tbl - ${LN} -sf ${FILE} ${PREFIX}/bin/g${FILE} +.for F in eqn neqn pic tbl + ${LN} -sf ${FILE} ${PREFIX}/bin/g${F} .endfor .include <bsd.port.post.mk> |