mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-20 08:27:15 +00:00
289883b11b
* Add PKGNAMESUFFIX and rename the directory. This was done to show that IM6 is not the "main" version. But still fully supported by upstream. * Convert a number of options to optionhelpers. * Add option for ISO/IEC 23008-12:2017 HEIF suport * Add comment to pkg-descr explaining IM6's "legacy" tag. * Add comment to the patch-config_policy.xml file why it still needed. Please note that IM7 is not a drop in replacement due to library API and command arguments changes. And as a result ports need to decide for themself which version to use. Chase these changes in all the ports that using IM6. PR: 225102 (based on, only the version update) [1] Submitted by: Pascal Christen <pascal.christen@hostpoint.ch>
82 lines
2.1 KiB
Makefile
82 lines
2.1 KiB
Makefile
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bins
|
|
PORTVERSION= 1.1.29
|
|
PORTREVISION= 6
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://download.gna.org/bins/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Tool to generate HTML photo albums with XML support
|
|
|
|
RUN_DEPENDS= \
|
|
p5-HTML-Parser>=0:www/p5-HTML-Parser \
|
|
convert:graphics/ImageMagick6 \
|
|
p5-Text-Iconv>=0:converters/p5-Text-Iconv \
|
|
p5-Text-Unaccent>=0:textproc/p5-Text-Unaccent \
|
|
p5-TimeDate>=0:devel/p5-TimeDate \
|
|
p5-HTML-Clean>0:www/p5-HTML-Clean \
|
|
p5-HTML-Template>=0:www/p5-HTML-Template \
|
|
p5-IO-String>=0:devel/p5-IO-String \
|
|
p5-Image-Info>=0:graphics/p5-Image-Info \
|
|
p5-Image-Size>=0:graphics/p5-Image-Size \
|
|
p5-URI>=0:net/p5-URI \
|
|
p5-XML-Grove>=0:textproc/p5-XML-Grove \
|
|
p5-XML-Handler-YAWriter>=0:textproc/p5-XML-Handler-YAWriter \
|
|
p5-libxml>=0:textproc/p5-libxml
|
|
|
|
USES= tar:bzip2 perl5
|
|
USE_PERL5= run
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
# additional scripts
|
|
BINS_SCRIPTS= tools/bins_txt2xml
|
|
# doc file extension
|
|
DOC_EXTS= html sgml xml
|
|
|
|
OPTIONS_DEFINE= DOCS I18N
|
|
OPTIONS_DEFAULT=I18N
|
|
I18N_DESC= Enable internationalization support
|
|
|
|
post-patch::
|
|
# perl PREFIX safeness
|
|
@${FIND} ${WRKSRC} -type f | \
|
|
${XARGS} -n 10 -x ${REINPLACE_CMD} -E \
|
|
-e 's|/usr/bin/perl|${PERL}|'
|
|
# prefix safeness
|
|
@${REINPLACE_CMD} -E \
|
|
-e 's|(bins_edit=)".+"(.*)$$|\1"${PREFIX}/bin/bins_edit"\2|' \
|
|
${WRKSRC}/tools/bins_txt2xml
|
|
|
|
do-install:
|
|
@${SETENV} LOCALE=${PREFIX}/share/locale DESTDIR=${STAGEDIR} PREFIX=${PREFIX} RC=${PREFIX}/share/bins ${WRKSRC}/install.sh
|
|
|
|
.for file in ${BINS_SCRIPTS}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for ext in ${DOC_EXTS}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.${ext} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
##
|
|
## default for either pointyhat or unattended builds
|
|
##
|
|
.if defined(PACKAGE_BUILDING) || defined(BATCH)
|
|
post-patch::
|
|
${REINPLACE_CMD} -e 's,read dummy,,' ${WRKSRC}/install.sh
|
|
.endif
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-install.sh
|
|
|
|
# localization support
|
|
.if ${PORT_OPTIONS:MI18N}
|
|
RUN_DEPENDS+= p5-Locale-gettext>=0:devel/p5-Locale-gettext
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|