aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorultima <ultima@FreeBSD.org>2017-08-09 01:53:36 +0800
committerultima <ultima@FreeBSD.org>2017-08-09 01:53:36 +0800
commit7d1bba5a9bd72d1c2259784c67f529e1f1d1f84d (patch)
tree40e4367a574eb5f444d02c399053d304fb2c9ba3
parente124e8bfe109caeacd92d86cb2f2f89faaa95a48 (diff)
downloadfreebsd-ports-gnome-7d1bba5a9bd72d1c2259784c67f529e1f1d1f84d.tar.gz
freebsd-ports-gnome-7d1bba5a9bd72d1c2259784c67f529e1f1d1f84d.tar.zst
freebsd-ports-gnome-7d1bba5a9bd72d1c2259784c67f529e1f1d1f84d.zip
* Updated to 0.4.1
* Cleanup Makefile PR: 220843 Submitted by: SimaMoto,RyōTa (maintainer) Reviewed by: matthew (mentor), mat Approved by: matthew (mentor) Differential Revision: https://reviews.freebsd.org/D11831
-rw-r--r--audio/wildmidi/Makefile43
-rw-r--r--audio/wildmidi/distinfo6
-rw-r--r--audio/wildmidi/pkg-plist3
3 files changed, 23 insertions, 29 deletions
diff --git a/audio/wildmidi/Makefile b/audio/wildmidi/Makefile
index 49a6a47e2f84..816b8362187e 100644
--- a/audio/wildmidi/Makefile
+++ b/audio/wildmidi/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= wildmidi
-PORTVERSION= 0.4.0
+PORTVERSION= 0.4.1
DISTVERSIONPREFIX= ${PORTNAME}-
CATEGORIES= audio
@@ -11,35 +11,29 @@ COMMENT= Simple software midi player and core softsynth library
# player: GPLv3, library: LGPL3
LICENSE= LGPL3
-USE_GITHUB= yes
-GH_ACCOUNT= Mindwerks
-
USES= cmake:outsource
USE_LDCONFIG= yes
+USE_GITHUB= yes
+GH_ACCOUNT= Mindwerks
+
OPTIONS_SUB= yes
OPTIONS_RADIO= BACKEND
OPTIONS_RADIO_BACKEND= ALSA OPENAL OSS
OPTIONS_DEFINE= PLAYER PLAYERSTATIC STATIC
OPTIONS_DEFAULT= ALSA PLAYER
-STATIC_CMAKE_ON= -DWANT_STATIC:BOOL=ON
-STATIC_CMAKE_OFF= -DWANT_STATIC:BOOL=OFF
+STATIC_CMAKE_BOOL= WANT_STATIC
PLAYER_DESC= Simple player
PLAYERSTATIC_DESC= Simple player using STATIC libWildMidi
BACKEND_DESC= Sound system PLAYER and PLAYERSTATIC use
-PLAYER_CMAKE_ON= -DWANT_PLAYER:BOOL=ON
-PLAYER_CMAKE_OFF= -DWANT_PLAYER:BOOL=OFF
-PLAYERSTATIC_CMAKE_ON= -DWANT_PLAYERSTATIC:BOOL=ON
-PLAYERSTATIC_CMAKE_OFF= -DWANT_PLAYERSTATIC:BOOL=OFF
+PLAYER_CMAKE_BOOL= WANT_PLAYER
+PLAYERSTATIC_CMAKE_BOOL= WANT_PLAYERSTATIC
PLAYERSTATIC_IMPLIES= STATIC
-ALSA_CMAKE_ON= -DWANT_ALSA:BOOL=ON
-ALSA_CMAKE_OFF= -DWANT_ALSA:BOOL=OFF
-OPENAL_CMAKE_ON= -DWANT_OPENAL:BOOL=ON
-OPENAL_CMAKE_OFF= -DWANT_OPENAL:BOOL=OFF
-OSS_CMAKE_ON= -DWANT_OSS:BOOL=ON
-OSS_CMAKE_OFF= -DWANT_OSS:BOOL=OFF
+ALSA_CMAKE_BOOL= WANT_ALSA
+OPENAL_CMAKE_BOOL= WANT_OPENAL
+OSS_CMAKE_BOOL= WANT_OSS
.include <bsd.port.options.mk>
@@ -59,18 +53,17 @@ EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_wm__tty.c
.endif
post-patch:
- @${GREP} -L ${LOCALBASE} ${WRKSRC}/cfg/wildmidi.cfg | ${XARGS} \
- ${REINPLACE_CMD} -e "/^dir \/usr\/share\//{" \
+ ${REINPLACE_CMD} -e "/^dir \/usr\/share\//{" \
-e "s|/usr/share/midi/freepats|${LOCALBASE}/share/freepats|;" \
-e "h; x; s|^|# |; s|freepats|guspat|; H; s|guspat|eawpats|; H;" \
- -e "s|eawpats|eawplus|; H; x;}"
- @${GREP} -L ${LOCALBASE} ${WRKSRC}/docs/man/man1/wildmidi.1 \
+ -e "s|eawpats|eawplus|; H; x;}" ${WRKSRC}/cfg/wildmidi.cfg
+ ${REINPLACE_CMD} -e 's@/etc/wildmidi/@${DATADIR}/@' \
+ -e 's@/etc/@${DATADIR}/@' ${WRKSRC}/docs/man/man1/wildmidi.1 \
${WRKSRC}/docs/man/man5/wildmidi.cfg.5 \
- ${WRKSRC}/CMakeLists.txt | ${XARGS} \
- ${REINPLACE_CMD} -e 's@/etc/wildmidi/@${DATADIR}/@' \
- -e 's@/etc/@${DATADIR}/@'
- @${GREP} -l share/man ${WRKSRC}/src/CMakeLists.txt | ${XARGS} \
- ${REINPLACE_CMD} '/INSTALL/s@share/man@man@'
+ ${WRKSRC}/CMakeLists.txt
+ ${REINPLACE_CMD} -e '/INSTALL/s@share/man@man@' \
+ -e '/pkgconfig/s/$${WILDMIDILIB_INSTALLDIR}/libdata/' \
+ ${WRKSRC}/src/CMakeLists.txt
pre-install:
@${RM} ${WRKSRC}/docs/man/man1/wildmidi.1${REINPLACE_ARGS:S/-i//} \
diff --git a/audio/wildmidi/distinfo b/audio/wildmidi/distinfo
index 6e644b5d0dc2..02c4ddf10b58 100644
--- a/audio/wildmidi/distinfo
+++ b/audio/wildmidi/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1466091419
-SHA256 (Mindwerks-wildmidi-wildmidi-0.4.0_GH0.tar.gz) = ca2064f6fbab37250ab4fff4aed00d6d4fa24254718661e3e2f56b1536015d23
-SIZE (Mindwerks-wildmidi-wildmidi-0.4.0_GH0.tar.gz) = 175575
+TIMESTAMP = 1491656038
+SHA256 (Mindwerks-wildmidi-wildmidi-0.4.1_GH0.tar.gz) = 880f1cb5bf68589915a82a8e603ff561bdda7ddb5864c15ad28b5428d4abf9ea
+SIZE (Mindwerks-wildmidi-wildmidi-0.4.1_GH0.tar.gz) = 191368
diff --git a/audio/wildmidi/pkg-plist b/audio/wildmidi/pkg-plist
index 99db5bad6203..0781dcfeb78a 100644
--- a/audio/wildmidi/pkg-plist
+++ b/audio/wildmidi/pkg-plist
@@ -4,7 +4,8 @@ include/wildmidi_lib.h
%%STATIC%%lib/libWildMidi.a
lib/libWildMidi.so
lib/libWildMidi.so.2
-lib/libWildMidi.so.2.0.0
+lib/libWildMidi.so.2.0.1
+libdata/pkgconfig/wildmidi.pc
man/man1/wildmidi.1.gz
man/man3/WildMidi_ClearError.3.gz
man/man3/WildMidi_Close.3.gz