aboutsummaryrefslogtreecommitdiffstats
path: root/audio/muse/Makefile
blob: 4af4440ef9427812b88b5995074f90ae10b52572 (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
58
59
60
61
# ex:ts=8
# Ports collection makefile for:    muse
# Date created:         Jun 7, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   MuSE
PORTVERSION=    0.9.2
PORTREVISION=   4
CATEGORIES= audio
MASTER_SITES=   ftp://ftp.dyne.org/muse/releases/ \
        http://www.ljudmila.org/~jaromil/muse/releases/

MAINTAINER= stas@FreeBSD.org
COMMENT=    Multiple Streaming Engine

LIB_DEPENDS=    vorbis.4:${PORTSDIR}/audio/libvorbis \
        ogg.6:${PORTSDIR}/audio/libogg

USE_GETTEXT=    yes
USE_GNOME=  gnometarget
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --disable-debug --disable-lubrify --disable-rpath
CPPFLAGS=   -I${LOCALBASE}/include -DHAVE_DECL_GETOPT -DHAVE_SYS_UIO_H \
        ${PTHREAD_CFLAGS}
LDFLAGS=    -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lintl

OPTIONS=    X11 "Build with X11 support" on \
        MP3 "Build with MP3 support" on \
        SNDFILE "Build with sndfile support" on

.include <bsd.port.pre.mk>

.if defined(WITHOUT_X11)
PKGNAMESUFFIX=  -nox11
CONFIGURE_ARGS+=--without-x --with-rubik
.else
USE_GNOME+= gtk20
.endif

.if !defined(WITHOUT_MP3) || exists(${LOCALBASE}/lib/libmp3lame.so.0)
LIB_DEPENDS+=   mp3lame.0:${PORTSDIR}/audio/lame
.endif

.if !defined(WITHOUT_SNDFILE) || exists(${LOCALBASE}/lib/libsndfile.so.1)
LIB_DEPENDS+=   sndfile.1:${PORTSDIR}/audio/libsndfile
.endif

MAN1=       muse.1

post-patch:
.if exists(/usr/include/sys/soundcard.h)
    ${REINPLACE_CMD} -e "s,machine/soundcard.h,sys/soundcard.h,g" \
        ${WRKSRC}/src/portaudio/pa_unix_oss.c
.endif

.include <bsd.port.post.mk>