aboutsummaryrefslogtreecommitdiffstats
path: root/audio/lash/Makefile
blob: 88f2a33abfd98a9798c0bbc7256f8aac6953347e (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
54
55
56
57
58
59
60
61
62
63
# Created by: Edward Tomasz Napierala <trasz@pin.if.uz.zgora.pl>
# $FreeBSD$

PORTNAME=   lash
PORTVERSION=    0.5.4
PORTREVISION=   8
CATEGORIES= audio
MASTER_SITES=   SAVANNAH

MAINTAINER= ports@FreeBSD.org
COMMENT=    Session management system for JACK audio applications

LICENSE=    GPLv2 GPLv3
LICENSE_COMB=   dual

LIB_DEPENDS=    jack:${PORTSDIR}/audio/jack \
        dssialsacompat:${PORTSDIR}/audio/libdssialsacompat \
        uuid:${PORTSDIR}/misc/e2fsprogs-libuuid

OPTIONS_DEFINE= READLINE DOCS
OPTIONS_DEFAULT=READLINE

USES=       pathfix
USE_GNOME=  gtk20 libxml2
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-alsa-midi
USE_LDCONFIG=   yes
MAKE_JOBS_SAFE= yes

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

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MREADLINE}
USES+=      readline
PLIST_SUB+= READLINE=""
.else
CONFIGURE_ENV+= vl_cv_lib_readline=no
PLIST_SUB+= READLINE="@comment "
.endif

.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html
.else
CONFIGURE_ENV+= ac_cv_prog_lash_texi2html=no
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        '/if test/s|==|=|' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e \
        '/texi2html/s|--number||' ${WRKSRC}/docs/Makefile.in

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}/docs/lash-manual-html-one-page \
        && ${INSTALL_DATA} lash-manual.html ${DOCSDIR}
.endif

.include <bsd.port.mk>