pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/libduktape



Module Name:    pkgsrc
Committed By:   nia
Date:           Mon Jun 28 12:10:39 UTC 2021

Modified Files:
        pkgsrc/lang/libduktape: Makefile PLIST
        pkgsrc/lang/libduktape/files: Makefile
Added Files:
        pkgsrc/lang/libduktape/files: duktape.pc

Log Message:
libduktape: Add a .pc file, copied from various Linux distributions

Needed to build polkit with duktape.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/lang/libduktape/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/libduktape/PLIST
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/libduktape/files/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/libduktape/files/duktape.pc

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

Modified files:

Index: pkgsrc/lang/libduktape/Makefile
diff -u pkgsrc/lang/libduktape/Makefile:1.6 pkgsrc/lang/libduktape/Makefile:1.7
--- pkgsrc/lang/libduktape/Makefile:1.6 Thu Nov 26 15:31:31 2020
+++ pkgsrc/lang/libduktape/Makefile     Mon Jun 28 12:10:38 2021
@@ -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 @@ LICENSE=     mit
 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"

Index: pkgsrc/lang/libduktape/PLIST
diff -u pkgsrc/lang/libduktape/PLIST:1.1 pkgsrc/lang/libduktape/PLIST:1.2
--- pkgsrc/lang/libduktape/PLIST:1.1    Thu May  5 03:57:26 2016
+++ pkgsrc/lang/libduktape/PLIST        Mon Jun 28 12:10:38 2021
@@ -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

Index: pkgsrc/lang/libduktape/files/Makefile
diff -u pkgsrc/lang/libduktape/files/Makefile:1.1 pkgsrc/lang/libduktape/files/Makefile:1.2
--- pkgsrc/lang/libduktape/files/Makefile:1.1   Thu May  5 03:57:26 2016
+++ pkgsrc/lang/libduktape/files/Makefile       Mon Jun 28 12:10:38 2021
@@ -24,10 +24,11 @@ ${OBJS}: duktape.c duktape.h duk_config.
        ${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)

Added files:

Index: pkgsrc/lang/libduktape/files/duktape.pc
diff -u /dev/null pkgsrc/lang/libduktape/files/duktape.pc:1.1
--- /dev/null   Mon Jun 28 12:10:39 2021
+++ pkgsrc/lang/libduktape/files/duktape.pc     Mon Jun 28 12:10:38 2021
@@ -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