pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pcaudiolib: Import pcaudiolib-1.2 as wip/pcaudiolib
Module Name: pkgsrc-wip
Committed By: adr <adr%sdf.org@localhost>
Pushed By: adr
Date: Sun Nov 13 16:15:56 2022 +0000
Changeset: 9efa05a08f7bbca38f4901e16205f698888aaa0d
Modified Files:
Makefile
Added Files:
pcaudiolib/DESCR
pcaudiolib/Makefile
pcaudiolib/PLIST
pcaudiolib/buildlink3.mk
pcaudiolib/distinfo
pcaudiolib/options.mk
Log Message:
pcaudiolib: Import pcaudiolib-1.2 as wip/pcaudiolib
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9efa05a08f7bbca38f4901e16205f698888aaa0d
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
pcaudiolib/DESCR | 3 +++
pcaudiolib/Makefile | 29 +++++++++++++++++++++++++++++
pcaudiolib/PLIST | 3 +++
pcaudiolib/buildlink3.mk | 26 ++++++++++++++++++++++++++
pcaudiolib/distinfo | 5 +++++
pcaudiolib/options.mk | 24 ++++++++++++++++++++++++
7 files changed, 91 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index b35011b62c..1d6f949793 100644
--- a/Makefile
+++ b/Makefile
@@ -2820,6 +2820,7 @@ SUBDIR+= oww-nox11
SUBDIR+= oxygen
SUBDIR+= oysttyer
SUBDIR+= ozymandns
+SUBDIR+= pcaudiolib
SUBDIR+= p2kmoto
SUBDIR+= p3nfs
SUBDIR+= p4
diff --git a/pcaudiolib/DESCR b/pcaudiolib/DESCR
new file mode 100644
index 0000000000..7402b3f50d
--- /dev/null
+++ b/pcaudiolib/DESCR
@@ -0,0 +1,3 @@
+The Portable C Audio Library (pcaudiolib) provides a C API to
+different audio devices. It supports: ALSA, CoreAudio (Mac OS),
+OSS and PulseAudio.
diff --git a/pcaudiolib/Makefile b/pcaudiolib/Makefile
new file mode 100644
index 0000000000..14a09c7d20
--- /dev/null
+++ b/pcaudiolib/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD$
+
+GITHUB_PROJECT= pcaudiolib
+DISTNAME= pcaudiolib-1.2
+CATEGORIES= audio
+MASTER_SITES= ${MASTER_SITE_GITHUB:=espeak-ng/}
+GITHUB_RELEASE= 1.2
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/espeak-ng/pcaudiolib/
+COMMENT= Provides a C API to different audio devices
+LICENSE= gnu-gpl-v3
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_LANGUAGES= c c++
+USE_TOOLS+= pkg-config
+
+.include "../../mk/oss.buildlink3.mk"
+.if ${OSS_TYPE} != "none"
+SUBST_CLASSES+= oss
+SUBST_STAGE.oss= pre-configure
+SUBST_FILES.oss= src/oss.c
+SUBST_SED.oss= -e s,/dev/dsp,${DEVOSSAUDIO},g
+SUBST_MESSAGE.oss= Fixing hardcoded audio device.
+.endif
+
+.include "options.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/pcaudiolib/PLIST b/pcaudiolib/PLIST
new file mode 100644
index 0000000000..9d055b8422
--- /dev/null
+++ b/pcaudiolib/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+include/pcaudiolib/audio.h
+lib/libpcaudio.la
diff --git a/pcaudiolib/buildlink3.mk b/pcaudiolib/buildlink3.mk
new file mode 100644
index 0000000000..fe1a44ebf8
--- /dev/null
+++ b/pcaudiolib/buildlink3.mk
@@ -0,0 +1,26 @@
+# $NetBSD: buildlink3.mk,v 1.19 2022/09/11 12:51:04 wiz Exp $
+
+BUILDLINK_TREE+= pcaudiolib
+
+.if !defined(PCAUDIOLIB_BUILDLINK3_MK)
+PCAUDIOLIB_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.pcaudiolib+= pcaudiolib>=1.2
+BUILDLINK_ABI_DEPENDS.pcaudiolib+= pcaudiolib>=1.2
+BUILDLINK_PKGSRCDIR.pcaudiolib?= ../../audio/pcaudiolib
+BUILDLINK_INCDIRS.pcaudiolib?= include/pcaudiolib
+
+pkgbase:= pcaudiolib
+.include "../../mk/pkg-build-options.mk"
+
+.if ${PKG_BUILD_OPTIONS.pcaudiolib:Malsa}
+. include "../../audio/alsa-lib/buildlink3.mk"
+.endif
+
+.if ${PKG_BUILD_OPTIONS.pcaudiolib:Mpulseaudio}
+. include "../../audio/pulseaudio/buildlink3.mk"
+.endif
+
+.endif # PCAUDIOLIB_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -pcaudiolib
diff --git a/pcaudiolib/distinfo b/pcaudiolib/distinfo
new file mode 100644
index 0000000000..35211f886b
--- /dev/null
+++ b/pcaudiolib/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (pcaudiolib-1.2.tar.gz) = 11dc27e944fb2edba51c0b4f1da100e7279e44e24821941e3fdd222c85b2da94
+SHA512 (pcaudiolib-1.2.tar.gz) = 803e8c36646f780b9e9a98600092af366ad47ecf9cb447b9b6c82b75eb316ee65674832fc0cbfa56ee4d508ae1d0f69890f5885817e6df3e2ecef54571b936d6
+Size (pcaudiolib-1.2.tar.gz) = 377066 bytes
diff --git a/pcaudiolib/options.mk b/pcaudiolib/options.mk
new file mode 100644
index 0000000000..7b350f6798
--- /dev/null
+++ b/pcaudiolib/options.mk
@@ -0,0 +1,24 @@
+# $NetBSD: $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.pcaudiolib
+
+PKG_SUPPORTED_OPTIONS+= alsa pulseaudio
+PKG_SUGGESTED_OPTIONS.Linux+= alsa
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
+
+.if !empty(PKG_OPTIONS:Malsa)
+. include "../../audio/alsa-lib/buildlink3.mk"
+CONFIGURE_ARGS+= --with-alsa
+.else
+CONFIGURE_ARGS+= --without-alsa
+.endif
+
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+. include "../../audio/pulseaudio/buildlink3.mk"
+CONFIGURE_ARGS+= --with-pulseaudio
+.else
+CONFIGURE_ARGS+= --without-pulseaudio
+.endif
Home |
Main Index |
Thread Index |
Old Index