audio/milkytracker: Fix conflict with rtmidi.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-03-14 02:13:40 -04:00 committed by Willy Sudiarto Raharjo
parent 51737cd7c2
commit 9459dc8989
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -23,6 +23,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20240314 bkw: Modified by SlackBuilds.org:
# Since we now have rtmidi in the repo, milkytracker autodetects it
# and tries to build with support for it... which fails (maybe it's
# too new a version of rtmidi). Since this never had MIDI support
# before, I've disabled rtmidi autodetection so it'll always build
# without it. Proper solution would be to patch milkytracker to work
# with the rtmidi in our repo; I leave that for the maintainer.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=milkytracker
@ -40,9 +48,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -77,9 +82,13 @@ cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
-exec chmod 755 {} + -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-exec chmod 644 {} +
# 20240314 bkw: it autodetects rtmidi, but fails to build if it does.
# don't see a clean way to disable rtmidi, so do it dirty:
sed -i '/find_package(RTMIDI/s,^,#,' CMakeLists.txt
mkdir -p build
cd build