1999-09-18 22:46:21 +02:00
|
|
|
# New ports collection makefile for: xmp
|
2009-10-05 16:43:14 +02:00
|
|
|
# Date created: 18 September 1999
|
|
|
|
# Whom: Anders Nordby <anders@fix.no>
|
1999-09-18 22:46:21 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-08 23:25:03 +02:00
|
|
|
PORTNAME= xmp
|
2011-08-12 18:55:22 +02:00
|
|
|
PORTVERSION= 3.4.0
|
2009-12-10 23:00:31 +01:00
|
|
|
PORTEPOCH= 1
|
1999-09-18 22:46:21 +02:00
|
|
|
CATEGORIES= audio
|
2009-12-10 23:00:31 +01:00
|
|
|
MASTER_SITES= SF
|
1999-09-18 22:46:21 +02:00
|
|
|
|
2009-10-05 14:00:38 +02:00
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= A player for many different Amiga and PC module formats
|
1999-09-18 22:46:21 +02:00
|
|
|
|
2011-08-12 18:55:22 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
1999-09-18 22:46:21 +02:00
|
|
|
USE_GMAKE= yes
|
2008-05-18 14:16:40 +02:00
|
|
|
WANT_GNOME= yes
|
2008-04-16 23:21:25 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-08-12 18:55:22 +02:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc --disable-arts \
|
|
|
|
--disable-audacious-plugin
|
2004-09-24 03:04:01 +02:00
|
|
|
|
2007-05-02 10:05:06 +02:00
|
|
|
MAN1= xmp.1
|
2001-04-17 13:02:01 +02:00
|
|
|
|
2010-07-01 08:47:22 +02:00
|
|
|
OPTIONS= ALSA "ALSA output driver" off \
|
2009-10-17 11:11:17 +02:00
|
|
|
BMP "BeepMP plugin" off \
|
|
|
|
ESOUND "EsounD output driver" off \
|
|
|
|
NAS "Network Audio System ouptut driver" off \
|
|
|
|
PULSEAUDIO "PulseAudio output driver" off \
|
|
|
|
UNZIP "Use unzip(1) not bsdtar(1) to read .zip files" on \
|
|
|
|
XMMS "XMMS plugin" off
|
|
|
|
|
|
|
|
MAKE_JOBS_SAFE= yes
|
2008-04-16 23:21:25 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-10-17 11:11:17 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
2010-07-01 08:47:22 +02:00
|
|
|
.if defined(WITH_ALSA)
|
|
|
|
LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
|
|
|
|
CONFIGURE_ARGS+= --enable-alsa
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-alsa
|
|
|
|
.endif
|
|
|
|
|
2009-10-17 11:11:17 +02:00
|
|
|
.if defined(WITH_BMP)
|
|
|
|
LIB_DEPENDS+= beep.2:${PORTSDIR}/multimedia/beep-media-player
|
|
|
|
CONFIGURE_ARGS+= --enable-bmp-plugin
|
|
|
|
PLIST_SUB+= BMP=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-bmp-plugin
|
|
|
|
PLIST_SUB+= BMP="@comment "
|
2009-10-05 16:43:14 +02:00
|
|
|
.endif
|
|
|
|
|
2008-04-16 23:21:25 +02:00
|
|
|
.if defined(WITH_ESOUND)
|
|
|
|
USE_GNOME+= esound
|
2009-10-17 11:11:17 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-esd
|
2008-04-16 23:21:25 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-esd
|
|
|
|
.endif
|
|
|
|
|
2009-10-17 11:11:17 +02:00
|
|
|
.if defined(WITH_NAS)
|
|
|
|
LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas
|
|
|
|
CONFIGURE_ARGS+= --enable-nas
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-nas
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PULSEAUDIO)
|
|
|
|
LIB_DEPENDS+= pulse-simple.0:${PORTSDIR}/audio/pulseaudio
|
|
|
|
CONFIGURE_ARGS+= --enable-pulseaudio
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-pulseaudio
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_UNZIP)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
.else
|
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src-misc-load.c
|
|
|
|
.endif
|
|
|
|
|
2008-04-16 23:21:25 +02:00
|
|
|
.if defined(WITH_XMMS)
|
2007-05-02 10:05:06 +02:00
|
|
|
LIB_DEPENDS+= xmms.4:${PORTSDIR}/multimedia/xmms
|
2008-04-16 23:21:25 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-xmms-plugin
|
2009-10-17 11:11:17 +02:00
|
|
|
PLIST_SUB+= XMMS=""
|
2003-10-03 13:22:08 +02:00
|
|
|
.else
|
2009-10-17 11:11:17 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-xmms-plugin
|
|
|
|
PLIST_SUB+= XMMS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch: .SILENT
|
|
|
|
.for f in docs/xmp.1 etc/xmp.conf etc/modules.conf
|
|
|
|
${REINPLACE_CMD} -e "s|/etc/xmp|${ETCDIR}|g" ${WRKSRC}/${f}
|
|
|
|
.endfor
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
'/$$(INSTALL_DATA)/s|\([[:alnum:]]*\.conf\).*$$|&\1.sample|' \
|
|
|
|
${WRKSRC}/etc/Makefile
|
2011-08-12 18:55:22 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-Wno-unknown-warning-option -Wno-unused-but-set-variable||' \
|
|
|
|
${WRKSRC}/configure
|
2009-10-17 11:11:17 +02:00
|
|
|
|
|
|
|
post-install: .SILENT
|
|
|
|
if [ ! -f ${ETCDIR}/${PORTNAME}.conf ]; then \
|
|
|
|
${INSTALL_DATA} ${ETCDIR}/${PORTNAME}.conf.sample \
|
|
|
|
${ETCDIR}/${PORTNAME}.conf; \
|
|
|
|
fi
|
|
|
|
if [ ! -f ${ETCDIR}/modules.conf ]; then \
|
|
|
|
${INSTALL_DATA} ${ETCDIR}/modules.conf.sample \
|
|
|
|
${ETCDIR}/modules.conf; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${ECHO_MSG} Installing documentation in ${DOCSDIR}
|
|
|
|
( cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* \
|
|
|
|
${DOCSDIR} '! ( -name Makefile -or -name xmp.1 \
|
|
|
|
-or -name *.bak -or -name *.orig )' )
|
2003-10-03 13:22:08 +02:00
|
|
|
.endif
|
|
|
|
|
2007-09-29 16:38:41 +02:00
|
|
|
.include <bsd.port.post.mk>
|