[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / audio / suil

File: [cvs.NetBSD.org] / pkgsrc / audio / suil / Makefile (download)

Revision 1.7, Mon Sep 17 07:27:40 2018 UTC (2 years ago) by maya
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3
Changes since 1.6: +3 -1 lines

suil: we're using a builtin waf, it is an older one that doesn't support
newer python. restrict to 2.7.

reported by john d. baker in pkgsrc-users

# $NetBSD: Makefile,v 1.7 2018/09/17 07:27:40 maya Exp $

DISTNAME=	suil-0.8.2
PKGREVISION=	5
CATEGORIES=	audio
MASTER_SITES=	http://download.drobilla.net/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	ryoon@NetBSD.org
HOMEPAGE=	https://drobilla.net/software/suil/
COMMENT=	Lightweight C library for loading and wrapping LV2 plugin UIs
LICENSE=	isc

DISTFILES=	${DEFAULT_DISTFILES} \
		audacity-minsrc-2.1.2.tar.xz
SITES.audacity-minsrc-2.1.2.tar.xz=	${MASTER_SITE_LOCAL}

USE_TOOLS+=	pkg-config
USE_LANGUAGES=	c c++

PKGCONFIG_OVERRIDE+=	suil.pc.in

# Use older waf
PYTHON_VERSIONS_ACCEPTED=	27

WAF_ENV+=	CC=${CC:Q}
WAF_ENV+=	CFLAGS=${CFLAGS:Q}
WAF_ENV+=	CXX=${CXX:Q}
WAF_ENV+=	CXXFLAGS=${CXXFLAGS:Q}
WAF_ENV+=	DESTDIR=${DESTDIR}
WAF_ENV+=	LINKFLAGS=${LDFLAGS:Q}
WAF_ENV+=	PATH=${PATH:Q}
WAF_ENV+=	PREFIX=${PREFIX}
.if defined(MAKE_JOBS)
WAF_ENV+=	JOBS=${MAKE_JOBS}
.endif

# Kludge to support rst2man on Mac OS X, PR pkg/49921
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
WAF_ENV+=	LC_ALL="en_US.UTF-8"
.endif

WAF_ARGS=	--mandir=${PREFIX}/${PKGMANDIR}

pre-configure:
	${CP} -r ${WRKDIR}/audacity-minsrc-2.1.2/lib-src/lv2/suil/waflib \
		${WRKSRC}

do-configure:
	cd ${WRKSRC} && ${SETENV} ${WAF_ENV} ./waf ${WAF_ARGS} ${WAF_CONFIGURE_ARGS} configure

do-build:
	cd ${WRKSRC} && ${SETENV} ${WAF_ENV} ./waf ${WAF_ARGS}

do-install:
	cd ${WRKSRC} && ${SETENV} ${WAF_ENV} ./waf ${WAF_ARGS} install

.include "../../audio/lv2/buildlink3.mk"
.include "../../lang/python/tool.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"