1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/audio/slv2/Makefile
John Marino fae67ba03e audio/slv2: Set the make environment on the do-build target
While here, unmask all the build and install commands.
2015-02-20 13:51:53 +00:00

56 lines
1.4 KiB
Makefile

# Created by: xaimus <xaimus@gmail.com>
# $FreeBSD$
PORTNAME= slv2
PORTVERSION= 0.6.6
CATEGORIES= audio
MASTER_SITES= http://download.drobilla.net/
MAINTAINER= ports@FreeBSD.org
COMMENT= LV2 Application Support Library
LICENSE= GPLv2 # (or later)
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/include/lv2.h:${PORTSDIR}/audio/lv2core
LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack \
librdf.so:${PORTSDIR}/textproc/redland
USES= pkgconfig python:build tar:bzip2
USE_LDCONFIG= yes
.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
do-configure:
(cd ${WRKSRC} && ${PYTHON_CMD} \
waf ${WAF_VERBOSE} --prefix=${PREFIX} configure)
do-build:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} \
waf ${WAF_VERBOSE} ${WAF_JOBS} build)
do-install:
(cd ${WRKSRC} && ${PYTHON_CMD} \
waf ${WAF_VERBOSE} --destdir=${STAGEDIR} install)
.for file in lv2_inspect lv2_jack_host lv2_list lv2_simple_jack_host
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file}
.endfor
.include <bsd.port.post.mk>