aboutsummaryrefslogtreecommitdiffstats
path: root/audio/lash/Makefile
blob: 005f7a2501ddec53500c01469063bb86dd64c0f4 (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
# Created by: Edward Tomasz Napierala <trasz@pin.if.uz.zgora.pl>
# $FreeBSD$

PORTNAME=   lash
PORTVERSION=    0.5.4
PORTREVISION=   11
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=    libjack.so:audio/jack \
        libdssialsacompat.so:audio/libdssialsacompat \
        libuuid.so:misc/e2fsprogs-libuuid

USES=       gmake pathfix pkgconfig libtool
USE_GNOME=  gtk20 libxml2
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-alsa-midi
USE_LDCONFIG=   yes
LIBS=       -luuid
INSTALL_TARGET= install-strip

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

OPTIONS_DEFINE= READLINE PYTHON DOCS
OPTIONS_DEFAULT=READLINE
OPTIONS_SUB=    yes

PYTHON_DESC=    Build pylash
PYTHON_USES=    python
PYTHON_BUILD_DEPENDS=   swig:devel/swig13
PYTHON_CONFIGURE_OFF=   --disable-pylash

READLINE_USES=      readline
READLINE_CONFIGURE_ENV_OFF= vl_cv_lib_readline=no

DOCS_BUILD_DEPENDS= texi2html:textproc/texi2html
DOCS_CONFIGURE_ENV_OFF= ac_cv_prog_lash_texi2html=no

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

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/docs/lash-manual-html-one-page/lash-manual.html \
        ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>