8157e9f800
Plug waf into MAKE_CMD and CONFIGURE_CMD so the regular defined targets can be reused Always define _MAKE_JOBS so that when bsd.port.mk will stop overwritting _MAKE_JOBS when parallel jobs are disabled we can enforce -j1 (which is needed to really disable parallelisation with waf WAF_CMD has been created to allow one to override the location of the waf script relatively to WRKSRC CONFIGURE_TARGET is by default defined to "configure" ALL_TARGET is by default defined to "build" INSTALL_TARGET is by default defined to "install" USES=waf is by default stagedir safe
41 lines
1 KiB
Makefile
41 lines
1 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 tar:bzip2 waf
|
|
USE_LDCONFIG= yes
|
|
|
|
.if defined(BATCH) || defined(PACKAGE_BUILDING)
|
|
MAKE_ARGS= --verbose
|
|
.endif
|
|
|
|
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
|
|
|
|
post-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.mk>
|