pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add XyGrib 1.2.6.1 to pkgsrc-wip
Module Name: pkgsrc-wip
Committed By: Niclas Rosenvik <nros%NetBSD.org@localhost>
Pushed By: nros
Date: Mon Oct 28 09:34:11 2019 +0000
Changeset: 3d5bee3178e9cb88317fea13d91579421970cb91
Modified Files:
Makefile
Added Files:
xygrib/DESCR
xygrib/Makefile
xygrib/PLIST
xygrib/distinfo
xygrib/patches/patch-CMakeLists.txt
Log Message:
Add XyGrib 1.2.6.1 to pkgsrc-wip
XyGrib is visualizer of meteorologial data.
XyGrib is contiuation of zyGrib avalable in misc/zyGrib
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3d5bee3178e9cb88317fea13d91579421970cb91
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
xygrib/DESCR | 2 +
xygrib/Makefile | 38 ++++++++++
xygrib/PLIST | 135 ++++++++++++++++++++++++++++++++++++
xygrib/distinfo | 7 ++
xygrib/patches/patch-CMakeLists.txt | 106 ++++++++++++++++++++++++++++
6 files changed, 289 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index b538581d4e..09b05f0f6d 100644
--- a/Makefile
+++ b/Makefile
@@ -5095,6 +5095,7 @@ SUBDIR+= xwax
SUBDIR+= xwelltris
SUBDIR+= xwindiff
SUBDIR+= xxhash
+SUBDIR+= xygrib
SUBDIR+= yabar
SUBDIR+= yad
SUBDIR+= yafray
diff --git a/xygrib/DESCR b/xygrib/DESCR
new file mode 100644
index 0000000000..cbfe15ae23
--- /dev/null
+++ b/xygrib/DESCR
@@ -0,0 +1,2 @@
+XyGrib is visualizer of meteorologial data.
+XyGrib is contiuation of zyGrib avalable in misc/zyGrib
diff --git a/xygrib/Makefile b/xygrib/Makefile
new file mode 100644
index 0000000000..d844d818ec
--- /dev/null
+++ b/xygrib/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD$
+
+GITHUB_PROJECT= XyGrib
+GITHUB_TAG= v${PKGVERSION_NOREV}
+DISTNAME= XyGrib-1.2.6.1
+CATEGORIES= misc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=opengribs/}
+DIST_SUBDIR= ${GITHUB_PROJECT}
+EXTRACT_USING= bsdtar
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://opengribs.org/
+COMMENT= GRIB file viewer for weather data
+LICENSE= gnu-gpl-v3
+
+USE_LANGUAGES+= c c++
+USE_CMAKE= yes
+
+INSTALLATION_DIRS+=share/applications
+INSTALLATION_DIRS+=share/pixmaps
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/debian/xygrib.desktop \
+ ${DESTDIR}${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/debian/xygrib.png \
+ ${DESTDIR}${PREFIX}/share/pixmaps
+
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../geography/libnova/buildlink3.mk"
+.include "../../geography/proj/buildlink3.mk"
+.include "../../graphics/openjpeg/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.include "../../x11/qt5-qttools/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/xygrib/PLIST b/xygrib/PLIST
new file mode 100644
index 0000000000..25f278ccb7
--- /dev/null
+++ b/xygrib/PLIST
@@ -0,0 +1,135 @@
+@comment $NetBSD$
+bin/XyGrib
+share/XyGrib/data/colors/colors_binary.txt
+share/XyGrib/data/colors/colors_cape_jkg.txt
+share/XyGrib/data/colors/colors_cin_jkg.txt
+share/XyGrib/data/colors/colors_clouds_black_pc.txt
+share/XyGrib/data/colors/colors_clouds_white_pc.txt
+share/XyGrib/data/colors/colors_current_kts.txt
+share/XyGrib/data/colors/colors_deltatemp_celcius.txt
+share/XyGrib/data/colors/colors_gust_kts.txt
+share/XyGrib/data/colors/colors_humidrel_pc.original.txt
+share/XyGrib/data/colors/colors_humidrel_pc.txt
+share/XyGrib/data/colors/colors_rain_mmh - Copy.txt
+share/XyGrib/data/colors/colors_rain_mmh.txt
+share/XyGrib/data/colors/colors_reflect_dbz.txt
+share/XyGrib/data/colors/colors_snowdepth_m - Copy.txt
+share/XyGrib/data/colors/colors_snowdepth_m.txt
+share/XyGrib/data/colors/colors_temp_celcius.txt
+share/XyGrib/data/colors/colors_thetae_celcius.txt
+share/XyGrib/data/colors/colors_thetae_celcius_1.txt
+share/XyGrib/data/colors/colors_waveheight_m.txt
+share/XyGrib/data/colors/colors_whitecap_prb.txt
+share/XyGrib/data/colors/colors_whitecap_prb.txt.colors
+share/XyGrib/data/colors/colors_wind_jet_kts.txt
+share/XyGrib/data/colors/colors_wind_kts.txt
+share/XyGrib/data/fonts/liberation-fonts/AUTHORS
+share/XyGrib/data/fonts/liberation-fonts/COPYING
+share/XyGrib/data/fonts/liberation-fonts/ChangeLog
+share/XyGrib/data/fonts/liberation-fonts/LiberationMono-Bold.ttf
+share/XyGrib/data/fonts/liberation-fonts/LiberationMono-BoldItalic.ttf
+share/XyGrib/data/fonts/liberation-fonts/LiberationMono-Italic.ttf
+share/XyGrib/data/fonts/liberation-fonts/LiberationMono-Regular.ttf
+share/XyGrib/data/fonts/liberation-fonts/LiberationSans-Bold.ttf
+share/XyGrib/data/fonts/liberation-fonts/LiberationSans-BoldItalic.ttf
+share/XyGrib/data/fonts/liberation-fonts/LiberationSans-Italic.ttf
+share/XyGrib/data/fonts/liberation-fonts/LiberationSans-Regular.ttf
+share/XyGrib/data/fonts/liberation-fonts/LiberationSerif-Bold.ttf
+share/XyGrib/data/fonts/liberation-fonts/LiberationSerif-BoldItalic.ttf
+share/XyGrib/data/fonts/liberation-fonts/LiberationSerif-Italic.ttf
+share/XyGrib/data/fonts/liberation-fonts/LiberationSerif-Regular.ttf
+share/XyGrib/data/fonts/liberation-fonts/License.txt
+share/XyGrib/data/fonts/liberation-fonts/README
+share/XyGrib/data/gis/cities_10k-more.txt.gz
+share/XyGrib/data/gis/cities_3k-10k.txt.gz
+share/XyGrib/data/gis/countries_en.txt.gz
+share/XyGrib/data/gis/countries_fr.txt.gz
+share/XyGrib/data/gis/states_en.txt.gz
+share/XyGrib/data/gis/stations_metar.txt.gz
+share/XyGrib/data/img/1leftarrow.png
+share/XyGrib/data/img/1rightarrow.png
+share/XyGrib/data/img/2leftarrow.png
+share/XyGrib/data/img/2rightarrow.png
+share/XyGrib/data/img/Thumbs.db
+share/XyGrib/data/img/airport.png
+share/XyGrib/data/img/anim.png
+share/XyGrib/data/img/back.png
+share/XyGrib/data/img/connect_no.png
+share/XyGrib/data/img/cursor-cross.png
+share/XyGrib/data/img/cursor-openhand.png
+share/XyGrib/data/img/down.png
+share/XyGrib/data/img/drapeau_ar.png
+share/XyGrib/data/img/drapeau_cz.png
+share/XyGrib/data/img/drapeau_de.png
+share/XyGrib/data/img/drapeau_en.png
+share/XyGrib/data/img/drapeau_es.png
+share/XyGrib/data/img/drapeau_fi.png
+share/XyGrib/data/img/drapeau_fr.png
+share/XyGrib/data/img/drapeau_gr.png
+share/XyGrib/data/img/drapeau_he.png
+share/XyGrib/data/img/drapeau_it.png
+share/XyGrib/data/img/drapeau_nl.png
+share/XyGrib/data/img/drapeau_pt.png
+share/XyGrib/data/img/drapeau_ru.png
+share/XyGrib/data/img/exit.png
+share/XyGrib/data/img/fileclose.png
+share/XyGrib/data/img/fileopen.png
+share/XyGrib/data/img/forward.png
+share/XyGrib/data/img/help.png
+share/XyGrib/data/img/info.png
+share/XyGrib/data/img/media-floppy.png
+share/XyGrib/data/img/meteoblue.png
+share/XyGrib/data/img/network.png
+share/XyGrib/data/img/player_eject.png
+share/XyGrib/data/img/player_end.png
+share/XyGrib/data/img/player_fwd.png
+share/XyGrib/data/img/player_pause.png
+share/XyGrib/data/img/player_play.png
+share/XyGrib/data/img/player_playlist.png
+share/XyGrib/data/img/player_rew.png
+share/XyGrib/data/img/player_start.png
+share/XyGrib/data/img/player_stop.png
+share/XyGrib/data/img/printer.png
+share/XyGrib/data/img/reload.png
+share/XyGrib/data/img/resource.rc
+share/XyGrib/data/img/spreadsheet.png
+share/XyGrib/data/img/time_icon.png
+share/XyGrib/data/img/up.png
+share/XyGrib/data/img/viewmag+.png
+share/XyGrib/data/img/viewmag-.png
+share/XyGrib/data/img/viewmag1.png
+share/XyGrib/data/img/viewmagfit.png
+share/XyGrib/data/img/xyGrib.icns
+share/XyGrib/data/img/xyGrib_32.ico
+share/XyGrib/data/img/xyGrib_32.xpm
+share/XyGrib/data/maps/gshhs/README.gshhs
+share/XyGrib/data/maps/gshhs/README.gshhs.rangs
+share/XyGrib/data/maps/gshhs/gshhs_2.rim
+share/XyGrib/data/maps/gshhs/gshhs_3.rim
+share/XyGrib/data/maps/gshhs/gshhs_4.rim
+share/XyGrib/data/maps/gshhs/rangs_2.cat
+share/XyGrib/data/maps/gshhs/rangs_2.cel
+share/XyGrib/data/maps/gshhs/rangs_3.cat
+share/XyGrib/data/maps/gshhs/rangs_3.cel
+share/XyGrib/data/maps/gshhs/rangs_4.cat
+share/XyGrib/data/maps/gshhs/rangs_4.cel
+share/XyGrib/data/maps/gshhs/wdb_borders_c.b
+share/XyGrib/data/maps/gshhs/wdb_borders_i.b
+share/XyGrib/data/maps/gshhs/wdb_borders_l.b
+share/XyGrib/data/maps/gshhs/wdb_rivers_c.b
+share/XyGrib/data/maps/gshhs/wdb_rivers_i.b
+share/XyGrib/data/maps/gshhs/wdb_rivers_l.b
+share/XyGrib/data/tr/xyGrib_ar.qm
+share/XyGrib/data/tr/xyGrib_cz.qm
+share/XyGrib/data/tr/xyGrib_de.qm
+share/XyGrib/data/tr/xyGrib_es.qm
+share/XyGrib/data/tr/xyGrib_fi.qm
+share/XyGrib/data/tr/xyGrib_fr.qm
+share/XyGrib/data/tr/xyGrib_gr.qm
+share/XyGrib/data/tr/xyGrib_he.qm
+share/XyGrib/data/tr/xyGrib_it.qm
+share/XyGrib/data/tr/xyGrib_nl.qm
+share/XyGrib/data/tr/xyGrib_pt.qm
+share/XyGrib/data/tr/xyGrib_ru.qm
+share/applications/xygrib.desktop
+share/pixmaps/xygrib.png
diff --git a/xygrib/distinfo b/xygrib/distinfo
new file mode 100644
index 0000000000..c6f9fa6bbf
--- /dev/null
+++ b/xygrib/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (XyGrib/XyGrib-1.2.6.1.tar.gz) = 8e3431ed6a5ef114d77ac57029129a26a381f696
+RMD160 (XyGrib/XyGrib-1.2.6.1.tar.gz) = 876e8a53b492b2e2ea0572e5b0cd31a2c04f505a
+SHA512 (XyGrib/XyGrib-1.2.6.1.tar.gz) = 33c8a0fc6791dbe3342524555dc90362560fed08b4e2a624111167d92e2c71890dcb5bfe7e85d7df2ffc11a382ea5afa484cdab84c29935d4be2e673c76a371c
+Size (XyGrib/XyGrib-1.2.6.1.tar.gz) = 14704088 bytes
+SHA1 (patch-CMakeLists.txt) = ea6de2db6b49091b58fee82d23ef9998630910aa
diff --git a/xygrib/patches/patch-CMakeLists.txt b/xygrib/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..fd657e2a08
--- /dev/null
+++ b/xygrib/patches/patch-CMakeLists.txt
@@ -0,0 +1,106 @@
+$NetBSD$
+* sanitze the names and dirs to search for libs and headers files
+* use PATH_SUFFIX fix to find openjpeg
+* install bins and data into the right directory
+* don't install cmake files in the translation directory
+--- CMakeLists.txt.orig 2019-07-05 09:01:01.000000000 +0000
++++ CMakeLists.txt
+@@ -54,71 +54,23 @@ find_package(Qt5Xml CONFIG REQUIRED)
+ include_directories(${Qt5Xml_INCLUDE_DIRS})
+
+ find_library(LIBNOVA_LIBRARY
+- NAMES "libnova.a" "libnova.so"
+- PATHS
+- $ENV{EXTERNLIBS}/lib
+- ~/Library/Frameworks
+- /Library/Frameworks
+- /usr/local
+- /usr
+- /sw
+- /opt/local
+- /opt/csw
+- /opt
+- PATH_SUFFIXES lib lib64 lib/x86_64-linux-gnu lib/i386-linux-gnu lib/armhf-linux-gnu lib/arm64-linux-gnu
++ NAMES "nova" "libnova"
+ REQUIRED
+ )
+ find_path(LIBNOVA_INCLUDE_DIR
+- NAMES "libnova/libnova.h" "libnova.h"
+- PATHS
+- $ENV{EXTERNLIBS}/include
+- ~/Library/Frameworks/include
+- /Library/Frameworks/include
+- /usr/local/include
+- /usr/include
+- /sw/include # Fink
+- /opt/local/include # DarwinPorts
+- /opt/csw/include # Blastwave
+- /opt/include
++ NAMES "libnova/libnova.h"
+ REQUIRED
+ )
+ include_directories(${LIBNOVA_INCLUDE_DIR})
+
+ #find_package(OpenJPEG REQUIRED)
+ find_library(OPENJPEG_LIBRARIES
+-# NAMES "libopenjp2.a" "libopenjp2.so" "libopenjpeg.so.2" "libopenjp2.dll.a"
+- NAMES "libopenjp2.so.7" "libopenjp2.so" "libopenjp2.a" "libopenjpeg.so.2" "libopenjp2.dll.a"
+- PATHS
+- $ENV{EXTERNLIBS}/lib
+- ~/Library/Frameworks
+- /Library/Frameworks
+- /usr/local
+- /usr
+- /sw
+- /opt/local
+- /opt/csw
+- /opt
+- PATH_SUFFIXES lib lib64
++ NAMES "openjp2" "libopenjp2"
+ REQUIRED
+ )
+ find_path(OPENJPEG_INCLUDE_DIR
+ NAMES "openjpeg.h"
+- PATHS
+- $ENV{EXTERNLIBS}/include
+- ~/Library/Frameworks/include
+- /Library/Frameworks/include
+- /usr/local/include
+- /usr/local/include/openjpeg-2.3
+- /usr/include/openjpeg-2.3
+- /usr/local/include/openjpeg-2.1
+- /usr/include/openjpeg-2.1
+- /usr/local/include/openjpeg-2.2
+- /usr/include/openjpeg-2.2
+- /usr/include
+- /sw/include # Fink
+- /opt/local/include # DarwinPorts
+- /opt/csw/include # Blastwave
+- /opt/include
++ PATH_SUFFIXES openjpeg-2.3
+ REQUIRED
+ )
+ include_directories(${OPENJPEG_INCLUDE_DIR})
+@@ -222,8 +174,9 @@ set(PREFIX_PKGDATA ".")
+ endif()
+ if(UNIX AND NOT APPLE)
+ # This is not exactly a good idea on linux - the code should be changed so that the executable would go to /usr/local/bin and the data to /usr/local/share/XyGrib
+-set(PREFIX_BIN ${PROJECT_NAME})
+-set(PREFIX_PKGDATA ${PROJECT_NAME})
++include(GNUInstallDirs)
++set(PREFIX_BIN ${CMAKE_INSTALL_FULL_BINDIR})
++set(PREFIX_PKGDATA ${CMAKE_INSTALL_FULL_DATAROOTDIR}/${PROJECT_NAME})
+ endif()
+
+ add_subdirectory(src)
+@@ -241,4 +194,9 @@ set_target_properties(${PROJECT_NAME} PR
+ set_target_properties(${PROJECT_NAME} PROPERTIES MACOSX_BUNDLE_BUNDLE_VERSION "${XYGRIB_VERSION}")
+ set_target_properties(${PROJECT_NAME} PROPERTIES MACOSX_BUNDLE_COPYRIGHT "${PROJECT_NAME} Authors")
+ # Install data
+-install(DIRECTORY data DESTINATION ${PREFIX_PKGDATA})
++install(DIRECTORY data DESTINATION ${PREFIX_PKGDATA}
++ PATTERN "CMakeFiles" EXCLUDE
++ PATTERN "CMakeLists.txt" EXCLUDE
++ PATTERN "Makefile" EXCLUDE
++ PATTERN "cmake_install.cmake" EXCLUDE
++ PATTERN "*.ts" EXCLUDE)
Home |
Main Index |
Thread Index |
Old Index