freebsd-ports/textproc/docbook2odf/Makefile
Tobias C. Berner 45526ecbee framework: Add new USES 'magick' for graphics/ImageMagick*
A new USES has been added to depend on ImageMagick.

	USES=magick

adds a LIB_DEPENDS on graphics/ImageMagick${IMAGEMAGICK_DEFAULT}.

If a specific version is required, use for example

	USES=magick:6        resp.     USES=magick:7

If only a build, run or test is required, use for example

	USES=magick:build    resp.     USES=magick:6,build,test

If a dependency on the nox11 flavor is required, use for example

	USES=magick:nox11    resp.     USES=magick:7,nox11,run,test

See magick.mk for more details on the available flags.

The tree has been completely converted to make use of this.

Approved by:	bapt
Differential Revision: https://reviews.freebsd.org/D32754
2021-12-11 14:50:53 +01:00

45 lines
1.3 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
PORTNAME= docbook2odf
PORTVERSION= 0.244
PORTREVISION= 1
CATEGORIES= textproc perl5
MASTER_SITES= http://open.comsultia.com/docbook2odf/dwn/
MAINTAINER= ports@FreeBSD.org
COMMENT= Convert docbook document to Oasis Open Document
LICENSE= GPLv2
LIB_DEPENDS= libsablot.so:textproc/sablotron \
libxslt.so:textproc/libxslt
RUN_DEPENDS= zip:archivers/zip \
p5-Archive-Zip>=0:archivers/p5-Archive-Zip
USES= desktop-file-utils magick:6,run perl5 shebangfix
SHEBANG_FILES= utils/maketests utils/${PORTNAME}
USE_PERL5= run
NO_BUILD= yes
PORTEXAMPLES= *
OPTIONS_DEFINE= EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|#!/usr/bin/perl|#!${PERL}|' \
${WRKSRC}/tests/tests/docbook-43.001.xml
@${FIND} ${WRKSRC} -name "*.bak" -delete -or -name "*.cvsignore" -delete
do-install:
${LN} -sf ${DATADIR}/utils/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "tests utils xsl" \
${STAGEDIR}${DATADIR})
${INSTALL_DATA} ${WRKSRC}/bindings/desktop/${PORTNAME}.desktop \
${STAGEDIR}${DESKTOPDIR}
${LN} -sf ${EXAMPLESDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1/
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>