2002-05-30 17:36:03 +00:00
|
|
|
# New ports collection Makefile for: terminatorx
|
|
|
|
# Date created: 13 May 2002
|
2003-01-01 21:16:35 +00:00
|
|
|
# Whom: Tilman Linneweh <arved@FreeBSD.org>
|
2002-05-30 17:36:03 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= terminatorx
|
2004-11-09 22:42:58 +00:00
|
|
|
PORTVERSION= 3.82
|
2005-11-05 05:22:06 +00:00
|
|
|
PORTREVISION= 2
|
2002-05-30 17:36:03 +00:00
|
|
|
CATEGORIES= audio
|
2005-10-17 12:45:26 +00:00
|
|
|
MASTER_SITES= http://terminatorx.org/dist/
|
2002-05-30 17:36:03 +00:00
|
|
|
DISTNAME= terminatorX-${PORTVERSION}
|
|
|
|
|
2003-01-01 21:16:35 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= Realtime audio synthesizer that allows you to "scratch" on audio data
|
2002-05-30 17:36:03 +00:00
|
|
|
|
2003-05-09 23:37:39 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa \
|
|
|
|
scrollkeeper-config:${PORTSDIR}/textproc/scrollkeeper
|
2003-04-27 14:34:50 +00:00
|
|
|
LIB_DEPENDS= audiofile.0:${PORTSDIR}/audio/libaudiofile \
|
2004-03-10 12:34:46 +00:00
|
|
|
lrdf.2:${PORTSDIR}/textproc/liblrdf \
|
|
|
|
jack.0:${PORTSDIR}/audio/jack
|
2003-01-01 21:16:35 +00:00
|
|
|
|
2003-04-26 22:30:59 +00:00
|
|
|
USE_BZIP2= yes
|
2003-01-02 19:22:57 +00:00
|
|
|
USE_X_PREFIX= yes
|
2004-11-23 02:23:08 +00:00
|
|
|
INSTALLS_OMF= yes
|
2004-11-09 22:42:58 +00:00
|
|
|
USE_GNOME= gnomehack gnomeprefix gnometarget gtk20 libxml2
|
2003-04-26 22:30:59 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2003-08-23 21:58:22 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
2004-03-10 12:34:46 +00:00
|
|
|
CONFIGURE_ARGS= --disable-alsa \
|
2004-11-09 22:42:58 +00:00
|
|
|
--disable-alsamidi
|
2003-04-26 22:30:59 +00:00
|
|
|
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
|
|
|
|
AUTOHEADER="${TRUE}"
|
|
|
|
|
2004-11-09 22:42:58 +00:00
|
|
|
MAN1= terminatorX.1
|
2003-01-01 21:16:35 +00:00
|
|
|
|
2005-10-17 12:45:26 +00:00
|
|
|
OPTIONS= MPG123 "mpg123 support" on \
|
|
|
|
SOX "sox (.au) support" on \
|
|
|
|
VORBIS "OGG Vorbis support" on \
|
|
|
|
MAD "MPEG Audio Decoder (libmad) support" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-04-26 22:30:59 +00:00
|
|
|
.if !defined(WITHOUT_MPG123)
|
|
|
|
BUILD_DEPENDS+= mpg123:${PORTSDIR}/audio/mpg123
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mpg123
|
|
|
|
.endif
|
2003-01-01 21:16:35 +00:00
|
|
|
|
2002-05-30 17:36:03 +00:00
|
|
|
.if !defined(WITHOUT_SOX)
|
2003-04-26 22:30:59 +00:00
|
|
|
BUILD_DEPENDS+= sox:${PORTSDIR}/audio/sox
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-sox
|
2002-05-30 17:36:03 +00:00
|
|
|
.endif
|
2003-04-26 22:30:59 +00:00
|
|
|
|
2002-05-30 17:36:03 +00:00
|
|
|
.if !defined(WITHOUT_VORBIS)
|
2003-04-26 22:30:59 +00:00
|
|
|
BUILD_DEPENDS+= oggenc:${PORTSDIR}/audio/vorbis-tools
|
2003-12-20 16:14:14 +00:00
|
|
|
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
|
2003-04-26 22:30:59 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-vorbis
|
2003-01-01 21:16:35 +00:00
|
|
|
.endif
|
2003-04-26 22:30:59 +00:00
|
|
|
|
2003-01-01 21:16:35 +00:00
|
|
|
.if !defined(WITHOUT_MAD)
|
2003-12-07 01:27:06 +00:00
|
|
|
LIB_DEPENDS+= mad.2:${PORTSDIR}/audio/mad
|
2003-04-26 22:30:59 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-mad
|
2002-05-30 17:36:03 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2003-04-26 22:30:59 +00:00
|
|
|
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|malloc\.h|stdlib.h|g'
|
2003-08-23 21:58:22 +00:00
|
|
|
@${GREP} -lR "%%LOCALBASE%%" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|%%LOCALBASE%%|${LOCALBASE}|g'
|
|
|
|
@${GREP} -lR "%%X11BASE%%" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|%%X11BASE%%|${LOCALBASE}|g'
|
2003-01-01 21:16:35 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/terminatorX ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/terminatorX.1 ${MANPREFIX}/man/man1
|
2003-04-26 22:30:59 +00:00
|
|
|
.for file in terminatorX-app.png terminatorX-mime.png
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gnome-support/${file} \
|
|
|
|
${PREFIX}/share/gnome/pixmaps
|
|
|
|
.endfor
|
|
|
|
.for file in terminatorX.mime terminatorX.keys
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gnome-support/${file} \
|
|
|
|
${PREFIX}/share/gnome/mime-info
|
|
|
|
.endfor
|
2004-11-09 22:42:58 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/gnome-support/terminatorX.desktop \
|
2003-04-26 22:30:59 +00:00
|
|
|
${PREFIX}/share/gnome/apps/Multimedia
|
2004-11-09 22:42:58 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/gnome/help/terminatorX/C
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/terminatorX-manual/C/terminatorX-manual.xml \
|
|
|
|
${PREFIX}/share/gnome/help/terminatorX/C/terminatorX.xml
|
|
|
|
@${MKDIR} ${PREFIX}/share/gnome/help/terminatorX/C/figures
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/terminatorX-manual/C/figures/signalflow.png \
|
|
|
|
${PREFIX}/share/gnome/help/terminatorX/C/figures
|
|
|
|
@${MKDIR} ${PREFIX}/share/gnome/omf/terminatorX
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/terminatorX-manual/C/terminatorX-manual-C.omf \
|
|
|
|
${PREFIX}/share/gnome/omf/terminatorX/terminatorX-C.omf
|
|
|
|
@scrollkeeper-install -q ${PREFIX}/share/gnome/omf/terminatorX/terminatorX-C.omf 2>/dev/null || ${TRUE}
|
2002-05-30 17:36:03 +00:00
|
|
|
|
2005-10-17 12:45:26 +00:00
|
|
|
.include <bsd.port.post.mk>
|