aboutsummaryrefslogtreecommitdiffstats
path: root/audio/lv2core/Makefile
blob: ba8226235614e5c8b51301a70fba596542344185 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# New ports collection makefile for:    lv2core
# Date created:     2008-11-20
# Whom:         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=    BSD
LICENSE_FILE=   ${WRKSRC}/COPYING

USE_BZIP2=  yes
USE_PYTHON_BUILD=   yes
USE_GNOME=  pkgconfig
MAKE_JOBS_SAFE= yes

.include <bsd.port.pre.mk>

.if defined(BATCH) || defined(PACKAGE_BUILDING)
WAF_VERBOSE=    --verbose
.endif

.if defined(MAKE_JOBS_NUMBER)
WAF_JOBS=   --jobs=${MAKE_JOBS_NUMBER}
.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)

do-configure:
    @(cd ${WRKSRC} && ./waf ${WAF_VERBOSE} --prefix=${PREFIX} configure)

do-build:
    @(cd ${WRKSRC} && ./waf ${WAF_VERBOSE} ${WAF_JOBS} build)

do-install:
    @(cd ${WRKSRC} && ./waf ${WAF_VERBOSE} install)
    ${INSTALL_DATA} ${WRKSRC}/lv2core.pc ${PREFIX}/libdata/pkgconfig

.include <bsd.port.post.mk>