diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2013-02-16 12:35:47 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2013-02-16 12:35:47 +0000 |
commit | 6441e41eee24b5e7db824771fc5f1690b6defe59 (patch) | |
tree | c8893517ad5475134761993f90fa7a09014571c7 /audio/xmp/Makefile | |
parent | be8f25fe79742570cbf3bfc815320dd38ebfa34e (diff) | |
download | ports-6441e41eee24b5e7db824771fc5f1690b6defe59.tar.gz ports-6441e41eee24b5e7db824771fc5f1690b6defe59.zip |
Notes
Diffstat (limited to 'audio/xmp/Makefile')
-rw-r--r-- | audio/xmp/Makefile | 94 |
1 files changed, 18 insertions, 76 deletions
diff --git a/audio/xmp/Makefile b/audio/xmp/Makefile index c8085c90bc39..6d1bbb8c9400 100644 --- a/audio/xmp/Makefile +++ b/audio/xmp/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= xmp -PORTVERSION= 3.5.0 +PORTVERSION= 4.0.0 PORTEPOCH= 1 CATEGORIES= audio MASTER_SITES= SF @@ -12,30 +12,25 @@ COMMENT= A player for many different Amiga and PC module formats LICENSE= GPLv2 +LIB_DEPENDS= xmp:${PORTSDIR}/audio/libxmp + USE_GMAKE= yes WANT_GNOME= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" -CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc --disable-arts \ - --disable-audacious-plugin - -MAN1= xmp.1 -OPTIONS_DEFINE= ALSA BMP ESOUND NAS PULSEAUDIO UNZIP XMMS DOCS +CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc -BMP_DESC= Beep media player plugin -XMMS_DESC= XMMS plugin +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -OPTIONS_DEFAULT=UNZIP +MAN1= xmp.1 -MAKE_JOBS_SAFE= yes +CONFIG_FILES= xmp.conf modules.conf -CFLAGS+= -I${LOCALBASE}/include +OPTIONS_DEFINE= ALSA PULSEAUDIO .include <bsd.port.options.mk> -PORTDOCS= * - .if ${PORT_OPTIONS:MALSA} LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins @@ -44,29 +39,6 @@ CONFIGURE_ARGS+= --enable-alsa CONFIGURE_ARGS+= --disable-alsa .endif -.if ${PORT_OPTIONS:MBMP} -LIB_DEPENDS+= beep:${PORTSDIR}/multimedia/beep-media-player -CONFIGURE_ARGS+= --enable-bmp-plugin -PLIST_SUB+= BMP="" -.else -CONFIGURE_ARGS+= --disable-bmp-plugin -PLIST_SUB+= BMP="@comment " -.endif - -.if ${PORT_OPTIONS:MESOUND} -USE_GNOME+= esound -CONFIGURE_ARGS+= --enable-esd -.else -CONFIGURE_ARGS+= --disable-esd -.endif - -.if ${PORT_OPTIONS:MNAS} -LIB_DEPENDS+= audio:${PORTSDIR}/audio/nas -CONFIGURE_ARGS+= --enable-nas -.else -CONFIGURE_ARGS+= --disable-nas -.endif - .if ${PORT_OPTIONS:MPULSEAUDIO} LIB_DEPENDS+= pulse-simple:${PORTSDIR}/audio/pulseaudio CONFIGURE_ARGS+= --enable-pulseaudio @@ -74,47 +46,17 @@ CONFIGURE_ARGS+= --enable-pulseaudio CONFIGURE_ARGS+= --disable-pulseaudio .endif -.if ${PORT_OPTIONS:MUNZIP} -RUN_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip -.else -EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src-misc-load.c -.endif +post-patch: + @${REINPLACE_CMD} -e 's|\(pulseaudio\.o\)|sound_\1|' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|\ install-conf||' ${WRKSRC}/Makefile.in -.if ${PORT_OPTIONS:MXMMS} -LIB_DEPENDS+= xmms:${PORTSDIR}/multimedia/xmms -CONFIGURE_ARGS+= --enable-xmms-plugin -PLIST_SUB+= XMMS="" -.else -CONFIGURE_ARGS+= --disable-xmms-plugin -PLIST_SUB+= XMMS="@comment " +post-install: + ${MKDIR} ${PREFIX}/etc/xmp +.for f in ${CONFIG_FILES} +.if !exists(${ETCDIR}/${f}) + ${INSTALL_DATA} ${WRKSRC}/src/${f} ${ETCDIR}/${f} .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} + ${INSTALL_DATA} ${WRKSRC}/src/${f} ${ETCDIR}/${f}.sample .endfor - ${REINPLACE_CMD} -e \ - '/$$(INSTALL_DATA)/s|\([[:alnum:]]*\.conf\).*$$|&\1.sample|' \ - ${WRKSRC}/etc/Makefile - @${REINPLACE_CMD} -e \ - 's|-Wno-unknown-warning-option -Wno-unused-but-set-variable||' \ - ${WRKSRC}/configure - -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 ${PORT_OPTIONS:MDOCS} - ${ECHO_MSG} Installing documentation in ${DOCSDIR} - ( cd ${WRKSRC}/docs && ${COPYTREE_SHARE} \* \ - ${DOCSDIR} '! ( -name Makefile -or -name xmp.1 \ - -or -name *.bak -or -name *.orig )' ) -.endif .include <bsd.port.mk> |