1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/astro/viking/Makefile
Rusmir Dusko 6c1337a389 - Update to 1.5.1, announce message is here:
http://sourceforge.net/apps/mediawiki/viking/index.php?title=Version-1.5.1

- USES tar:bzip2 instead of USE_BZIP2=yes
- Remove TODO from DOCS
- Add GEOCACHES Option and conditional pkg-message
- Add OPTIONS_MULTI=OpenStreetMap-Editor with JOSM and MERKAATOR
- Add MERKAATOR to default Options
- Break lines around 80 characters
2014-03-18 00:15:20 +00:00

85 lines
2.3 KiB
Makefile

# Created by: David Le Brun <david@trucs.org>
# $FreeBSD$
PORTNAME= viking
PORTVERSION= 1.5.1
CATEGORIES= astro
MASTER_SITES= SF/${PORTNAME}/
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Program to manage GPS data (tracks, waypoints, etc.)
LICENSE= GPLv2
BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
LIB_DEPENDS= libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs \
libpcre.so:${PORTSDIR}/devel/pcre \
libcurl.so:${PORTSDIR}/ftp/curl \
libpng15.so:${PORTSDIR}/graphics/png \
libfreetype.so:${PORTSDIR}/print/freetype2 \
libexpat.so:${PORTSDIR}/textproc/expat2 \
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
RUN_DEPENDS= gpsbabel:${PORTSDIR}/astro/gpsbabel
USES= gmake iconv desktop-file-utils perl5 pkgconfig tar:bzip2
USE_XORG= pixman x11 xau xcb xcomposite xcursor xdamage xdmcp xext \
xfixes xi xinerama xrandr xrender
USE_GNOME= cairo gnomedocutils gtk20
USE_PERL5= run
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
INSTALLS_OMF= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -pthread
PORTDOCS= AUTHORS ChangeLog NEWS README
OPTIONS_DEFINE= DOCS GEOCACHES NLS GEOTAG GPSD
OPTIONS_DEFAULT= GEOTAG GPSD MERKAATOR
OPTIONS_MULTI= OpenStreetMap-Editor
OPTIONS_MULTI_OpenStreetMap-Editor= JOSM MERKAATOR
GEOCACHES_DESC= GeoCaches Acquire support
GEOTAG_DESC= Geotag support
GPSD_DESC= Realtime GPS tracking
JOSM_DESC= Edit OpenStreetMap via JOSM
MERKAATOR_DESC= Edit OpenStreetMap via Merkaartor
OPTIONS_SUB= yes
GEOCACHES_CONFIGURE_ENABLE= geocaches
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
GEOTAG_LIB_DEPENDS= libexif.so:${PORTSDIR}/graphics/libexif
GEOTAG_CONFIGURE_ENABLE=geotag
GPSD_LIB_DEPENDS= libgpsd.so:${PORTSDIR}/astro/gpsd
GPSD_CONFIGURE_ENABLE= realtime-gps-tracking
JOSM_RUN_DEPENDS= josm:${PORTSDIR}/astro/josm
MERKAATOR_RUN_DEPENDS= merkaartor:${PORTSDIR}/astro/merkaartor
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGEOCACHES}
SUB_FILES+= pkg-message
.endif
post-patch:
@${REINPLACE_CMD} -e '/^AM_CFLAGS/s| -g | |' ${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e 's|Science;|Education;Science;|' \
${WRKSRC}/src/viking.desktop.in
post-install:
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>