pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
portmidi: cleanup and dependency for audio/alsa-lib on linux
Module Name: pkgsrc-wip
Committed By: Manuel Kuklinski <mk%asdfghasdfgh.de@localhost>
Pushed By: mk
Date: Fri Nov 10 17:49:12 2023 +0000
Changeset: 919678c3d0352b92a696486a9156e560872c43bd
Modified Files:
portmidi/Makefile
portmidi/buildlink3.mk
Added Files:
portmidi/options.mk
Log Message:
portmidi: cleanup and dependency for audio/alsa-lib on linux
added options.mk to check for linux; have to further look into other
dependencies on OS' than Linux
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=919678c3d0352b92a696486a9156e560872c43bd
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
portmidi/Makefile | 7 ++++++-
portmidi/buildlink3.mk | 2 +-
portmidi/options.mk | 19 +++++++++++++++++++
3 files changed, 26 insertions(+), 2 deletions(-)
diffs:
diff --git a/portmidi/Makefile b/portmidi/Makefile
index 99266c8fdb..7bb67be2a4 100644
--- a/portmidi/Makefile
+++ b/portmidi/Makefile
@@ -1,9 +1,10 @@
# $NetBSD$
-#GITHUB_TAG= refs/tags/v${PKGVERSION_NOREV}
DISTNAME= portmidi-2.0.4
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_GITHUB:=PortMidi/}
+GITHUB_PROJECT= portmidi
+GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= https://github.com/PortMidi/portmidi/
@@ -15,5 +16,9 @@ USE_LANGUAGES= c c++
PKGCONFIG_OVERRIDE+= packaging/portmidi.pc.in
+.include "../../mk/bsd.prefs.mk"
+
+.include "options.mk"
+
.include "../../devel/cmake/build.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/portmidi/buildlink3.mk b/portmidi/buildlink3.mk
index 0b5a0ba31c..66ebdd3f43 100644
--- a/portmidi/buildlink3.mk
+++ b/portmidi/buildlink3.mk
@@ -17,7 +17,7 @@ PORTMIDI_BUILDLINK3_MK:=
# XXX BUILDLINK_DEPMETHOD.portmidi?= build
BUILDLINK_API_DEPENDS.portmidi+= portmidi>=2.0.4
-BUILDLINK_PKGSRCDIR.portmidi?= ../../wip/portmidi
+BUILDLINK_PKGSRCDIR.portmidi?= ../../wip/portmidi
.endif # PORTMIDI_BUILDLINK3_MK
BUILDLINK_TREE+= -portmidi
diff --git a/portmidi/options.mk b/portmidi/options.mk
new file mode 100644
index 0000000000..e069ef58d0
--- /dev/null
+++ b/portmidi/options.mk
@@ -0,0 +1,19 @@
+PKG_OPTIONS_VAR= PKG_OPTIONS.csound6
+
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.portmidi
+PKG_SUPPORTED_OPTIONS= alsa
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${OPSYS} == "Linux"
+PKG_SUPPORTED_OPTIONS+= alsa
+PKG_SUGGESTED_OPTIONS+= alsa
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= alsa
+.if !empty(PKG_OPTIONS:Malsa)
+.include "../../audio/alsa-lib/buildlink3.mk"
+.endif
Home |
Main Index |
Thread Index |
Old Index