Skip to content

Commit dd77091

Browse files
committed
mocp: disable ffmpeg
The recent update to ffmpeg broke this. Instead, use the relevant libraries separately. Added AAC support. AAC is very common and was recently fixed to be compatible with BUILD_PATENTED. Explicitly pass all configure arguments, to avoid future breakage. Remove autoreconf. autotools files are not being patched. Add PKG_BUILD_PARALLEL for speed. Other minor cleanups. Signed-off-by: Rosen Penev <[email protected]>
1 parent b375cd2 commit dd77091

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

sound/mocp/Makefile

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,53 +9,62 @@ include $(TOPDIR)/rules.mk
99

1010
PKG_NAME:=moc
1111
PKG_VERSION:=2.5.2
12-
PKG_RELEASE:=3
12+
PKG_RELEASE:=4
1313

1414
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
1515
PKG_SOURCE_URL:=http://ftp.daper.net/pub/soft/moc/stable/
1616
PKG_HASH:=f3a68115602a4788b7cfa9bbe9397a9d5e24c68cb61a57695d1c2c3ecf49db08
1717

1818
PKG_MAINTAINER:=Ted Hess <[email protected]>
19-
20-
PKG_LICENSE:=GPL-2.0
19+
PKG_LICENSE:=GPL-2.0-or-later
2120
PKG_LICENSE_FILES:=COPYING
2221

23-
PKG_FIXUP:=autoreconf
2422
PKG_INSTALL:=1
23+
PKG_BUILD_PARALLEL:=1
2524

2625
include $(INCLUDE_DIR)/package.mk
2726
include $(INCLUDE_DIR)/nls.mk
2827

2928
define Package/moc
3029
SECTION:=sound
3130
CATEGORY:=Sound
32-
DEPENDS:=+libcurl $(ICONV_DEPENDS) +alsa-lib +libid3tag +libsamplerate +libncursesw +libffmpeg +libltdl +libmagic +libdb47
31+
DEPENDS:=+libcurl $(ICONV_DEPENDS) +alsa-lib +libid3tag +libsamplerate +libmad +libfaad2 +libflac +libvorbis +libncursesw +libltdl +libmagic +libdb47
3332
TITLE:=Music On Console
34-
URL:=http://moc.daper.net/
33+
URL:=https://moc.daper.net/
3534
endef
3635

3736
define Package/moc/description
3837
MOC (music on console) is a console audio player for LINUX/UNIX designed to be powerful and easy to use.
3938
endef
4039

41-
TARGET_CFLAGS+=-D_GNU_SOURCE
42-
4340
TARGET_CPPFLAGS+=-P
4441

45-
CONFIGURE_ARGS+= \
42+
CONFIGURE_ARGS += \
4643
--enable-shared \
4744
--disable-static \
4845
--disable-debug \
49-
--without-speex \
50-
--without-aac \
51-
--without-flac \
52-
--without-mp3 \
53-
--without-musepack \
5446
--without-rcc \
47+
--without-oss \
48+
--without-sndio \
49+
--with-alsa \
50+
--without-jack \
51+
--with-magic \
52+
--without-ncurses \
53+
--with-ncursesw \
54+
--with-samplerate \
55+
--with-aac \
56+
--without-ffmpeg \
57+
--with-flac \
58+
--without-modplug \
59+
--with-mp3 \
60+
--without-musepack \
61+
--without-sidplay2 \
5562
--without-sndfile \
56-
--without-vorbis \
63+
--without-speex \
64+
--without-timidity \
65+
--with-vorbis \
5766
--without-wavpack \
58-
$(if $(CONFIG_PACKAGE_libncursesw),--with-ncursesw --without-ncurses,--with-ncurses --without-ncursesw) \
67+
--with-curl \
5968
--with-bdb-dir="$(STAGING_DIR)/usr"
6069

6170
define Package/moc/install

0 commit comments

Comments
 (0)