diff options
author | bouyer <bouyer> | 2016-06-28 16:57:51 +0000 |
---|---|---|
committer | bouyer <bouyer> | 2016-06-28 16:57:51 +0000 |
commit | a85a625abf48d716eb182dc4689a3c8abc961197 (patch) | |
tree | a7ab5d7da903ac976f9681b19920b92f122f9904 | |
parent | 07b1edc489d1d44e46a8ac34fab93aa1b50e7920 (diff) | |
download | pkgsrc-a85a625abf48d716eb182dc4689a3c8abc961197.tar.gz |
Build fixes:
- even if python bindings are not selected, it is needed as a tool
for build
- during build, it wants to run an executable from the build dir,
which fails to find a not-yet-installed shared librarie.
Fixed by calling it with appropriate LD_LIBRARY_PATH set
- fix PLIST
no PKGREVISION bump as it didn't build before.
-rw-r--r-- | geography/qgis/PLIST | 4 | ||||
-rw-r--r-- | geography/qgis/PLIST.python | 4 | ||||
-rw-r--r-- | geography/qgis/distinfo | 3 | ||||
-rw-r--r-- | geography/qgis/options.mk | 4 | ||||
-rw-r--r-- | geography/qgis/patches/patch-src_crssync_CMakeLists.txt | 14 |
5 files changed, 23 insertions, 6 deletions
diff --git a/geography/qgis/PLIST b/geography/qgis/PLIST index a19d45c6dae..94d7a13ca8a 100644 --- a/geography/qgis/PLIST +++ b/geography/qgis/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.5 2016/02/02 04:33:57 dbj Exp $ +@comment $NetBSD: PLIST,v 1.6 2016/06/28 16:57:51 bouyer Exp $ bin/qbrowser bin/qgis bin/qgis_bench @@ -618,8 +618,6 @@ lib/libqgis_gui.so.${PKGVERSION} lib/libqgis_gui.so lib/libqgis_networkanalysis.so.${PKGVERSION} lib/libqgis_networkanalysis.so -lib/libqgispython.so.${PKGVERSION} -lib/libqgispython.so lib/qgis/crssync lib/qgis/plugins/libbasicauthmethod.so lib/qgis/plugins/libcoordinatecaptureplugin.so diff --git a/geography/qgis/PLIST.python b/geography/qgis/PLIST.python index 6c8b7903b1d..b19c82605d6 100644 --- a/geography/qgis/PLIST.python +++ b/geography/qgis/PLIST.python @@ -1,4 +1,6 @@ -@comment $NetBSD: PLIST.python,v 1.1 2016/02/02 04:33:57 dbj Exp $ +@comment $NetBSD: PLIST.python,v 1.2 2016/06/28 16:57:51 bouyer Exp $ +lib/libqgispython.so.${PKGVERSION} +lib/libqgispython.so share/qgis/python/console/__init__.py share/qgis/python/console/console.py share/qgis/python/console/console_compile_apis.py diff --git a/geography/qgis/distinfo b/geography/qgis/distinfo index fb7849bcc2b..1139027c827 100644 --- a/geography/qgis/distinfo +++ b/geography/qgis/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2016/02/02 04:33:57 dbj Exp $ +$NetBSD: distinfo,v 1.9 2016/06/28 16:57:51 bouyer Exp $ SHA1 (qgis-2.12.3.tar.bz2) = b2b8b6bda01ebec7ccbc8ab41d0e00fa6be217be RMD160 (qgis-2.12.3.tar.bz2) = 6b3350e978d27397020b01983ceaa00104d1bd17 @@ -13,3 +13,4 @@ SHA1 (patch-mac_CMakeLists.txt) = 2468c0a629738ce78cccb784395eb1f41049cc73 SHA1 (patch-mac_cmake_1qt.cmake.in) = d74f7201849ef6dd83f39251e466eb04c791c0e6 SHA1 (patch-src_core_CMakeLists.txt) = 4c504717fbce05984e9ac5867d407f9dcfa11d25 SHA1 (patch-src_core_qgsapplication.cpp) = f6e81f86220c6bf85b55ee2f5fd8d6c7667ec385 +SHA1 (patch-src_crssync_CMakeLists.txt) = 49b551cd2231704dac0872b7c8893b5bdda3e0ad diff --git a/geography/qgis/options.mk b/geography/qgis/options.mk index 8a5d815a3d5..40fcd59c7fc 100644 --- a/geography/qgis/options.mk +++ b/geography/qgis/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.5 2016/02/02 04:33:57 dbj Exp $ +# $NetBSD: options.mk,v 1.6 2016/06/28 16:57:51 bouyer Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.qgis PKG_SUPPORTED_OPTIONS= python @@ -12,6 +12,8 @@ PKG_SUPPORTED_OPTIONS= python .if empty(PKG_OPTIONS:Mpython) CMAKE_ARGS+= -DWITH_BINDINGS:BOOL=FALSE +PYTHON_FOR_BUILD_ONLY= YES +.include "../../lang/python/application.mk" .else CMAKE_ARGS+= -DWITH_BINDINGS:BOOL=TRUE CMAKE_ARGS+= -DSIP_BINARY_PATH:PATH=${BUILDLINK_PREFIX.py-sip}/bin diff --git a/geography/qgis/patches/patch-src_crssync_CMakeLists.txt b/geography/qgis/patches/patch-src_crssync_CMakeLists.txt new file mode 100644 index 00000000000..e09f9bbdf22 --- /dev/null +++ b/geography/qgis/patches/patch-src_crssync_CMakeLists.txt @@ -0,0 +1,14 @@ +$NetBSD: patch-src_crssync_CMakeLists.txt,v 1.1 2016/06/28 16:57:51 bouyer Exp $ +Fix executing dynamically-linked executable from the build directory + +--- src/crssync/CMakeLists.txt.orig 2016-06-26 16:02:58.000000000 +0200 ++++ src/crssync/CMakeLists.txt 2016-06-26 16:04:09.000000000 +0200 +@@ -22,7 +22,7 @@ + ) + ELSE(MSVC AND NOT USING_NMAKE) + ADD_CUSTOM_TARGET(synccrsdb +- COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/crssync ++ COMMAND env LD_LIBRARY_PATH=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/../lib ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/crssync + DEPENDS crssync + ) + ENDIF(MSVC AND NOT USING_NMAKE) |