# $OpenBSD: Makefile.template,v 1.75 2016/03/20 17:19:49 naddy Exp $
COMMENT =	Open standard for audio plugins, succesor to LADSPA

DISTNAME =	lv2-1.14.0
PKGNAME =	lv2-1.14.0

CATEGORIES =	audio

HOMEPAGE =	http://lv2plug.in

MAINTAINER =		brittlehaus@gmail.com

# MULTI: ISCL/MIT
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB =		X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
			Xi Xinerama Xrandr Xrender atk-1.0 cairo expat \
			fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 \
			glib-2.0 gmodule-2.0 gobject-2.0 graphite2 gtk-x11-2.0 \
			harfbuzz intl m pango-1.0 pangocairo-1.0 pangoft2-1.0 \
			pcre pixman-1 png pthread pthread-stubs sndfile xcb \
			xcb-render xcb-shm z

MASTER_SITES =		http://lv2plug.in/spec/

EXTRACT_SUFX =		.tar.bz2

MODULES =		lang/python
RUN_DEPENDS =		textproc/py-lxml \
			textproc/py-pygments \
			textproc/py-rdflib
LIB_DEPENDS =		audio/libsndfile \
			x11/gtk+2


SEPARATE_BUILD =	concurrent
CONFIGURE_ARGS =	--prefix=${LOCALBASE} \
			--copy-headers

#NO_TEST =		Yes

#WRKDIST =		??? if other than ${WRKDIR}/${DISTNAME}
#WRKSRC =		??? if other than ${WRKDIST}
#WRKBUILD =		??? if other than ${WRKSRC}
#WRKCONF =		??? if other than ${WRKBUILD}

WAF = ${WRKSRC}/waf

do-configure:
	cd ${WRKSRC} && ${MODPY_BIN} ${WAF} configure ${CONFIGURE_ARGS}

do-build:
	cd ${WRKSRC} && ${MODPY_BIN} ${WAF} build

do-install:
	cd ${WRKSRC} && ${MODPY_BIN} ${WAF} install
.include <bsd.port.mk>
