pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
midish: finish package and apply fix for pkgsrc
Module Name: pkgsrc-wip
Committed By: Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By: vms
Date: Sun Nov 5 20:42:51 2023 +0100
Changeset: 205facb7b184fd1931bee73d66d18675777c1774
Modified Files:
midish/Makefile
midish/PLIST
midish/distinfo
Added Files:
midish/patches/patch-mdep.c
Log Message:
midish: finish package and apply fix for pkgsrc
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=205facb7b184fd1931bee73d66d18675777c1774
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
midish/Makefile | 32 ++++++++++++++++++++++++++++++--
midish/PLIST | 13 ++++++++++---
midish/distinfo | 1 +
midish/patches/patch-mdep.c | 15 +++++++++++++++
4 files changed, 56 insertions(+), 5 deletions(-)
diffs:
diff --git a/midish/Makefile b/midish/Makefile
index 48b2b99513..1aa69e931f 100644
--- a/midish/Makefile
+++ b/midish/Makefile
@@ -7,8 +7,36 @@ MASTER_SITES= https://midish.org/
MAINTAINER= mk%asdfghasdfgh.de@localhost
HOMEPAGE= https://midish.org/
COMMENT= Open-source MIDI sequencer/filter
-#LICENSE= # TODO: (see mk/license.mk)
+LICENSE= isc
-HAS_CONFIGURE= yes
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "OpenBSD"
+CONFIGURE_ARGS+= --enable-sndio
+.elif ${OPSYS} == "Linux"
+. include "../../audio/alsa-lib/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-alsa
+.endif
+
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+CONF_FILES+= ${EGDIR}/midishrc \
+ ${PKG_SYSCONFDIR}/midishrc
+
+SUBST_CLASSES+= conf
+SUBST_STAGE.conf= pre-configure
+SUBST_FILES.conf= manual.html mdep.c midish.1
+SUBST_VARS.conf= PKG_SYSCONFDIR
+SUBST_SED.conf+= -e "s:/etc/midishrc:${PKG_SYSCONFDIR}/midishrc:g"
+SUBST_MESSAGE.conf= Setting configuration file path.
+
+MAKE_FLAGS+= CC=${CC:Q} \
+ CFLAGS=${CFLAGS:Q} \
+ LDFLAGS=${LDFLAGS:Q} \
+ LIB=${LIBS:Q}
+
+.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/midish/PLIST b/midish/PLIST
index a44c680e88..0bc0ce5f16 100644
--- a/midish/PLIST
+++ b/midish/PLIST
@@ -1,4 +1,11 @@
@comment $NetBSD$
-@comment TODO: to fill this file with the file listing:
-@comment TODO: 1. run "/Users/mk/pkgsrc/pkg-2023Q3/bin/bmake package"
-@comment TODO: 2. run "/Users/mk/pkgsrc/pkg-2023Q3/bin/bmake print-PLIST"
+bin/midish
+bin/smfplay
+bin/smfrec
+man/man1/midish.1
+man/man1/smfplay.1
+man/man1/smfrec.1
+share/doc/midish/README
+share/doc/midish/manual.html
+share/examples/midish/midishrc
+share/examples/midish/sample.sng
diff --git a/midish/distinfo b/midish/distinfo
index 9739a73ba1..d66e930356 100644
--- a/midish/distinfo
+++ b/midish/distinfo
@@ -3,3 +3,4 @@ $NetBSD$
BLAKE2s (midish-1.3.3.tar.gz) = 65d03a8ac6e9cccddfefee2358abdd1fbd504540486706b9d722998ed4a55114
SHA512 (midish-1.3.3.tar.gz) = 2d605c0a884ba4c372786c4c122f23854fc14a239b9fca3fbcc82e59af1a274dc17ca14991531611714d7192c6b4fdf3cec4fa6a5dff954734a8abea51892687
Size (midish-1.3.3.tar.gz) = 188958 bytes
+SHA1 (patch-mdep.c) = 871e3acbe8a6b0b6b2c7780514cac126b9b801b8
diff --git a/midish/patches/patch-mdep.c b/midish/patches/patch-mdep.c
new file mode 100644
index 0000000000..d4eff92d72
--- /dev/null
+++ b/midish/patches/patch-mdep.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+SYSCONFDIR fix
+
+--- mdep.c.orig 2022-09-20 05:14:53.000000000 +0000
++++ mdep.c
+@@ -53,7 +53,7 @@
+ #endif
+
+ #ifndef RC_DIR
+-#define RC_DIR "/etc"
++#define RC_DIR "@PKG_SYSCONFDIR@"
+ #endif
+
+ #define MIDI_BUFSIZE 1024
Home |
Main Index |
Thread Index |
Old Index