blob: 8036b83866c2dc5575f79e171b00138a309da6d5 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# -*-mode: makefile-*-
# New ports collection makefile for: aRts
# Date created: 18 February 2002
# Whom: will@cvs.kde.org
#
# $FreeBSD$
#
PORTNAME= arts
PORTVERSION= 1.3.1
PORTEPOCH= 1
CATEGORIES= audio kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${KDE_VERSION:S/.0//}/src
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= Audio system for the KDE integrated X11 desktop
LIB_DEPENDS+= audiofile:${PORTSDIR}/audio/libaudiofile \
mad:${PORTSDIR}/audio/libmad \
ogg:${PORTSDIR}/audio/libogg \
glib:${PORTSDIR}/devel/glib20 \
vorbis:${PORTSDIR}/audio/libvorbis
WANT_GNOME= yes
USE_QT_VER= 3
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
INSTALLS_SHLIB= yes
QTCPPFLAGS+= -L${LOCALBASE}/lib
USE_REINPLACE= yes
DO_NOT_COMPILE+=gmcop
_NO_KDE_CLOSURE=yes
_NO_KDE_FINAL= yes
CFLAGS+= -DHAVE_VASPRINTF
CONFIGURE_ENV+= DO_NOT_COMPILE="${DO_NOT_COMPILE}"
CONFIGURE_TARGET= # empty
CONFIGURE_ARGS+=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
OPTIONS= ESD "Enable esound support" off \
NAS "Enable NAS support" off
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>
.if defined(WITH_ESD)
USE_GNOME+= esound
.endif
.if defined(WITH_NAS)
LIB_DEPENDS+= audio:${PORTSDIR}/audio/nas
.endif
pre-configure:
@${REINPLACE_CMD} -e 's|-O2||g' -e 's|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/${CONFIGURE_SCRIPT}
.if defined(WITHOUT_ESD)
${REINPLACE_CMD} -e 's|arts_libesd_include=yes|arts_libesd_include=no|g' \
${WRKSRC}/configure
.endif
.if defined(WITH_NAS)
${REINPLACE_CMD} \
-e 's|LIBS="-laudio $$LIBS"|LIBS="-laudio -lm -lXt -lXau $$LIBS"|g' \
${WRKSRC}/configure
.elseif defined(WITHOUT_NAS)
${REINPLACE_CMD} \
-e 's|ac_cv_lib_audio_AuOpenServer=yes|ac_cv_lib_audio_AuOpenServer=no|g' \
${WRKSRC}/configure
.endif
.include <bsd.port.post.mk>
|