aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mhwaveedit/Makefile
blob: c9d071e4e2dc23b85a845c79f2fb474224040f4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Created by: ijliao
# $FreeBSD$

PORTNAME=   mhwaveedit
PORTVERSION=    1.4.23
PORTREVISION=   2
CATEGORIES= audio
MASTER_SITES=   http://download.gna.org/mhwaveedit/

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Graphical program for editing sound files

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       localbase pathfix pkgconfig tar:bzip2
USE_GNOME=  gtk20
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --without-alsalib --without-arts

BROKEN_powerpc64=   fails to compile on powerpc64: convert_inc.c: conflicting types for 'C_FLOAT_PCM32SBEPM'
BROKEN_sparc64=     fails to compile on sparc64

OPTIONS_DEFINE=     DOUBLE_SAMPLES ESOUND JACK LADSPA OSS PORTAUDIO \
            PULSEAUDIO SAMPLERATE SDL SNDFILE NLS
OPTIONS_DEFAULT=    OSS SAMPLERATE SNDFILE
OPTIONS_SUB=        yes

DOUBLE_SAMPLES_DESC=    Increase quality for 24/32-bit samplerates
DOUBLE_SAMPLES_CONFIGURE_WITH=  double-samples
ESOUND_USE=     gnome=esound
ESOUND_CONFIGURE_WITH=  esound
JACK_LIB_DEPENDS=   libjack.so:audio/jack
JACK_CONFIGURE_WITH=    jack
LADSPA_BUILD_DEPENDS=   ladspa>0:audio/ladspa
LADSPA_RUN_DEPENDS= ladspa>0:audio/ladspa
LADSPA_CONFIGURE_ENV_OFF=   ac_cv_header_ladspa_h=no
OSS_CONFIGURE_WITH= oss
PORTAUDIO_LIB_DEPENDS=  libportaudio.so:audio/portaudio
PORTAUDIO_CONFIGURE_WITH=   portaudio
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
PULSEAUDIO_CONFIGURE_WITH=  pulse
SAMPLERATE_LIB_DEPENDS= libsamplerate.so:audio/libsamplerate
SAMPLERATE_CONFIGURE_WITH=  libsamplerate
SDL_USE=        sdl=sdl
SDL_CONFIGURE_WITH= sdl
SNDFILE_LIB_DEPENDS=    libsndfile.so:audio/libsndfile
SNDFILE_CONFIGURE_WITH= libsndfile
NLS_USES=       gettext
NLS_CONFIGURE_ENABLE=   nls

post-patch:
    @${REINPLACE_CMD} -e \
        '/^Icon/s|=.*|=${PREFIX}/share/pixmaps/mhwaveedit.xpm|' \
        ${WRKSRC}/share/applications/mhwaveedit.desktop

.include <bsd.port.mk>