aboutsummaryrefslogtreecommitdiffstats
path: root/audio/blop/Makefile
blob: 9f67ea8fbca270dff69e1f8b4b49fb7aae9e2e0c (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
# Created by: Tilman Linneweh <arved@FreeBSD.org>
# $FreeBSD$

PORTNAME=   blop
PORTVERSION=    0.2.8
PORTREVISION=   2
CATEGORIES= audio
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/0.2

MAINTAINER= ports@FreeBSD.org
COMMENT=    Bandlimited oscillator plugins for LADSPA-aware audio applications

BUILD_DEPENDS=  ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa

NO_STAGE=   yes
USES=       gmake
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-ladspa-prefix="${LOCALBASE}"

OPTIONS_DEFINE= NLS

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB+= NLS="@comment "
.endif

post-patch:
    @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
        's|$$(LIBS)$$|$$(LIBS) $$(LDFLAGS)|g ; \
         s|-lc | |g'

.include <bsd.port.mk>