1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/www/gpx2map/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

50 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= gpx2map
PORTVERSION= 0.2
PORTREVISION= 1
CATEGORIES= www
MAINTAINER= koue@chaosophia.net
COMMENT= Put GPX track on Google Map or OpenStreetMap
LICENSE= GPLv3
RUN_DEPENDS= p5-XML-Twig>=0:textproc/p5-XML-Twig \
p5-Template-Toolkit>=0:www/p5-Template-Toolkit \
p5-Geo-Distance>=0:math/p5-Geo-Distance
USE_GITHUB= yes
GH_ACCOUNT= sd2k9
USES= shebangfix perl5
SHEBANG_FILES= gpx2map
NO_ARCH= yes
NO_BUILD= yes
DATADIR= ${PREFIX}/share/${PORTNAME}
PLIST_FILES= bin/gpx2map \
share/gpx2map/gpx2map.google.template \
share/gpx2map/gpx2map.osm.template
OPTIONS_DEFINE= GNUPLOT
GNUPLOT_DESC= Enable draw track profiles
GNUPLOT_RUN_DEPENDS= p5-Chart-Gnuplot>=0:graphics/p5-Chart-Gnuplot \
convert:graphics/ImageMagick6
post-patch:
@${REINPLACE_CMD} -e "s|gpx2map.google.template|${DATADIR}/gpx2map.google.template|" \
-e "s|gpx2map.osm.template|${DATADIR}/gpx2map.osm.template|" \
-e "s|.FindBin::RealBin/.opts{'map_template_google'}|${DATADIR}/gpx2map.google.template|" \
-e "s|.FindBin::RealBin/.opts{'map_template_osm'}|${DATADIR}/gpx2map.osm.template|" \
${WRKSRC}/gpx2map
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/gpx2map ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/gpx2map.google.template ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/gpx2map.osm.template ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>