From 6cb63a6ab2f41ea5c62d5bd531921c3b3533062b Mon Sep 17 00:00:00 2001 From: landry Date: Sat, 23 Oct 2010 15:40:19 +0000 Subject: [PATCH] Import viking-0.9.96: Viking is a free/open source program to manage GPS data. You can import and plot tracks and waypoints, show Terraserver/OpenStreetMap maps under it, add coordinate lines, make new tracks and waypoints, hide different things, etc. It can also be used as an OpenStreetMap editor. ok jasper@ ajacoutot@ --- geo/viking/Makefile | 42 +++++++++++++++++++++++++ geo/viking/distinfo | 5 +++ geo/viking/patches/patch-src_gpspoint_c | 16 ++++++++++ geo/viking/pkg/DESCR | 4 +++ geo/viking/pkg/PLIST | 42 +++++++++++++++++++++++++ 5 files changed, 109 insertions(+) create mode 100644 geo/viking/Makefile create mode 100644 geo/viking/distinfo create mode 100644 geo/viking/patches/patch-src_gpspoint_c create mode 100644 geo/viking/pkg/DESCR create mode 100644 geo/viking/pkg/PLIST diff --git a/geo/viking/Makefile b/geo/viking/Makefile new file mode 100644 index 00000000000..bd862a5d9d3 --- /dev/null +++ b/geo/viking/Makefile @@ -0,0 +1,42 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2010/10/23 15:40:19 landry Exp $ + +COMMENT = GPS track manager + +DISTNAME = viking-0.9.96 + +CATEGORIES = geo x11 + +HOMEPAGE = http://viking.sourceforge.net/ +MAINTAINER = Landry Breuil + +# GPLv2 +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=viking/} + +MODULES = devel/gettext x11/gnome + +CONFIGURE_STYLE = gnu +DESKTOP_FILES = Yes +MODGNOME_HELP_FILES = Yes + +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib -pthread" + +LIB_DEPENDS = ::misc/gpsd \ + ::net/curl \ + ::devel/libidn \ + ::x11/gtk+2 + +WANTLIB = gps curl idn gdk-x11-2.0 gtk-x11-2.0 gdk_pixbuf-2.0 +WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes +WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 c cairo crypto expat +WANTLIB += fontconfig freetype gio-2.0 glib-2.0 gmodule-2.0 +WANTLIB += gobject-2.0 gthread-2.0 m pango-1.0 pangocairo-1.0 +WANTLIB += pangoft2-1.0 pixman-1 png pthread pthread-stubs ssl +WANTLIB += GL Xxf86vm drm xcb-shm xcb xcb-render z + +.include diff --git a/geo/viking/distinfo b/geo/viking/distinfo new file mode 100644 index 00000000000..ffabd889134 --- /dev/null +++ b/geo/viking/distinfo @@ -0,0 +1,5 @@ +MD5 (viking-0.9.96.tar.gz) = o/s0bE13csuHtyJlOyNH7w== +RMD160 (viking-0.9.96.tar.gz) = hisiR5x0P7yyBij8Z2uTUhXr/Os= +SHA1 (viking-0.9.96.tar.gz) = SYu1Pg6PIFedBV0VSl3VgYd1sGA= +SHA256 (viking-0.9.96.tar.gz) = gw03VK/57DUIbjKbuc6slC+FbSNbQH127IatrPzWxSo= +SIZE (viking-0.9.96.tar.gz) = 948611 diff --git a/geo/viking/patches/patch-src_gpspoint_c b/geo/viking/patches/patch-src_gpspoint_c new file mode 100644 index 00000000000..a2c9b63cb50 --- /dev/null +++ b/geo/viking/patches/patch-src_gpspoint_c @@ -0,0 +1,16 @@ +$OpenBSD: patch-src_gpspoint_c,v 1.1.1.1 2010/10/23 15:40:19 landry Exp $ +taken from pkgsrc/geography/viking/patch-aa +http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=40695 +--- src/gpspoint.c.orig Thu Jan 14 21:19:52 2010 ++++ src/gpspoint.c Sat Oct 23 11:27:25 2010 +@@ -81,8 +81,8 @@ static gdouble line_altitude = VIK_DEFAULT_ALTITUDE; + static gboolean line_visible = TRUE; + + static gboolean line_extended = FALSE; +-static gdouble line_speed = NAN; +-static gdouble line_course = NAN; ++static gdouble line_speed = __builtin_nanf(""); ++static gdouble line_course = __builtin_nanf(""); + static gint line_sat = 0; + static gint line_fix = 0; + /* other possible properties go here */ diff --git a/geo/viking/pkg/DESCR b/geo/viking/pkg/DESCR new file mode 100644 index 00000000000..b29c3ddafc2 --- /dev/null +++ b/geo/viking/pkg/DESCR @@ -0,0 +1,4 @@ +Viking is a free/open source program to manage GPS data. You can import +and plot tracks and waypoints, show Terraserver/OpenStreetMap maps +under it, add coordinate lines, make new tracks and waypoints, hide +different things, etc. It can also be used as an OpenStreetMap editor. diff --git a/geo/viking/pkg/PLIST b/geo/viking/pkg/PLIST new file mode 100644 index 00000000000..39e5ad638c1 --- /dev/null +++ b/geo/viking/pkg/PLIST @@ -0,0 +1,42 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2010/10/23 15:40:19 landry Exp $ +@bin bin/viking +bin/viking-remote +share/applications/viking.desktop +share/gnome/help/viking/ +share/gnome/help/viking/C/ +share/gnome/help/viking/C/figures/ +share/gnome/help/viking/C/figures/properties_degree.png +share/gnome/help/viking/C/figures/properties_units.png +share/gnome/help/viking/C/legal.xml +share/gnome/help/viking/C/viking.xml +share/icons/hicolor/48x48/ +share/icons/hicolor/48x48/apps/ +share/icons/hicolor/48x48/apps/viking.png +share/locale/cs/LC_MESSAGES/viking.mo +share/locale/da/LC_MESSAGES/viking.mo +share/locale/de/LC_MESSAGES/viking.mo +share/locale/el/LC_MESSAGES/viking.mo +share/locale/en_GB/LC_MESSAGES/viking.mo +share/locale/es/LC_MESSAGES/viking.mo +share/locale/fr/LC_MESSAGES/viking.mo +share/locale/he/LC_MESSAGES/viking.mo +share/locale/id/LC_MESSAGES/viking.mo +share/locale/it/LC_MESSAGES/viking.mo +share/locale/ja/LC_MESSAGES/viking.mo +share/locale/lt/LC_MESSAGES/viking.mo +share/locale/lv/LC_MESSAGES/viking.mo +share/locale/nb/LC_MESSAGES/viking.mo +share/locale/nl/LC_MESSAGES/viking.mo +share/locale/pl/LC_MESSAGES/viking.mo +share/locale/pt_BR/LC_MESSAGES/viking.mo +share/locale/ru/LC_MESSAGES/viking.mo +share/locale/sl/LC_MESSAGES/viking.mo +share/locale/sv/LC_MESSAGES/viking.mo +share/locale/zh_CN/LC_MESSAGES/viking.mo +share/locale/zh_TW/LC_MESSAGES/viking.mo +share/omf/viking/ +share/omf/viking/viking-C.omf +@exec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true +@unexec-delete %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true +@exec %D/bin/update-desktop-database +@unexec-delete %D/bin/update-desktop-database