Date: Mon, 12 Aug 2024 06:21:27 GMT From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: caf574aa4e5d - main - devel/linenoise: Add .pc file Message-ID: <202408120621.47C6LRJI073494@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=caf574aa4e5db9f2fff8fbd48c42b8b82d0258ea commit caf574aa4e5db9f2fff8fbd48c42b8b82d0258ea Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-08-12 02:45:49 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-08-12 06:21:25 +0000 devel/linenoise: Add .pc file PR: 280602 --- devel/linenoise/Makefile | 9 +++++++-- devel/linenoise/files/linenoise.pc.in | 10 ++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/devel/linenoise/Makefile b/devel/linenoise/Makefile index c6a15d42462c..9fab250abb1c 100644 --- a/devel/linenoise/Makefile +++ b/devel/linenoise/Makefile @@ -1,7 +1,7 @@ PORTNAME= linenoise DISTVERSION= 1.0-34 -PORTREVISION= 1 DISTVERSIONSUFFIX= -g93b2db9 +PORTREVISION= 2 CATEGORIES= devel MAINTAINER= yuri@FreeBSD.org @@ -17,7 +17,8 @@ USE_GITHUB= yes GH_ACCOUNT= antirez PLIST_FILES= include/linenoise.h \ - lib/liblinenoise.so + lib/liblinenoise.so \ + libdata/pkgconfig/linenoise.pc do-build: @cd ${WRKSRC} && \ @@ -32,6 +33,10 @@ do-build: do-install: ${INSTALL_DATA} ${WRKSRC}/linenoise.h ${STAGEDIR}${PREFIX}/include ${INSTALL_LIB} ${WRKSRC}/liblinenoise.so ${STAGEDIR}${PREFIX}/lib + ${SED} \ + -e 's|@prefix@|${PREFIX}|; s|@version@|${PORTVERSION}|' \ + < ${FILESDIR}/linenoise.pc.in \ + > ${STAGEDIR}${PREFIX}/libdata/pkgconfig/linenoise.pc do-test: @cd ${WRKSRC} && \ diff --git a/devel/linenoise/files/linenoise.pc.in b/devel/linenoise/files/linenoise.pc.in new file mode 100644 index 000000000000..5b25867ba491 --- /dev/null +++ b/devel/linenoise/files/linenoise.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: linenoise +Description: A minimal, zero-config, BSD licensed, readline replacement. +Version: @version@ +Libs: -L${libdir} -llinenoise +Cflags: -I${includedir}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408120621.47C6LRJI073494>