Date: Mon, 7 Feb 2022 21:58:42 GMT From: Charlie Li <vishwin@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: dd1d30077348 - main - lang/duktape-lib: add pkgconf file Message-ID: <202202072158.217Lwgud031410@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by vishwin: URL: https://cgit.FreeBSD.org/ports/commit/?id=dd1d30077348a5ffdad451e3477aab6a5bd15e9d commit dd1d30077348a5ffdad451e3477aab6a5bd15e9d Author: Piotr Pawel Stefaniak <pstef@freebsd.org> AuthorDate: 2022-02-06 20:34:59 +0000 Commit: Charlie Li <vishwin@FreeBSD.org> CommitDate: 2022-02-07 21:58:00 +0000 lang/duktape-lib: add pkgconf file This is needed for sysutils/polkit's duktape support, but also makes it easier for other consumers to use the library. While here, cosmetic cleanups. PR: 254274 Reviewed by: diizzy Tested by: vishwin Approved by: Alfonso S. Siciliano <alfix86[at]gmail[dot]com> (maintainer), fluffy (mentor) --- lang/duktape-lib/Makefile | 10 +++++++++- lang/duktape-lib/files/duktape.pc.in | 11 +++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/lang/duktape-lib/Makefile b/lang/duktape-lib/Makefile index 560705f37f22..fef2b37372be 100644 --- a/lang/duktape-lib/Makefile +++ b/lang/duktape-lib/Makefile @@ -1,5 +1,6 @@ PORTNAME= duktape DISTVERSION= 2.6.0 +PORTREVISION= 1 CATEGORIES= lang devel MASTER_SITES= https://duktape.org/ PKGNAMESUFFIX= -lib @@ -22,7 +23,13 @@ PLIST_FILES= include/duk_config.h \ include/duktape.h \ lib/libduktape.so \ lib/libduktape.so.${MAJOR} \ - lib/libduktape.so.${MAJOR}.${MINOR} + lib/libduktape.so.${MAJOR}.${MINOR} \ + libdata/pkgconfig/duktape.pc + +SUB_FILES= duktape.pc +SUB_LIST= PORTVERSION=${DISTVERSION} \ + DESCRIPTION="${COMMENT}" \ + URL="${MASTER_SITES}" do-install: ${INSTALL_DATA} ${WRKSRC}/src/duktape.h ${STAGEDIR}${PREFIX}/include @@ -30,5 +37,6 @@ do-install: ${INSTALL_LIB} ${WRKSRC}/libduktape.so.${MAJOR}.${MINOR} ${STAGEDIR}${PREFIX}/lib ${RLN} ${STAGEDIR}${PREFIX}/lib/libduktape.so.${MAJOR}.${MINOR} ${STAGEDIR}${PREFIX}/lib/libduktape.so ${RLN} ${STAGEDIR}${PREFIX}/lib/libduktape.so.${MAJOR}.${MINOR} ${STAGEDIR}${PREFIX}/lib/libduktape.so.${MAJOR} + ${INSTALL_DATA} ${WRKDIR}/duktape.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig .include <bsd.port.mk> diff --git a/lang/duktape-lib/files/duktape.pc.in b/lang/duktape-lib/files/duktape.pc.in new file mode 100644 index 000000000000..bcdb0329a6cd --- /dev/null +++ b/lang/duktape-lib/files/duktape.pc.in @@ -0,0 +1,11 @@ +prefix=%%PREFIX%% +exec_prefix=%%PREFIX%% +libdir=%%PREFIX%%/lib +includedir=%%PREFIX%%/include + +Name: duktape +Description: %%DESCRIPTION%% +URL: %%URL%% +Version: %%PORTVERSION%% +Libs: -L${libdir} -lduktape +Cflags: -I${includedir}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202072158.217Lwgud031410>