1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/graphics/cuttlefish/Makefile
Koop Mast 289883b11b Update ImageMagick to 6.9.10.14 [1]
* 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>
2018-11-10 19:57:07 +00:00

56 lines
1.6 KiB
Makefile

# Created by: Matthew Luckie <mjl@luckie.org.nz>
# $FreeBSD$
PORTNAME= cuttlefish
PORTVERSION= 1.3
PORTREVISION= 4
CATEGORIES= graphics geography
MASTER_SITES= http://www.caida.org/tools/visualization/cuttlefish/code/
MAINTAINER= ports@FreeBSD.org
COMMENT= Plots diurnal and geographical patterns of supplied data
RUN_DEPENDS+= p5-GD>=0:graphics/p5-GD \
convert:graphics/ImageMagick6 \
gifsicle:graphics/gifsicle
USES= perl5 shebangfix
USE_PERL5= run
NO_BUILD= yes
SHEBANG_FILES= bin/cuttlefish.pl
IMAGES= caida_logo.gif caida_logo_gray.gif \
japan-water-okinawa.jpg japan-water.jpg \
world-day.jpg world-water.jpg
EXAMPLES= japan-traces-small.config japan-traces.config \
nyxem-hosts-both.config \
witty-combined-small.config witty-combined.config
OPTIONS_DEFINE= EXAMPLES
post-patch:
@${REINPLACE_CMD} -e "s|../lib|../lib/cuttlefish|" \
${WRKSRC}/bin/cuttlefish.pl
.for f in ${EXAMPLES}
@${REINPLACE_CMD} -e "s|images|${PREFIX}/share/cuttlefish|" \
${WRKSRC}/configs/${f}
.endfor
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/cuttlefish.pl ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/cuttlefish
@${MKDIR} ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in Canvas.pm Control.pm Histogram.pm Image.pm Legend.pm Map.pm Util.pm
${INSTALL_DATA} ${WRKSRC}/lib/${f} ${STAGEDIR}${PREFIX}/lib/cuttlefish/${f}
.endfor
.for f in ${EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/configs/${f} ${STAGEDIR}${EXAMPLESDIR}/${f}
.endfor
.for f in ${IMAGES}
${INSTALL_DATA} ${WRKSRC}/images/${f} ${STAGEDIR}${DATADIR}/${f}
.endfor
.include <bsd.port.mk>