summaryrefslogtreecommitdiff
path: root/geography/gpsd
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2021-08-08 23:14:46 +0000
committergdt <gdt@pkgsrc.org>2021-08-08 23:14:46 +0000
commit74b53e40492bbd6f4513e10698c1d475c2050fa7 (patch)
tree0c7061130017ca139541afbc9f44031df1c46d09 /geography/gpsd
parent028a171a6ec080f1dd698e1a8ae6f5e2fe958814 (diff)
downloadpkgsrc-74b53e40492bbd6f4513e10698c1d475c2050fa7.tar.gz
gpsd: Cope with Apple thinking different about shlib extensions
Diffstat (limited to 'geography/gpsd')
-rw-r--r--geography/gpsd/Makefile11
-rw-r--r--geography/gpsd/PLIST14
2 files changed, 17 insertions, 8 deletions
diff --git a/geography/gpsd/Makefile b/geography/gpsd/Makefile
index 959830cd566..c9af8a89ea3 100644
--- a/geography/gpsd/Makefile
+++ b/geography/gpsd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.57 2021/08/08 15:20:14 gdt Exp $
+# $NetBSD: Makefile,v 1.58 2021/08/08 23:14:46 gdt Exp $
DISTNAME= gpsd-3.23
PKGREVISION= 1
@@ -73,6 +73,15 @@ do-test:
${SCONS_ARGS} \
check
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "Darwin"
+PLIST_SUBST+= PLIST_SO=
+PLIST_SUBST+= PLIST_DYLIB=.dylib
+.else
+PLIST_SUBST+= PLIST_SO=.so
+PLIST_SUBST+= PLIST_DYLIB=
+.endif
+
# \todo Consider not including this and using the pre-built man pages.
.include "../../lang/ruby/rubyversion.mk"
BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-asciidoctor>=2.0.0:../../textproc/ruby-asciidoctor
diff --git a/geography/gpsd/PLIST b/geography/gpsd/PLIST
index 1cd99593139..fb586c79208 100644
--- a/geography/gpsd/PLIST
+++ b/geography/gpsd/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.17 2021/08/08 15:36:22 gdt Exp $
+@comment $NetBSD: PLIST,v 1.18 2021/08/08 23:14:46 gdt Exp $
bin/cgps
bin/gegps
bin/gps2udp
@@ -24,12 +24,12 @@ bin/xgpsspeed
bin/zerk
include/gps.h
include/libgpsmm.h
-lib/libgps.so
-lib/libgps.so.29
-lib/libgps.so.29.0.0
-lib/libgpsdpacket.so
-lib/libgpsdpacket.so.29
-lib/libgpsdpacket.so.29.0.0
+lib/libgps${PLIST_SO}${PLIST_DYLIB}
+lib/libgps${PLIST_SO}.29${PLIST_DYLIB}
+lib/libgps${PLIST_SO}.29.0.0${PLIST_DYLIB}
+lib/libgpsdpacket${PLIST_SO}${PLIST_DYLIB}
+lib/libgpsdpacket${PLIST_SO}.29${PLIST_DYLIB}
+lib/libgpsdpacket${PLIST_SO}.29.0.0${PLIST_DYLIB}
lib/pkgconfig/libgps.pc
${PYSITELIB}/gps-${PKGVERSION}.egg-info
${PYSITELIB}/gps/__init__.py