pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add libmapper and py-libmapper version 2.1 to pkgsrc-wip



Module Name:	pkgsrc-wip
Committed By:	Niclas Rosenvik <nros%pkgsrc.org@localhost>
Pushed By:	nros
Date:		Mon Jan 3 10:40:49 2022 +0100
Changeset:	cc5e9660b565e75aee6acd9ce7fc6b6dc175044a

Modified Files:
	Makefile
Added Files:
	libmapper/DESCR
	libmapper/Makefile
	libmapper/Makefile.common
	libmapper/PLIST
	libmapper/buildlink3.mk
	libmapper/distinfo
	libmapper/patches/patch-configure
	py-libmapper/DESCR
	py-libmapper/Makefile
	py-libmapper/PLIST

Log Message:
Add libmapper and py-libmapper version 2.1 to pkgsrc-wip

Add libmapper version 2.1 to pkgsrc-wip
libmapper is a distributed signal
mapping framework.
py-libmapper are python bindings
for libmapper.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cc5e9660b565e75aee6acd9ce7fc6b6dc175044a

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                          |  2 ++
 libmapper/DESCR                   |  1 +
 libmapper/Makefile                | 14 ++++++++++++++
 libmapper/Makefile.common         | 24 ++++++++++++++++++++++++
 libmapper/PLIST                   | 11 +++++++++++
 libmapper/buildlink3.mk           | 14 ++++++++++++++
 libmapper/distinfo                |  6 ++++++
 libmapper/patches/patch-configure | 37 +++++++++++++++++++++++++++++++++++++
 py-libmapper/DESCR                |  1 +
 py-libmapper/Makefile             | 21 +++++++++++++++++++++
 py-libmapper/PLIST                |  4 ++++
 11 files changed, 135 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 988aee439f..dc2da5d36d 100644
--- a/Makefile
+++ b/Makefile
@@ -2120,6 +2120,7 @@ SUBDIR+=	liblas
 SUBDIR+=	liblingoteach
 SUBDIR+=	libltc
 SUBDIR+=	libm4ri
+SUBDIR+=	libmapper
 SUBDIR+=	libmirisdr-git
 SUBDIR+=	libmobi-git
 SUBDIR+=	libmpack
@@ -4015,6 +4016,7 @@ SUBDIR+=	py-libclang-py3
 SUBDIR+=	py-libgit2-glib
 SUBDIR+=	py-liblarch
 SUBDIR+=	py-liblzma
+SUBDIR+=	py-libmapper
 SUBDIR+=	py-libmpdclient2
 SUBDIR+=	py-libopensync-plugin
 SUBDIR+=	py-libqutrub
diff --git a/libmapper/DESCR b/libmapper/DESCR
new file mode 100644
index 0000000000..1b406686d9
--- /dev/null
+++ b/libmapper/DESCR
@@ -0,0 +1 @@
+Distributed signal mapping framework.
diff --git a/libmapper/Makefile b/libmapper/Makefile
new file mode 100644
index 0000000000..271ed26034
--- /dev/null
+++ b/libmapper/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD$
+
+.include "Makefile.common"
+
+COMMENT=		Distributed signal mapping framework
+
+CONFIGURE_ARGS+=	--disable-swig
+
+PKGCONFIG_OVERRIDE+=	libmapper.pc.in
+
+.include "../../audio/liblo/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libmapper/Makefile.common b/libmapper/Makefile.common
new file mode 100644
index 0000000000..e204fc9aa8
--- /dev/null
+++ b/libmapper/Makefile.common
@@ -0,0 +1,24 @@
+# $NetBSD$
+# used by wip/libmapper/Makefile
+# used by wip/py-libmapper/Makefile
+
+GITHUB_PROJECT=	libmapper
+DISTNAME=	libmapper-2.1
+CATEGORIES=	audio net
+MASTER_SITES=	${MASTER_SITE_GITHUB:=libmapper/}
+GITHUB_RELEASE=	2.1
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://libmapper.github.io/
+LICENSE=	gnu-lgpl-v2.1
+
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+USE_TOOLS+=	pkg-config
+USE_LANGUAGES=	c c++
+
+DISTINFO_FILE?=	${.CURDIR}/../../wip/libmapper/distinfo
+PATCHDIR?=	${.CURDIR}/../../wip/libmapper/patches
+
+
+CONFIGURE_ARGS+=	--disable-jni
diff --git a/libmapper/PLIST b/libmapper/PLIST
new file mode 100644
index 0000000000..a9f3e1bc6e
--- /dev/null
+++ b/libmapper/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+include/mapper/mapper.h
+include/mapper/mapper_constants.h
+include/mapper/mapper_cpp.h
+include/mapper/mapper_types.h
+lib/libmapper.la
+lib/pkgconfig/libmapper.pc
+share/doc/libmapper/COPYING
+share/doc/libmapper/ChangeLog
+share/doc/libmapper/NEWS
+share/doc/libmapper/README
diff --git a/libmapper/buildlink3.mk b/libmapper/buildlink3.mk
new file mode 100644
index 0000000000..f5359f2ba0
--- /dev/null
+++ b/libmapper/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	libmapper
+
+.if !defined(LIBMAPPER_BUILDLINK3_MK)
+LIBMAPPER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libmapper+=	libmapper>=2.1
+BUILDLINK_PKGSRCDIR.libmapper?=		../../wip/libmapper
+
+.include "../../audio/liblo/buildlink3.mk"
+.endif	# LIBMAPPER_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libmapper
diff --git a/libmapper/distinfo b/libmapper/distinfo
new file mode 100644
index 0000000000..b575632b27
--- /dev/null
+++ b/libmapper/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (libmapper-2.1.tar.gz) = c7e01582eb740759bdfe06d942c1105a10ce084a95670e758c85af8d0214e689
+SHA512 (libmapper-2.1.tar.gz) = 19e51084c9deccddc9379055cc8c1a0a812367476463d3cca10ae1074f87aa8d469958544ae94bc8d5afc84c6b411e3d9e722ca53e1b1b66082cf74be65b75c8
+Size (libmapper-2.1.tar.gz) = 1074372 bytes
+SHA1 (patch-configure) = a101a742e3742902dd15ba30a9c3ae436effa443
diff --git a/libmapper/patches/patch-configure b/libmapper/patches/patch-configure
new file mode 100644
index 0000000000..c32b26fe37
--- /dev/null
+++ b/libmapper/patches/patch-configure
@@ -0,0 +1,37 @@
+$NetBSD$
+
+* use so extension for all pkgsrc platforms 
+
+* compatability fix
+
+* jni/Makefile.in does not exist
+
+--- configure.orig	2021-11-08 18:18:42.000000000 +0000
++++ configure
+@@ -19564,7 +19564,7 @@ printf "%s\n" "$am_cv_python_pyexecdir" 
+      if test x$have_python = xyes; then
+        SWIGDIR=swig
+ 
+-       PYEXT=$($PYTHON -c "import sys; print({'win32':'pyd','darwin':'so','linux':'so','linux2':'so'}[sys.platform])")
++       PYEXT=$($PYTHON -c "import sys; print({'win32':'pyd'}.get(sys.platform,'so'))")
+ 
+        case "$PYTHON_VERSION" in
+        3*) PY3SWIG=" -py3";
+@@ -19581,7 +19581,7 @@ fi
+ if test x$enable_jni = xyes; then
+    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking JDK path" >&5
+ printf %s "checking JDK path... " >&6; }
+-   if test x"$JAVA_HOME" == "x"; then
++   if test x"$JAVA_HOME" = "x"; then
+       JAVA_HOME="$(dirname $(dirname $(readlink /etc/alternatives/javac 2>/dev/null)))"
+    fi
+    if test x"$JAVA_HOME" != "x" && test -d "$JAVA_HOME/include"; then
+@@ -20207,7 +20207,7 @@ else
+ fi
+ 
+ 
+-ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile test/Makefile doc/Makefile doc/libmapper.doxyfile swig/Makefile swig/setup.py jni/Makefile jni/mapper/NativeLib.java examples/Makefile examples/pwm_synth/Makefile examples/py_tk_gui/Makefile examples/py_tk_gui/setup.py extra/Makefile extra/macOS/Makefile libmapper.pc"
++ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile test/Makefile doc/Makefile doc/libmapper.doxyfile swig/Makefile swig/setup.py jni/mapper/NativeLib.java examples/Makefile examples/pwm_synth/Makefile examples/py_tk_gui/Makefile examples/py_tk_gui/setup.py extra/Makefile extra/macOS/Makefile libmapper.pc"
+ 
+ cat >confcache <<\_ACEOF
+ # This file is a shell script that caches the results of configure
diff --git a/py-libmapper/DESCR b/py-libmapper/DESCR
new file mode 100644
index 0000000000..2f38dad004
--- /dev/null
+++ b/py-libmapper/DESCR
@@ -0,0 +1 @@
+Python bindings for libmapper.
diff --git a/py-libmapper/Makefile b/py-libmapper/Makefile
new file mode 100644
index 0000000000..8880d80d7d
--- /dev/null
+++ b/py-libmapper/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD$
+
+.include "../../wip/libmapper/Makefile.common"
+
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+
+USE_TOOLS+=	gmake
+
+COMMENT=	Python bindings for libmapper
+
+BUILD_DIRS=	swig
+
+PY_PATCHPLIST=	yes
+
+.include "../../audio/liblo/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../lang/python/extension.mk"
+.include "../../lang/python/tool.mk"
+.include "../../wip/libmapper/buildlink3.mk"
+.include "../../wip/swig4/tool.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-libmapper/PLIST b/py-libmapper/PLIST
new file mode 100644
index 0000000000..2e097381c8
--- /dev/null
+++ b/py-libmapper/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+${PYSITELIB}/_libmapper.so
+${PYSITELIB}/libmapper.py
+${PYSITELIB}/libmapper.pyc


Home | Main Index | Thread Index | Old Index