1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/textproc/yodl/Makefile
Emanuel Haupt 5005b67362 According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.

This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.

Approved by:    portmgr (bapt)
2014-02-10 13:54:26 +00:00

99 lines
2.8 KiB
Makefile

# Created by: Donald Burr <dburr@FreeBSD.org>
# $FreeBSD$
PORTNAME= yodl
PORTVERSION= 3.03.0
CATEGORIES= textproc
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
DISTNAME= ${PORTNAME}_${PORTVERSION}
EXTRACT_SUFX= .orig.tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= Easy to use but powerful document formatting/preparation language
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash \
${LOCALBASE}/bin/getopt:${PORTSDIR}/misc/getopt
BUILD_DEPENDS= icmake:${PORTSDIR}/devel/icmake \
bash:${PORTSDIR}/shells/bash \
gsed:${PORTSDIR}/textproc/gsed
USES= perl5
USE_PERL5= build
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
PORTDOCS= *
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
USE_TEX= latex:build dvipsk:build
.endif
USES= shebangfix
SHEBANG_LANG= icmake
icmake_OLD_CMD= /usr/bin/icmake
icmake_CMD= ${LOCALBASE}/bin/icmake
SHEBANG_FILES= ${WRKSRC}/macros/rawmacros/create \
${WRKSRC}/macros/rawmacros/keepdiff \
${WRKSRC}/macros/rawmacros/makeyoin \
${WRKSRC}/macros/rawmacros/repairs \
${WRKSRC}/macros/rawmacros/separator \
${WRKSRC}/macros/rawmacros/separator.pl \
${WRKSRC}/macros/rawmacros/startdoc \
${WRKSRC}/macros/rawmacros/startdoc.pl \
${WRKSRC}/contrib/build.pl \
${WRKSRC}/src/yodl/replace \
${WRKSRC}/scripts/configreplacements \
${WRKSRC}/scripts/macroseparator.pl \
${WRKSRC}/scripts/stdmacros \
${WRKSRC}/scripts/yodl2whatever.in \
${WRKSRC}/build
post-patch:
@${REINPLACE_CMD} -e 's|"/usr"|"${PREFIX}"| ; \
s|"/share/yodl"|"/share/${PORTNAME}-${PORTVERSION}"| ; \
s|"/share/man"|"/man"| ; \
s|"/share/doc/yodl"|"/share/doc/${PORTNAME}-${PORTVERSION}"| ; \
s|"/share/doc/yodl-doc"|"/share/doc/${PORTNAME}-${PORTVERSION}/doc"| ; \
s|"gcc"|"${CC}"|' \
${WRKSRC}/INSTALL.im
@${REINPLACE_CMD} -e 's|yodlconverters.1|yodlconverters.1.gz| ; \
s|".1"|".1.gz"|' \
${WRKSRC}/icmake/install
@${REINPLACE_CMD} -e 's|#!/usr/bin/icmake|#!${LOCALBASE}/bin/icmake| ; \
s|"-O2 -Wall"|"-Wall ${CFLAGS}"|' \
${WRKSRC}/build
@${REINPLACE_CMD} -e 's|sed |${LOCALBASE}/bin/gsed | ; \
s|getopt |${LOCALBASE}/bin/getopt |' \
${WRKSRC}/scripts/configreplacements \
${WRKSRC}/scripts/yodl2whatever.in \
${WRKSRC}/scripts/yodlstriproff \
${WRKSRC}/macros/rawmacros/repairs
do-build:
@cd ${WRKSRC} && ./build programs strip
@cd ${WRKSRC} && ./build macros
@cd ${WRKSRC} && ./build man
.if ${PORT_OPTIONS:MDOCS}
@cd ${WRKSRC} && ./build manual
.endif
do-install:
@cd ${WRKSRC} && ./build install programs ${STAGEDIR}
@cd ${WRKSRC} && ./build install macros ${STAGEDIR}
@cd ${WRKSRC} && ./build install man ${STAGEDIR}
.if ${PORT_OPTIONS:MDOCS}
@cd ${WRKSRC} && ./build install manual ${STAGEDIR}
@cd ${WRKSRC} && ./build install docs ${STAGEDIR}
.endif
.include <bsd.port.mk>