1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/audio/terminatorx/Makefile
Antoine Brodin bd3c12e86a - Stage support
- Use OPTIONS helpers
2014-01-18 14:49:41 +00:00

86 lines
3.1 KiB
Makefile

# Created by: Tilman Linneweh <arved@FreeBSD.org>
# $FreeBSD$
# $MCom: ports/audio/terminatorx/Makefile,v 1.6 2007/08/04 03:51:28 marcus Exp $
PORTNAME= terminatorx
PORTVERSION= 3.84
PORTREVISION= 3
CATEGORIES= audio
MASTER_SITES= http://terminatorx.org/dist/
DISTNAME= terminatorX-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Realtime audio synthesizer that allows you to "scratch" on audio data
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa \
rarian-sk-config:${PORTSDIR}/textproc/rarian
LIB_DEPENDS= libaudiofile.so:${PORTSDIR}/audio/libaudiofile \
liblrdf.so:${PORTSDIR}/textproc/liblrdf
OPTIONS_DEFINE= ALSA JACK MPG123 SOX VORBIS MAD
OPTIONS_DEFAULT= JACK MPG123 SOX VORBIS MAD
SOX_DESC= sox (.au) support
MPG123_DESC= mpg123 support
USE_BZIP2= yes
USE_XORG= x11 xext xi xxf86dga ice sm
USES= gmake pathfix pkgconfig
USE_GNOME= gnomehier gtk20 libxml2
USE_AUTOTOOLS= aclocal autoheader automake autoconf
ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal
AUTOMAKE_ARGS= --add-missing
CONFIGURE_ARGS= --disable-alsamidi \
--disable-scheduler
INSTALLS_OMF= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
ALSA_CONFIGURE_OFF= --disable-alsa
JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
JACK_CONFIGURE_OFF= --disable-jack
MPG123_BUILD_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
MPG123_CONFIGURE_OFF= --disable-mpg123
SOX_BUILD_DEPENDS= sox:${PORTSDIR}/audio/sox
SOX_CONFIGURE_OFF= --disable-sox
VORBIS_BUILD_DEPENDS= oggenc:${PORTSDIR}/audio/vorbis-tools
VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
VORBIS_CONFIGURE_OFF= --disable-vorbis
MAD_LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/mad
MAD_CONFIGURE_OFF= --disable-mad
post-patch:
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|malloc\.h|stdlib.h|g'
@${GREP} -lR "%%LOCALBASE%%" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|%%LOCALBASE%%|${LOCALBASE}|g'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/terminatorX ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/terminatorX.1 ${STAGEDIR}${MANPREFIX}/man/man1
.for file in terminatorX-app.png terminatorX-mime.png
${INSTALL_DATA} ${WRKSRC}/gnome-support/${file} \
${STAGEDIR}${PREFIX}/share/pixmaps
.endfor
.for f in terminatorX.mime terminatorX.keys
${INSTALL_DATA} ${WRKSRC}/gnome-support/${f} \
${STAGEDIR}${PREFIX}/share/mime-info
.endfor
${INSTALL_DATA} ${WRKSRC}/gnome-support/terminatorX.desktop \
${STAGEDIR}${PREFIX}/share/applications
@${MKDIR} ${STAGEDIR}${PREFIX}/share/gnome/help/terminatorX/C
${INSTALL_DATA} ${WRKSRC}/doc/terminatorX-manual/C/terminatorX-manual.xml \
${STAGEDIR}${PREFIX}/share/gnome/help/terminatorX/C/terminatorX.xml
@${MKDIR} ${STAGEDIR}${PREFIX}/share/gnome/help/terminatorX/C/figures
${INSTALL_DATA} ${WRKSRC}/doc/terminatorX-manual/C/figures/signalflow.png \
${STAGEDIR}${PREFIX}/share/gnome/help/terminatorX/C/figures
@${MKDIR} ${STAGEDIR}${PREFIX}/share/omf/terminatorX
${INSTALL_DATA} ${WRKSRC}/doc/terminatorX-manual/C/terminatorX-manual-C.omf \
${STAGEDIR}${PREFIX}/share/omf/terminatorX/terminatorX-C.omf
.include <bsd.port.mk>