2013-01-08 12:06:42 +01:00
|
|
|
# Created by: ijliao
|
2002-04-19 16:11:38 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mhwaveedit
|
2013-01-08 12:06:42 +01:00
|
|
|
PORTVERSION= 1.4.22
|
2002-04-19 16:11:38 +02:00
|
|
|
CATEGORIES= audio
|
2005-07-17 23:28:13 +02:00
|
|
|
MASTER_SITES= http://download.gna.org/mhwaveedit/
|
2002-04-19 16:11:38 +02:00
|
|
|
|
2009-11-27 23:52:30 +01:00
|
|
|
MAINTAINER= sylvio@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= A graphical program for editing sound files
|
2002-04-19 16:11:38 +02:00
|
|
|
|
2011-05-19 20:25:58 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-08-30 04:06:44 +02:00
|
|
|
USES= pkgconfig
|
2013-09-20 16:36:35 +02:00
|
|
|
NO_STAGE= yes
|
2005-05-17 21:26:01 +02:00
|
|
|
USE_BZIP2= yes
|
2011-08-11 21:20:17 +02:00
|
|
|
USE_GNOME= gnomehack gtk20
|
2004-10-12 14:34:39 +02:00
|
|
|
WANT_GNOME= yes
|
|
|
|
WANT_SDL= yes
|
2002-04-19 16:11:38 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2013-07-27 01:46:21 +02:00
|
|
|
CONFIGURE_ARGS= --disable-optimization --without-alsalib \
|
|
|
|
--without-arts
|
|
|
|
|
2005-05-17 21:26:01 +02:00
|
|
|
PLIST_FILES= bin/mhwaveedit \
|
2006-08-28 14:29:14 +02:00
|
|
|
share/locale/de/LC_MESSAGES/mhwaveedit.mo \
|
2006-03-16 13:25:44 +01:00
|
|
|
share/locale/es/LC_MESSAGES/mhwaveedit.mo \
|
2005-08-31 00:48:44 +02:00
|
|
|
share/locale/fr/LC_MESSAGES/mhwaveedit.mo \
|
2010-02-03 01:06:35 +01:00
|
|
|
share/locale/it/LC_MESSAGES/mhwaveedit.mo \
|
2011-05-16 16:13:48 +02:00
|
|
|
share/locale/pl/LC_MESSAGES/mhwaveedit.mo \
|
2005-05-17 21:26:01 +02:00
|
|
|
share/locale/ru/LC_MESSAGES/mhwaveedit.mo \
|
2008-01-03 13:04:22 +01:00
|
|
|
share/locale/sv/LC_MESSAGES/mhwaveedit.mo \
|
2008-10-20 18:58:54 +02:00
|
|
|
share/locale/zh_CN/LC_MESSAGES/mhwaveedit.mo \
|
|
|
|
share/applications/mhwaveedit.desktop \
|
|
|
|
share/pixmaps/mhwaveedit.xpm
|
|
|
|
|
2010-08-31 16:39:05 +02:00
|
|
|
MAN1= mhwaveedit.1
|
|
|
|
|
2013-01-08 12:06:42 +01:00
|
|
|
OPTIONS_DEFINE= DOUBLE_SAMPLES SNDFILE SAMPLERATE OSS \
|
2013-07-27 01:46:21 +02:00
|
|
|
PORTAUDIO SDL JACK \
|
2013-01-08 12:06:42 +01:00
|
|
|
ESD PULSEAUDIO LADSPA
|
|
|
|
|
|
|
|
DOUBLE_SAMPLES_DESC= increase quality for 24/32-bit samplerates
|
|
|
|
SNDFILE_DESC= libsndfile support
|
|
|
|
SAMPLERATE_DESC= libsamplerate support
|
|
|
|
OSS_DESC= OSS sound driver
|
|
|
|
PORTAUDIO_DESC= PortAudio sound driver
|
|
|
|
SDL_DESC= SDL sound driver
|
|
|
|
JACK_DESC= JACK sound driver
|
|
|
|
ESD_DESC= EsounD sound driver
|
|
|
|
PULSEAUDIO_DESC= PULSEAUDIO support
|
|
|
|
LADSPA_DESC= LADSPA support
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT=SNDFILE SAMPLERATE OSS
|
2005-08-31 00:48:44 +02:00
|
|
|
|
2013-07-27 01:46:21 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2004-10-12 14:34:39 +02:00
|
|
|
|
2009-02-03 06:19:04 +01:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on sparc64
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 12:06:42 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOUBLE_SAMPLES}
|
2004-01-23 15:02:19 +01:00
|
|
|
CONFIGURE_ARGS+= --with-double-samples
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 12:06:42 +01:00
|
|
|
.if empty(PORT_OPTIONS:MSNDFILE)
|
2005-08-31 00:48:44 +02:00
|
|
|
CONFIGURE_ARGS+= --without-libsndfile
|
2005-09-29 05:49:01 +02:00
|
|
|
.else
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libsndfile.so:${PORTSDIR}/audio/libsndfile
|
2005-08-31 00:48:44 +02:00
|
|
|
.endif
|
|
|
|
|
2013-01-08 12:06:42 +01:00
|
|
|
.if empty(PORT_OPTIONS:MSAMPLERATE)
|
2005-08-31 00:48:44 +02:00
|
|
|
CONFIGURE_ARGS+= --without-libsamplerate
|
2005-09-29 05:49:01 +02:00
|
|
|
.else
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libsamplerate.so:${PORTSDIR}/audio/libsamplerate
|
2005-08-31 00:48:44 +02:00
|
|
|
.endif
|
|
|
|
|
2013-01-08 12:06:42 +01:00
|
|
|
.if empty(PORT_OPTIONS:MOSS)
|
2005-08-31 00:48:44 +02:00
|
|
|
CONFIGURE_ARGS+= --without-oss
|
2004-06-27 20:01:58 +02:00
|
|
|
.endif
|
|
|
|
|
2013-01-08 12:06:42 +01:00
|
|
|
.if ${PORT_OPTIONS:MPORTAUDIO}
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libportaudio.so:${PORTSDIR}/audio/portaudio
|
2005-08-31 00:48:44 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-portaudio
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 12:06:42 +01:00
|
|
|
.if ${PORT_OPTIONS:MSDL}
|
2004-10-12 14:34:39 +02:00
|
|
|
USE_SDL+= sdl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-sdl
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 12:06:42 +01:00
|
|
|
.if ${PORT_OPTIONS:MJACK}
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack
|
2005-08-31 00:48:44 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-jack
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 12:06:42 +01:00
|
|
|
.if ${PORT_OPTIONS:MESD}
|
2004-10-12 14:34:39 +02:00
|
|
|
USE_GNOME+= esound
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-esound
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 12:06:42 +01:00
|
|
|
.if ${PORT_OPTIONS:MPULSEAUDIO}
|
2011-05-16 16:13:48 +02:00
|
|
|
LIBS_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
|
|
|
|
CONFIGURE_ARGS+= --with-pulse
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pulse
|
|
|
|
.endif
|
|
|
|
|
2013-01-08 12:06:42 +01:00
|
|
|
.if ${PORT_OPTIONS:MLADSPA}
|
2006-06-16 20:11:16 +02:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
|
2005-08-31 00:48:44 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
|
2006-06-16 20:11:16 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= ac_cv_header_ladspa_h=no
|
2005-08-31 00:48:44 +02:00
|
|
|
.endif
|
2004-06-27 20:01:58 +02:00
|
|
|
|
2008-01-03 13:04:22 +01:00
|
|
|
post-extract:
|
|
|
|
@${CHMOD} +x ${WRKSRC}/install-sh
|
|
|
|
|
2004-06-27 20:01:58 +02:00
|
|
|
post-patch:
|
2006-11-05 00:23:28 +01:00
|
|
|
@${REINPLACE_CMD} -e '/AM_CFLAGS=/s|-g||g' ${WRKSRC}/configure
|
2004-01-23 15:02:19 +01:00
|
|
|
|
2013-07-27 01:46:21 +02:00
|
|
|
.include <bsd.port.mk>
|