pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libwebm: add pkg-config file
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Mon Jul 13 16:28:20 2026 +0200
Changeset: 0dbc503cc1865a658502a42a69d1de80cc75fca1
Modified Files:
libwebm/Makefile
libwebm/PLIST
Added Files:
libwebm/files/libwebm.pc
Log Message:
libwebm: add pkg-config file
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0dbc503cc1865a658502a42a69d1de80cc75fca1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libwebm/Makefile | 18 ++++++++++++++++++
libwebm/PLIST | 1 +
libwebm/files/libwebm.pc | 10 ++++++++++
3 files changed, 29 insertions(+)
diffs:
diff --git a/libwebm/Makefile b/libwebm/Makefile
index 7ececec72a..99d2ff3eee 100644
--- a/libwebm/Makefile
+++ b/libwebm/Makefile
@@ -1,6 +1,7 @@
# $NetBSD$
DISTNAME= libwebm-1.0.0.32
+PKGREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GITHUB:=webmproject/}
GITHUB_TAG= ${DISTNAME}
@@ -15,5 +16,22 @@ USE_LANGUAGES= c++
CMAKE_CONFIGURE_ARGS+= -DBUILD_SHARED_LIBS=ON
+SUBST_CLASSES+= pc
+SUBST_FILES.pc+= libwebm.pc
+SUBST_VARS.pc+= PREFIX
+SUBST_SED.pc+= -e "s,@PACKAGE_VERSION@,${PKGVERSION_NOREV},"
+SUBST_STAGE.pc= pre-configure
+SUBST_MESSAGE.pc= Filling in details into pkg-config file.
+
+PKGCONFIG_OVERRIDE+= libwebm.pc
+
+INSTALLATION_DIRS+= lib/pkgconfig
+
+post-extract:
+ cp ${FILESDIR}/libwebm.pc ${WRKSRC}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/libwebm.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
+
.include "../../devel/cmake/build.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/libwebm/PLIST b/libwebm/PLIST
index 306b1b5d54..c893712700 100644
--- a/libwebm/PLIST
+++ b/libwebm/PLIST
@@ -17,3 +17,4 @@ include/webm/reader.h
include/webm/status.h
include/webm/webm_parser.h
lib/libwebm.so
+lib/pkgconfig/libwebm.pc
diff --git a/libwebm/files/libwebm.pc b/libwebm/files/libwebm.pc
new file mode 100644
index 0000000000..71ae7d79a5
--- /dev/null
+++ b/libwebm/files/libwebm.pc
@@ -0,0 +1,10 @@
+prefix=@PREFIX@
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+Name: libwebm
+Description: WebM is an open, royalty-free, media file format designed for the web
+URL: https://chromium.googlesource.com/webm/libwebm
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lwebm
+Cflags: -I${includedir}/webm
Home |
Main Index |
Thread Index |
Old Index