pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
sds: Add support for pkg-config
Module Name: pkgsrc-wip
Committed By: Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By: micha
Date: Fri Jul 16 18:16:58 2021 +0200
Changeset: 8c0c1cded965a96ff5d72833dc9d1efe1d924ea9
Modified Files:
sds/Makefile
sds/PLIST
Added Files:
sds/files/libsds-2.pc.in
Log Message:
sds: Add support for pkg-config
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8c0c1cded965a96ff5d72833dc9d1efe1d924ea9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
sds/Makefile | 11 +++++++++++
sds/PLIST | 1 +
sds/files/libsds-2.pc.in | 12 ++++++++++++
3 files changed, 24 insertions(+)
diffs:
diff --git a/sds/Makefile b/sds/Makefile
index fc29f1cf35..2a18d0b5a9 100644
--- a/sds/Makefile
+++ b/sds/Makefile
@@ -15,5 +15,16 @@ USE_LIBTOOL= yes
TEST_TARGET= test
+INSTALLATION_DIRS= lib/pkgconfig
+
+post-extract:
+ ${CP} ${FILESDIR}/libsds-2.pc.in ${WRKDIR}
+ cd ${WRKDIR} && ${SED} -e "s,@prefix@,${PREFIX},g" \
+ -e "s,@release@,${PKGVERSION_NOREV},g" <libsds-2.pc.in >libsds-2.pc
+
+post-install:
+ cd ${WRKDIR} && ${INSTALL_DATA} libsds-2.pc \
+ ${DESTDIR}${PREFIX}/lib/pkgconfig/libsds-2.pc
+
.include "../../wip/mk/git-package.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/sds/PLIST b/sds/PLIST
index 74d1421d24..fa57741fba 100644
--- a/sds/PLIST
+++ b/sds/PLIST
@@ -1,4 +1,5 @@
@comment $NetBSD$
include/sds.h
lib/libsds.la
+lib/pkgconfig/libsds-2.pc
share/doc/sds/README.md
diff --git a/sds/files/libsds-2.pc.in b/sds/files/libsds-2.pc.in
new file mode 100644
index 0000000000..eafa69b8cc
--- /dev/null
+++ b/sds/files/libsds-2.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+includedir=${prefix}/include
+libdir=${prefix}/lib
+bindir=${prefix}/bin
+
+Name: SDS
+Description: Simple dynamic strings library for C
+URL: https://github.com/antirez/sds/
+Version: @release@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lsds
Home |
Main Index |
Thread Index |
Old Index