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
33 lines
805 B
Makefile
33 lines
805 B
Makefile
# Created by: xaimus <xaimus@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= lv2core
|
|
PORTVERSION= 6.0
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://lv2plug.in/spec/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= LV2 Core Package
|
|
|
|
LICENSE= ISCL
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= pkgconfig python:build tar:bzip2 waf
|
|
|
|
.if defined(BATCH) || defined(PACKAGE_BUILDING)
|
|
MAKE_ARGS+= --verbose
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/autowaf.build_pc/s|^|#|' ${WRKSRC}/wscript
|
|
@(cd ${WRKSRC} && ${SED} -e \
|
|
's|@PREFIX@|${PREFIX}| ; \
|
|
s|@EXEC_PREFIX@|${PREFIX}| ; \
|
|
s|@LIBDIR@|${PREFIX}/lib| ; \
|
|
s|@INCLUDEDIR@|${PREFIX}/include| ; \
|
|
s|@LV2CORE_VERSION@|${PORTVERSION}|' < lv2core.pc.in > lv2core.pc)
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/lv2core.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
|
|
|
.include <bsd.port.mk>
|