aboutsummaryrefslogtreecommitdiffstats
path: root/audio/denemo/Makefile
blob: f4f700cbe6ddfb4dc9aa1badd251497f28fc2140 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# New ports collection makefile for:    denemo
# Date created:             2001-02-24
# Whom:                 trevor
#
# $FreeBSD$
#

PORTNAME=   denemo
PORTVERSION=    0.9.2
PORTREVISION=   1
CATEGORIES= audio
MASTER_SITES=   GNU

MAINTAINER= multimedia@FreeBSD.org
COMMENT=    Graphical score editor

BUILD_DEPENDS=  portaudio>=19:${PORTSDIR}/audio/portaudio2
LIB_DEPENDS=    aubio.3:${PORTSDIR}/audio/aubio \
        fluidsynth.1:${PORTSDIR}/audio/fluidsynth \
        jack.0:${PORTSDIR}/audio/jack \
        guile.21:${PORTSDIR}/lang/guile \
        fftw3:${PORTSDIR}/math/fftw3 \
        smf.0:${PORTSDIR}/audio/libsmf
RUN_DEPENDS=    portaudio>=19:${PORTSDIR}/audio/portaudio2

OPTIONS+=   LILYPOND "Install LilyPond (Printing)" off

USE_GNOME=  gtk20 gtksourceview2 librsvg2 libxml2
USE_BISON=  build
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-jack \
        --sysconfdir=${PREFIX}/etc

PORTDOCS=   *
PORTEXAMPLES=   *

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

.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>

.if defined(WITH_LILYPOND)
RUN_DEPENDS+=   lilypond:${PORTSDIR}/print/lilypond
.endif

.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB+=     NLS="@comment "
.else
USE_GETTEXT=        yes
CONFIGURE_ARGS+=    --enable-nls
PLIST_SUB+=     NLS=""
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|m4 doc actions|m4 actions| ; \
         s|examples templates|templates|' \
         -e "/\/examples/d"  ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e '/<malloc.h>/d' ${WRKSRC}/ltmain.sh

post-install:
    @${LN} -sf ${DOCSDIR}/manual ${DATADIR}/manual
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in AUTHORS ChangeLog NEWS README
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.for i in DESIGN DESIGN.lilypond GOALS TODO
    ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
.endfor
    @${MKDIR} ${DOCSDIR}/manual
    ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}/manual
    @${MKDIR} ${DOCSDIR}/manual/images
    ${INSTALL_DATA} ${WRKSRC}/doc/images/*.png ${DOCSDIR}/manual/images
.endif
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/examples/*.denemo ${EXAMPLESDIR}
.endif

.include <bsd.port.post.mk>