pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/libduktape libduktape: Add a .pc file, copied fro...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b26d0a775f5a
branches: trunk
changeset: 455118:b26d0a775f5a
user: nia <nia%pkgsrc.org@localhost>
date: Mon Jun 28 12:10:38 2021 +0000
description:
libduktape: Add a .pc file, copied from various Linux distributions
Needed to build polkit with duktape.
Bump PKGREVISION.
diffstat:
lang/libduktape/Makefile | 14 +++++++++++---
lang/libduktape/PLIST | 3 ++-
lang/libduktape/files/Makefile | 3 ++-
lang/libduktape/files/duktape.pc | 10 ++++++++++
4 files changed, 25 insertions(+), 5 deletions(-)
diffs (70 lines):
diff -r a26e6947f9eb -r b26d0a775f5a lang/libduktape/Makefile
--- a/lang/libduktape/Makefile Mon Jun 28 11:52:41 2021 +0000
+++ b/lang/libduktape/Makefile Mon Jun 28 12:10:38 2021 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2020/11/26 15:31:31 nia Exp $
+# $NetBSD: Makefile,v 1.7 2021/06/28 12:10:38 nia Exp $
DISTNAME= duktape-2.6.0
PKGNAME= lib${DISTNAME}
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://duktape.org/
EXTRACT_SUFX= .tar.xz
@@ -14,7 +15,14 @@
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_LIBTOOL= yes
-do-configure:
- cp ${FILESDIR}/Makefile ${WRKSRC}
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths+= duktape.pc
+SUBST_VARS.paths+= PREFIX
+SUBST_VARS.paths+= COMPILER_RPATH_FLAG
+
+post-patch:
+ ${CP} ${FILESDIR}/Makefile ${WRKSRC}
+ ${CP} ${FILESDIR}/duktape.pc ${WRKSRC}
.include "../../mk/bsd.pkg.mk"
diff -r a26e6947f9eb -r b26d0a775f5a lang/libduktape/PLIST
--- a/lang/libduktape/PLIST Mon Jun 28 11:52:41 2021 +0000
+++ b/lang/libduktape/PLIST Mon Jun 28 12:10:38 2021 +0000
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1 2016/05/05 03:57:26 agc Exp $
+@comment $NetBSD: PLIST,v 1.2 2021/06/28 12:10:38 nia Exp $
include/duk_config.h
include/duktape.h
lib/libduktape.la
+lib/pkgconfig/duktape.pc
diff -r a26e6947f9eb -r b26d0a775f5a lang/libduktape/files/Makefile
--- a/lang/libduktape/files/Makefile Mon Jun 28 11:52:41 2021 +0000
+++ b/lang/libduktape/files/Makefile Mon Jun 28 12:10:38 2021 +0000
@@ -24,10 +24,11 @@
${LIBTOOL} --mode=compile --tag=CC ${CC} ${CFLAGS} -c duktape.c
install: $(LIBS)
- mkdir -p ${DESTDIR}$(LIBDIR) ${DESTDIR}$(INCDIR)
+ mkdir -p ${DESTDIR}$(LIBDIR)/pkgconfig ${DESTDIR}$(INCDIR)
${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} ${LIBS:.a=.la} ${DESTDIR}${PREFIX}/lib
$(BSD_INSTALL_DATA) duktape.h ${DESTDIR}$(INCDIR)
$(BSD_INSTALL_DATA) duk_config.h ${DESTDIR}$(INCDIR)
+ $(BSD_INSTALL_DATA) duktape.pc ${DESTDIR}$(LIBDIR)/pkgconfig
clean:
rm -f $(OBJS) $(LIBS)
diff -r a26e6947f9eb -r b26d0a775f5a lang/libduktape/files/duktape.pc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/libduktape/files/duktape.pc Mon Jun 28 12:10:38 2021 +0000
@@ -0,0 +1,10 @@
+prefix=@PREFIX@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: duktape
+Description: Embeddable Javascript engine
+Version: 2.6.0
+Libs: @COMPILER_RPATH_FLAG@${libdir} -L${libdir} -lduktape
+Cflags: -I${includedir}
Home |
Main Index |
Thread Index |
Old Index