pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/ham/libmirisdr plist shared library handling (shlib-dy...
details: https://anonhg.NetBSD.org/pkgsrc/rev/491e807abc6c
branches: trunk
changeset: 645269:491e807abc6c
user: dbj <dbj%pkgsrc.org@localhost>
date: Mon Jan 26 06:58:56 2015 +0000
description:
plist shared library handling (shlib-dylib.awk, at least) only allows
numbers in shared library versions. Instead of "0.0git", use
PKGREVISION as the library patchlevel.
diffstat:
ham/libmirisdr/Makefile | 10 +++++++++-
ham/libmirisdr/PLIST | 4 ++--
2 files changed, 11 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r 769064f242ee -r 491e807abc6c ham/libmirisdr/Makefile
--- a/ham/libmirisdr/Makefile Mon Jan 26 06:57:14 2015 +0000
+++ b/ham/libmirisdr/Makefile Mon Jan 26 06:58:56 2015 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2015/01/26 06:56:43 dbj Exp $
+# $NetBSD: Makefile,v 1.3 2015/01/26 06:58:56 dbj Exp $
PKGNAME= libmirisdr-0.1
+PKGREVISION= 1
DISTNAME= libmirisdr-${VERSION}
VERSION= 59ba372
CATEGORIES= ham
@@ -18,5 +19,12 @@
# Suppress warning for developer
CMAKE_ARGS+= -Wno-dev
+PLIST_SUBST+= PKGREVISION=${PKGREVISION}
+SUBST_CLASSES+= patchlevel
+SUBST_STAGE.patchlevel= pre-configure
+SUBST_MESSAGE.patchlevel= Fixing library version patchlevel
+SUBST_FILES.patchlevel= CMakeLists.txt
+SUBST_SED.patchlevel= -e 's,\(VERSION_INFO_PATCH_VERSION\) git,\1 ${PKGREVISION},'
+
.include "../../devel/libusb1/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 769064f242ee -r 491e807abc6c ham/libmirisdr/PLIST
--- a/ham/libmirisdr/PLIST Mon Jan 26 06:57:14 2015 +0000
+++ b/ham/libmirisdr/PLIST Mon Jan 26 06:58:56 2015 +0000
@@ -1,9 +1,9 @@
-@comment $NetBSD: PLIST,v 1.1 2014/10/13 13:02:26 mef Exp $
+@comment $NetBSD: PLIST,v 1.2 2015/01/26 06:58:56 dbj Exp $
bin/miri_sdr
include/mirisdr.h
include/mirisdr_export.h
lib/libmirisdr.a
lib/libmirisdr.so
lib/libmirisdr.so.0
-lib/libmirisdr.so.0.0git
+lib/libmirisdr.so.0.0.${PKGREVISION}
lib/pkgconfig/libmirisdr.pc
Home |
Main Index |
Thread Index |
Old Index