mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-08 12:01:56 +00:00
48f4591035
- Clean up the Makefile. - Follow some upstream recommendations (--with-data-packaging=archive, --disable-renaming, -DICU_NO_USER_DATA_OVERRIDE). - Patch makefiles to install static libraries with INSTALL_DATA so they aren't stripped. - Patch config/mh-bsd-gcc to sync with config/mh-linux-gcc. - Fix endianness detection in ICU. The code wanted to use BYTE_ORDER defined in machine/endian.h, but this isn't visible because ICU is compiled with _XOPEN_SOURCE. Patch the code to use _BYTE_ORDER instead. - Compile ICU with C++11 compiler to enable move constructors. - Patch ICU to fix a problem with atomics in the case of a C++11 compiler without C++11 header <atomic> (like Clang on FreeBSD 9). - Bump all ports that depend on it due to library version change. - Add USES=compiler:c++0x to some ports that pick up -std=c++0x from ICU pkgconfig files. - Add USES=compiler:c++11-lib to graphics/libcdr01 because it also needs a C++11 runtime library now. Add this to all ports that depend on it so their executables load the right libstdc++.so on FreeBSD 9. PR: 205120 Exp-run by: antoine Approved by: portmgr (antoine)
90 lines
2.4 KiB
Makefile
90 lines
2.4 KiB
Makefile
# Created by: David Le Brun <david@trucs.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= viking
|
|
PORTVERSION= 1.6.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= astro
|
|
MASTER_SITES= SF/${PORTNAME}/
|
|
|
|
MAINTAINER= koalative@gmail.com
|
|
COMMENT= Program to manage GPS data (tracks, waypoints, etc.)
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libcurl.so:ftp/curl \
|
|
libexpat.so:textproc/expat2 \
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
libfreetype.so:print/freetype2 \
|
|
libgexiv2.so:graphics/gexiv2 \
|
|
libpcre.so:devel/pcre \
|
|
libpng.so:graphics/png \
|
|
libpthread-stubs.so:devel/libpthread-stubs
|
|
RUN_DEPENDS= gpsbabel:astro/gpsbabel
|
|
|
|
USES= compiler:c++11-lib 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
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib -pthread
|
|
|
|
PORTDOCS= AUTHORS ChangeLog NEWS README
|
|
|
|
OPTIONS_DEFINE= DOCS GEOCACHES NLS GEOTAG GPSD MAPNIK MBTILES
|
|
OPTIONS_DEFAULT= GEOTAG GPSD JOSM MAPNIK MBTILES
|
|
|
|
OPTIONS_MULTI= OpenStreetMap-Editor
|
|
OPTIONS_MULTI_OpenStreetMap-Editor= JOSM MERKAATOR
|
|
|
|
GEOCACHES_DESC= GeoCaches Acquire support
|
|
GEOTAG_DESC= Geotag support
|
|
GPSD_DESC= Realtime GPS tracking
|
|
MAPNIK_DESC= Mapnik support
|
|
MBTILES_DESC= MBTiles support
|
|
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:graphics/libexif
|
|
GEOTAG_CONFIGURE_ENABLE=geotag
|
|
|
|
GPSD_LIB_DEPENDS= libgpsd.so:astro/gpsd
|
|
GPSD_CONFIGURE_ENABLE= realtime-gps-tracking
|
|
|
|
MAPNIK_LIB_DEPENDS= libmapnik.so:graphics/mapnik
|
|
MAPNIK_CONFIGURE_ENABLE= mapnik
|
|
|
|
MBTILES_USES= sqlite
|
|
MBTILES_CONFIGURE_ENABLE= mbtiles
|
|
|
|
JOSM_RUN_DEPENDS= josm:astro/josm
|
|
MERKAATOR_RUN_DEPENDS= merkaartor: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/
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|