1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/audio/cmus/Makefile
Frederic Culot 342c9d91b0 - Update to 2.4.2
PR:		ports/159333
Submitted by:	Herbert J. Skuhra <h.skuhra@gmail.com> (maintainer)
2011-08-01 08:24:52 +00:00

175 lines
4.1 KiB
Makefile

# New ports collection makefile for: cmus
# Date created: 14 October 2005
# Whom: Adam Weinberger
#
# $FreeBSD$
#
PORTNAME= cmus
PORTVERSION= 2.4.2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-v${PORTVERSION}
MAINTAINER= h.skuhra@gmail.com
COMMENT= Console-based music player with really cool features
USE_BZIP2= yes
USE_GMAKE= yes
USE_ICONV= yes
USE_NCURSES= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS+=prefix=${PREFIX} mandir=${MANPREFIX}/man \
exampledir=${EXAMPLESDIR} \
CONFIG_ALSA=n
OPTIONS= FLAC "FLAC (Free Lossless Audio Codec) support" Off \
MAD "MPEG Audio Decoder (libmad) support" On \
MODPLUG "libmodplug (mod, x3m, ...) support" Off \
MIKMOD "libmikmod (mod, x3m, ...) support" Off \
MUSEPACK "libmpcdec (Musepack .mpc) support" Off \
VORBIS "Ogg/Vorbis support" On \
TREMOR "Use Tremor as Ogg/Vorbis input plugin" Off \
MP4 "MPEG-4 AAC support" Off \
AAC "AAC support" Off \
WAVPACK "Wavpack support" Off \
FFMPEG "FFMPEG support" Off \
LIBAO "Libao cross-platform audio library" Off \
PULSEAUDIO "Pulseaudio support" Off \
ARTS "ARTS support" Off
.include <bsd.port.pre.mk>
.if defined(WITH_FLAC)
LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac
CONFIGURE_ARGS+=CONFIG_FLAC=y
PLIST_SUB+= FLAC=""
.else
CONFIGURE_ARGS+=CONFIG_FLAC=n
PLIST_SUB+= FLAC="@comment "
.endif
.if !defined(WITHOUT_MAD)
LIB_DEPENDS+= mad:${PORTSDIR}/audio/libmad
CONFIGURE_ARGS+=CONFIG_MAD=y
PLIST_SUB+= MAD=""
.else
CONFIGURE_ARGS+=CONFIG_MAD=n
PLIST_SUB+= MAD="@comment "
.endif
.if defined(WITH_MODPLUG)
LIB_DEPENDS+= modplug:${PORTSDIR}/audio/libmodplug
CONFIGURE_ARGS+=CONFIG_MODPLUG=y
PLIST_SUB+= MODPLUG=""
.else
CONFIGURE_ARGS+=CONFIG_MODPLUG=n
PLIST_SUB+= MODPLUG="@comment "
.endif
.if defined(WITH_MIKMOD)
LIB_DEPENDS+= mikmod:${PORTSDIR}/audio/libmikmod
CONFIGURE_ARGS+=CONFIG_MIKMOD=y
PLIST_SUB+= MIKMOD=""
.else
PLIST_SUB+= MIKMOD="@comment "
.endif
.if defined(WITH_MUSEPACK)
LIB_DEPENDS+= mpcdec:${PORTSDIR}/audio/musepack
CONFIGURE_ARGS+=CONFIG_MPC=y
PLIST_SUB+= MPC=""
.else
CONFIGURE_ARGS+=CONFIG_MPC=n
PLIST_SUB+= MPC="@comment "
.endif
.if !defined(WITHOUT_VORBIS) || defined(WITH_TREMOR)
LIB_DEPENDS+= vorbisfile:${PORTSDIR}/audio/libvorbis
CONFIGURE_ARGS+=CONFIG_VORBIS=y
PLIST_SUB+= VORBIS=""
.else
CONFIGURE_ARGS+=CONFIG_VORBIS=n
PLIST_SUB+= VORBIS="@comment "
.endif
.if defined(WITH_TREMOR)
LIB_DEPENDS+= vorbisidec:${PORTSDIR}/audio/libtremor
CONFIGURE_ARGS+=CONFIG_TREMOR=y
.endif
.if defined(WITH_MP4)
LIB_DEPENDS+= faad:${PORTSDIR}/audio/faad
LIB_DEPENDS+= mp4v2:${PORTSDIR}/multimedia/mp4v2
CONFIGURE_ARGS+=CONFIG_MP4=y
PLIST_SUB+= MP4=""
.else
CONFIGURE_ARGS+=CONFIG_MP4=n
PLIST_SUB+= MP4="@comment "
.endif
.if defined(WITH_AAC)
LIB_DEPENDS+= faad:${PORTSDIR}/audio/faad
CONFIGURE_ARGS+=CONFIG_AAC=y
PLIST_SUB+= AAC=""
.else
CONFIGURE_ARGS+=CONFIG_AAC=n
PLIST_SUB+= AAC="@comment "
.endif
.if defined(WITH_WAVPACK)
LIB_DEPENDS+= wavpack:${PORTSDIR}/audio/wavpack
CONFIGURE_ARGS+=CONFIG_WAVPACK=y
PLIST_SUB+= WAVPACK=""
.else
CONFIGURE_ARGS+=CONFIG_WAVPACK=n
PLIST_SUB+= WAVPACK="@comment "
.endif
.if defined(WITH_FFMPEG)
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
CONFIGURE_ARGS+=CONFIG_FFMPEG=y
PLIST_SUB+= FFMPEG=""
.else
CONFIGURE_ARGS+=CONFIG_FFMPEG=n
PLIST_SUB+= FFMPEG="@comment "
.endif
.if defined(WITH_LIBAO)
LIB_DEPENDS+= ao:${PORTSDIR}/audio/libao
CONFIGURE_ARGS+=CONFIG_AO=y
PLIST_SUB+= AO=""
.else
CONFIGURE_ARGS+=CONFIG_AO=n
PLIST_SUB+= AO="@comment "
.endif
.if defined(WITH_PULSEAUDIO)
LIB_DEPENDS+= pulse:${PORTSDIR}/audio/pulseaudio
CONFIGURE_ARGS+=CONFIG_PULSE=y
PLIST_SUB+= PULSEAUDIO=""
.else
CONFIGURE_ARGS+=CONFIG_PULSE=n
PLIST_SUB+= PULSEAUDIO="@comment "
.endif
.if defined(WITH_ARTS)
LIB_DEPENDS+= artsc:${PORTSDIR}/audio/arts
CONFIGURE_ARGS+=CONFIG_ARTS=y
PLIST_SUB+= ARTS=""
.else
CONFIGURE_ARGS+=CONFIG_ARTS=n
PLIST_SUB+= ARTS="@comment "
.endif
MAN1= cmus.1 cmus-remote.1
MAN7= cmus-tutorial.7
post-patch:
@${REINPLACE_CMD} -e 's,doc/cmus/examples,examples/cmus,g' \
${WRKSRC}/Makefile ${WRKSRC}/Doc/cmus.txt
@${REINPLACE_CMD} -e 's,/usr,${PREFIX},g' ${WRKSRC}/Doc/cmus.txt
.include <bsd.port.post.mk>