1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/audio/ardour/Makefile
Edward Tomasz Napierala 40fa6ee965 - Unbreak (distfile for 2.0 disappeared) by upgrading to 2.0.2.
Approved by:	portmgr (erwin), miwi (mentor)
2007-05-22 14:12:32 +00:00

92 lines
2.8 KiB
Makefile

# New ports collection makefile for: ardour
# Date created: 2006-12-04
# Whom: trasz <trasz@pin.if.uz.zgora.pl>
#
# $FreeBSD$
#
PORTNAME= ardour
PORTVERSION= 2.0.2
CATEGORIES= audio
MASTER_SITES= http://ardour.org/files/releases/
DISTFILES= ardour-${DISTVERSION}.tar.bz2
EXTRACT_ONLY= ardour-${DISTVERSION}.tar.bz2
MAINTAINER= trasz@freebsd.org
COMMENT= Ardour - a digital audio workstation
LIB_DEPENDS= lrdf.2:${PORTSDIR}/textproc/liblrdf \
raptor.2:${PORTSDIR}/textproc/raptor \
samplerate.1:${PORTSDIR}/audio/libsamplerate \
jack.0:${PORTSDIR}/audio/jack \
sndfile.1:${PORTSDIR}/audio/libsndfile \
boost_date_time.3:${PORTSDIR}/devel/boost \
gnomecanvasmm-2.6:${PORTSDIR}/graphics/libgnomecanvasmm26 \
sqlite3:${PORTSDIR}/databases/sqlite3 \
lo.6:${PORTSDIR}/audio/liblo \
SoundTouch.0:${PORTSDIR}/audio/soundtouch
USE_SCONS= yes
SCONS_ENV+= SYSLIBS=yes PREFIX=${PREFIX} NLS=yes FPU_OPTIMIZATION=0
CFLAGS+= -I${LOCALBASE}/include
USE_BZIP2= yes
USE_GNOME= gtk20 libxslt libgnomecanvas intltool
USE_GETTEXT= yes
USE_LDCONFIG= ${PREFIX}/lib/ardour2 ${PREFIX}/lib/ardour2/surfaces
TEMPLATESDIR= ${PREFIX}/share/ardour2/templates
PLIST_SUB= DISTVERSION=${DISTVERSION}
OPTIONS= OPTIMIZED_CFLAGS "Builds with compiler optimizations" on \
VST "Enable VST plugins support" off
.include <bsd.port.pre.mk>
.if defined(WITH_VST)
# Yes, 'PlugIns' is not a typo.
VST_DIST+= vst_sdk2_3.zip
RESTRICTED= Redistribution of the VST PlugIns SDK is not allowed
RESTRICTED_FILES= ${VST_DIST}
DISTFILES+= ${VST_DIST}
SCONS_ENV+= VST=yes
BUILD_DEPENDS+= winegcc:${PORTSDIR}/emulators/wine \
unzip:${PORTSDIR}/archivers/unzip \
gsed:${PORTSDIR}/textproc/gsed
LIB_DEPENDS+= wine.1:${PORTSDIR}/emulators/wine
.if !exists(${DISTDIR}/${VST_DIST})
IGNORE= download the VST 2.3 SDK from Steinberg (http://www.steinberg.de/331+M52087573ab0.html) and copy ${VST_DIST} into ${DISTDIR}
.endif
PLIST_SUB+= NO_VST="@comment "
PLIST_SUB+= VST=""
.else
PLIST_SUB+= NO_VST=""
PLIST_SUB+= VST="@comment "
.endif
# Upstream uses these flags by default.
.if !defined(WITHOUT_OPTIMIZED_CFLAGS)
# XXX: what about SSE?
CFLAGS+= -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce
.endif
CFLAGS:= ${CFLAGS:N-fno-strict-aliasing}
post-patch:
${REINPLACE_CMD} -e "s|%%CFLAGS%%|${CFLAGS}|g" ${WRKSRC}/SConstruct
${REINPLACE_CMD} -e "s|alsa_pcm|oss|g" ${WRKSRC}/templates/*.template
.if defined(WITH_VST)
${CP} ${DISTDIR}/${VST_DIST} ${WRKSRC}/libs/fst/
.endif
post-install:
${CHOWN} -R 0:0 ${PREFIX}/lib/ardour2/
${CHMOD} -R a+rX ${PREFIX}/lib/ardour2/
${CHOWN} -R 0:0 ${PREFIX}/etc/ardour2/
${CHMOD} -R a+rX ${PREFIX}/etc/ardour2/
${CHOWN} -R 0:0 ${PREFIX}/share/ardour2/
${CHMOD} -R a+rX ${PREFIX}/share/ardour2/
${MKDIR} ${TEMPLATESDIR}
${INSTALL_DATA} ${WRKSRC}/templates/*.template ${TEMPLATESDIR}/
.include <bsd.port.post.mk>