blob: 6f3a07793eca98cc163cdf103035b3eba8a8d99c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Created by: David Le Brun <david@trucs.org>
# $FreeBSD$
PORTNAME= viking
PORTVERSION= 1.6
CATEGORIES= astro
MASTER_SITES= SF/${PORTNAME}/
MAINTAINER= koalative@gmail.com
COMMENT= Program to manage GPS data (tracks, waypoints, etc.)
LICENSE= GPLv2
BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
libexpat.so:${PORTSDIR}/textproc/expat2 \
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \
libfreetype.so:${PORTSDIR}/print/freetype2 \
libgexiv2.so:${PORTSDIR}/graphics/gexiv2 \
libmapnik.so:${PORTSDIR}/graphics/mapnik \
libpcre.so:${PORTSDIR}/devel/pcre \
libpng.so:${PORTSDIR}/graphics/png \
libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs
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 intlhack
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 JOSM
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
GEOCACHES_SUB_FILES= pkg-message
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
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>
|