pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/geography/gdal-lib



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Apr 20 06:31:37 UTC 2026

Modified Files:
        pkgsrc/geography/gdal-lib: Makefile

Log Message:
gdal-lib: add rpath to gdal-config output

Fixes build of dependencies.

Fix some pkglint while here.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.197 -r1.198 pkgsrc/geography/gdal-lib/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/geography/gdal-lib/Makefile
diff -u pkgsrc/geography/gdal-lib/Makefile:1.197 pkgsrc/geography/gdal-lib/Makefile:1.198
--- pkgsrc/geography/gdal-lib/Makefile:1.197    Wed Mar 25 23:16:39 2026
+++ pkgsrc/geography/gdal-lib/Makefile  Mon Apr 20 06:31:37 2026
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.197 2026/03/25 23:16:39 gdt Exp $
+# $NetBSD: Makefile,v 1.198 2026/04/20 06:31:37 wiz Exp $
 
 .include "../../geography/gdal-lib/Makefile.common"
 PKGNAME=       ${DISTNAME:S/gdal/gdal-lib/}
-#PKGREVISION=  0
+PKGREVISION=   1
 
 COMMENT=       Translator library for raster geospatial data formats
 
@@ -22,6 +22,7 @@ USE_PKGLOCALEDIR=     yes
 
 # To find out what can be set in the cmake build.
 # \todo Hoist to cmake/build.mk.
+.PHONY: cmake-options
 cmake-options:
        (cd ${WRKSRC}/cmake-pkgsrc-build && cmake -L ..) > OPTIONS
 
@@ -74,6 +75,14 @@ CMAKE_CONFIGURE_ARGS+=       -DNetCDF_DIR=${BU
 #CMAKE_CONFIGURE_ARGS+=        -Dxerces-inc=${BUILDLINK_PREFIX.xerces-c}/include
 #CMAKE_CONFIGURE_ARGS+=        -Dxerces-lib=-L${BUILDLINK_PREFIX.xerces-c}/lib\ -lxerces-c
 
+SUBST_CLASSES+=                rpath
+SUBST_SED.rpath+=      -E
+SUBST_SED.rpath+=      -e 's!(CONFIG_LIBS=.)!\1${COMPILER_RPATH_FLAG}${PREFIX}/lib !'
+SUBST_SED.rpath+=      -e 's!(CONFIG_DEP_LIBS=.)!\1${COMPILER_RPATH_FLAG}${PREFIX}/lib !'
+SUBST_STAGE.rpath=     pre-configure
+SUBST_FILES.rpath+=    cmake/template/gdal-config.in
+SUBST_MESSAGE.rpath=   Fixing rpath in config script.
+
 .include "options.mk"
 
 CHECK_PORTABILITY_SKIP+=       mkbindist.sh



Home | Main Index | Thread Index | Old Index