2013-04-22 23:19:08 +00:00
|
|
|
# Created by: xaimus <xaimus@gmail.com>
|
2008-11-26 22:16:08 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= slv2
|
2011-08-31 21:43:16 +00:00
|
|
|
PORTVERSION= 0.6.6
|
2008-11-26 22:16:08 +00:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://download.drobilla.net/
|
|
|
|
|
2011-06-12 14:06:28 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2008-11-26 22:16:08 +00:00
|
|
|
COMMENT= LV2 Application Support Library
|
|
|
|
|
2011-08-31 21:43:16 +00:00
|
|
|
LICENSE= GPLv2 # (or later)
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2012-07-26 05:40:22 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/lv2.h:${PORTSDIR}/audio/lv2core
|
2013-11-24 11:49:07 +00:00
|
|
|
LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack \
|
|
|
|
librdf.so:${PORTSDIR}/textproc/redland
|
2008-11-26 22:16:08 +00:00
|
|
|
|
2014-04-08 10:22:15 +00:00
|
|
|
USES= pkgconfig tar:bzip2
|
2008-11-26 22:16:08 +00:00
|
|
|
USE_PYTHON_BUILD= yes
|
2008-11-26 22:20:20 +00:00
|
|
|
USE_LDCONFIG= yes
|
2011-08-31 21:43:16 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(BATCH) || defined(PACKAGE_BUILDING)
|
|
|
|
WAF_VERBOSE= --verbose
|
|
|
|
.endif
|
|
|
|
|
|
|
|
WAF_JOBS= --jobs=${MAKE_JOBS_NUMBER}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/pkgconfig/s|$${LIBDIRNAME}|libdata|' ${WRKSRC}/autowaf.py
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/autowaf.build_dox/s|^|#| ; \
|
|
|
|
/HTMLDIR/s|^|#| ; \
|
|
|
|
/MANDIR/s|^|#|' ${WRKSRC}/wscript
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^#define _XOPEN_SOURCE .*||' ${WRKSRC}/src/plugin.c
|
2008-11-26 22:16:08 +00:00
|
|
|
|
|
|
|
do-configure:
|
2013-11-24 11:49:07 +00:00
|
|
|
@(cd ${WRKSRC} && ${PYTHON_CMD} waf ${WAF_VERBOSE} --prefix=${PREFIX} configure)
|
2008-11-26 22:16:08 +00:00
|
|
|
|
|
|
|
do-build:
|
2013-11-24 11:49:07 +00:00
|
|
|
@(cd ${WRKSRC} && ${PYTHON_CMD} waf ${WAF_VERBOSE} ${WAF_JOBS} build)
|
2008-11-26 22:16:08 +00:00
|
|
|
|
|
|
|
do-install:
|
2014-04-08 10:22:15 +00:00
|
|
|
@(cd ${WRKSRC} && ${PYTHON_CMD} waf ${WAF_VERBOSE} \
|
|
|
|
--destdir=${STAGEDIR} install)
|
2011-08-31 21:43:16 +00:00
|
|
|
.for file in lv2_inspect lv2_jack_host lv2_list lv2_simple_jack_host
|
2014-04-08 10:22:15 +00:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file}
|
2011-08-31 21:43:16 +00:00
|
|
|
.endfor
|
2008-11-26 22:16:08 +00:00
|
|
|
|
2011-08-31 21:43:16 +00:00
|
|
|
.include <bsd.port.post.mk>
|