cmus: recipe cleanup (#1166)

* patchset not needed anymore
* output still broken for me.
This commit is contained in:
miqlas
2017-02-28 12:29:21 +01:00
committed by Jérôme Duval
parent 74f80f1d2d
commit 9bf9a88e6b
2 changed files with 26 additions and 139 deletions

View File

@@ -1,16 +1,15 @@
SUMMARY="A Console Based Audio Player"
DESCRIPTION="
cmus (C* MUsic Player) is a small, fast and powerful console audio player \
which supports most major audio formats. Various features include gapless \
playback, ReplayGain support, MP3 and Ogg streaming, live filtering, instant \
startup, customizable key-bindings, and vi-style default key-bindings."
DESCRIPTION="cmus (C* MUsic Player) is a small, fast and powerful console \
audio player which supports most major audio formats. Various features \
include gapless playback, ReplayGain support, MP3 and Ogg streaming, live \
filtering, instant startup, customizable key-bindings, and vi-style default \
key-bindings."
HOMEPAGE="https://cmus.github.io/"
COPYRIGHT="2005-2015 The cmus Project"
COPYRIGHT="2005-2017 The cmus Project"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="https://github.com/cmus/cmus/archive/v2.7.1.tar.gz"
REVISION="3"
SOURCE_URI="https://github.com/cmus/cmus/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="8179a7a843d257ddb585f4c65599844bc0e516fe85e97f6f87a7ceade4eb5165"
PATCHES="cmus-2.7.1-gcc2.patch"
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
@@ -22,36 +21,40 @@ PROVIDES="
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libao$secondaryArchSuffix
lib:libavformat$secondaryArchSuffix
lib:libcddb$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libfaad$secondaryArchSuffix
lib:libFLAC$secondaryArchSuffix
lib:libmad$secondaryArchSuffix
lib:libmodplug$secondaryArchSuffix
lib:libmpcdec$secondaryArchSuffix
lib:libvorbis$secondaryArchSuffix
lib:libmp4v2$secondaryArchSuffix
lib:libfaad$secondaryArchSuffix
lib:libavformat$secondaryArchSuffix
lib:libmpcdec$secondaryArchSuffix
lib:libopusfile$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libsamplerate$secondaryArchSuffix
lib:libao$secondaryArchSuffix >= 1.1.0
lib:libvorbis$secondaryArchSuffix
lib:libwavpack$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libncurses$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libao$secondaryArchSuffix
devel:libavformat$secondaryArchSuffix
devel:libcddb$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libfaad$secondaryArchSuffix
devel:libFLAC$secondaryArchSuffix
devel:libmad$secondaryArchSuffix
devel:libmodplug$secondaryArchSuffix
devel:libmpcdec$secondaryArchSuffix
devel:libvorbis$secondaryArchSuffix
devel:libmp4v2$secondaryArchSuffix
devel:libfaad$secondaryArchSuffix
devel:libavformat$secondaryArchSuffix
devel:libmpcdec$secondaryArchSuffix
devel:libopusfile$secondaryArchSuffix
devel:libncurses$secondaryArchSuffix
devel:libsamplerate$secondaryArchSuffix
devel:libao$secondaryArchSuffix >= 1.1.0
devel:libvorbis$secondaryArchSuffix
devel:libwavpack$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc${secondaryArchSuffix}

View File

@@ -1,116 +0,0 @@
diff --git a/Makefile "b/Makefile"
index ed15791..2043f32 100644
--- a/Makefile
+++ "b/Makefile"
@@ -21,7 +21,7 @@ CFLAGS += -D_FILE_OFFSET_BITS=64
FFMPEG_CFLAGS += $(shell pkg-config --cflags libswresample)
FFMPEG_LIBS += $(shell pkg-config --libs libswresample)
-CMUS_LIBS = $(PTHREAD_LIBS) $(NCURSES_LIBS) $(ICONV_LIBS) $(DL_LIBS) $(DISCID_LIBS) $(CUE_LIBS) -lm $(COMPAT_LIBS)
+CMUS_LIBS = $(PTHREAD_LIBS) $(NCURSES_LIBS) $(ICONV_LIBS) $(DL_LIBS) $(DISCID_LIBS) $(CUE_LIBS) $(COMPAT_LIBS)
input.o main.o ui_curses.o pulse.lo: .version
input.o main.o ui_curses.o pulse.lo: CFLAGS += -DVERSION=\"$(VERSION)\"
diff --git a/configure "b/configure"
index 224feaa..31b7e25 100755
--- a/configure
+++ "b/configure"
@@ -10,7 +10,6 @@ check_cflags()
for i in -Wold-style-definition \
-Wno-pointer-sign \
- -Werror-implicit-function-declaration \
-Wno-unused-parameter
do
check_cc_flag $i
@@ -156,7 +155,7 @@ check_mpc()
else
check_header mpcdec/mpcdec.h || return $?
fi
- check_library MPC "" "-lmpcdec -lm"
+ check_library MPC "" "-lmpcdec "
return $?
}
@@ -168,13 +167,13 @@ check_cddb()
check_cdio()
{
- pkg_config CDIO "libcdio_cdda" "" "-lcdio_cdio -lcdio -lm"
+ pkg_config CDIO "libcdio_cdda" "" "-lcdio_cdio -lcdio "
return $?
}
check_flac()
{
- pkg_config FLAC "flac" "" "-lFLAC -lm" || return $?
+ pkg_config FLAC "flac" "" "-lFLAC " || return $?
# Make sure the FLAC_CFLAGS value is sane, strip trailing '/FLAC'.
FLAC_CFLAGS=`echo $FLAC_CFLAGS | sed "s/FLAC$//"`
@@ -183,7 +182,7 @@ check_flac()
check_mad()
{
- pkg_config MAD "mad" "" "-lmad -lm"
+ pkg_config MAD "mad" "" "-lmad "
return $?
}
@@ -213,7 +212,7 @@ check_mikmod()
check_modplug()
{
- pkg_config MODPLUG "libmodplug" "-I/usr/include/libmodplug" "-lmodplug -lstdc++ -lm" || return $?
+ pkg_config MODPLUG "libmodplug" "-I/usr/include/libmodplug" "-lmodplug -lstdc++ " || return $?
MODPLUG_API_8=0
if check_function "ModPlug_GetModuleType" $MODPLUG_CFLAGS $MODPLUG_LIBS
then
@@ -233,10 +232,10 @@ check_vorbis()
{
if test "$CONFIG_TREMOR" = y
then
- pkg_config VORBIS "vorbisidec" "" "-lvorbisidec -lm"
+ pkg_config VORBIS "vorbisidec" "" "-lvorbisidec "
return $?
else
- pkg_config VORBIS "vorbisfile" "" "-lvorbisfile -lvorbis -lm -logg"
+ pkg_config VORBIS "vorbisfile" "" "-lvorbisfile -lvorbis -logg"
return $?
fi
}
@@ -364,14 +363,14 @@ check_mp4()
check_header mp4.h || return $?
fi
check_header neaacdec.h &&
- check_library MP4 "" "-lmp4v2 -lfaad -lm"
+ check_library MP4 "" "-lmp4v2 -lfaad "
return $?
}
check_aac()
{
check_header neaacdec.h &&
- check_library AAC "" "-lfaad -lm"
+ check_library AAC "" "-lfaad "
return $?
}
diff --git a/scripts/checks.sh "b/scripts/checks.sh"
index 64cbbf3..22ebf58 100644
--- a/scripts/checks.sh
+++ "b/scripts/checks.sh"
@@ -643,9 +643,12 @@ check_pthread()
OpenBSD)
PTHREAD_LIBS="$PTHREAD_LIBS -pthread"
;;
+ Haiku)
+ PTHREAD_LIBS="$PTHREAD_LIBS"
+ ;;
esac
- for __libs in "$PTHREAD_LIBS" -lpthread -lc_r -lkse
+ for __libs in "$PTHREAD_LIBS" -lpthread -lc_r -lkse -lroot
do
test -z "$__libs" && continue
check_library PTHREAD "-D_REENTRANT" "$__libs" && return 0