blob: 48d34d2a90bc7677e7ae4393d216e9735d3da7ba (
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
PORTNAME= denemo
PORTVERSION= 2.0.6
PORTREVISION= 18
CATEGORIES= audio
MASTER_SITES= GNU
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Graphical score editor
WWW= http://www.denemo.org/
LICENSE= GPLv3+
BROKEN_mips= fails to package: tar: Pathname cannot be converted from UTF-8 to current locale
LIB_DEPENDS= libaubio.so:audio/aubio \
libfluidsynth.so:audio/fluidsynth \
libjack.so:audio/jack \
libsmf.so:audio/libsmf \
libsndfile.so:audio/libsndfile \
libportaudio.so:audio/portaudio \
librubberband.so:audio/rubberband \
libharfbuzz.so:print/harfbuzz \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libsamplerate.so:audio/libsamplerate \
libfftw3.so:math/fftw3
RUN_DEPENDS= xdg-open:devel/xdg-utils
EXTRACT_BEFORE_ARGS=\
-s '!\(/Clarinet in B\).*\(\.denemo\)$$!\1b\2!p' -xf
USES= bison:alias compiler:c++11-lang desktop-file-utils gettext gmake \
gnome guile:1.8 localbase:ldflags pkgconfig
USE_GNOME= cairo intltool librsvg2 libxml2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-jack \
--disable-alsa \
--disable-portmidi \
--disable-gtk-doc \
--disable-gtk-doc-html \
--disable-gtk-doc-pdf \
--enable-guile_1_8
CFLAGS+= -Wno-error=return-type
OPTIONS_DEFINE= DOCS EXAMPLES LILYPOND PDF
OPTIONS_SINGLE= TOOLKIT
OPTIONS_SINGLE_TOOLKIT= GTK2 GTK3
OPTIONS_DEFAULT= GTK3
GTK2_USE= gnome=gtk20,gtksourceview2
GTK2_CONFIGURE_ON= --enable-gtk2
GTK3_USE= gnome=gtk30,gtksourceview3
LILYPOND_DESC= Install LilyPond (Printing)
LILYPOND_RUN_DEPENDS= lilypond:print/lilypond
PDF_CONFIGURE_OFF= --disable-evince
TOOLKIT_DESC= GTK toolkit
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGTK3} && ${PORT_OPTIONS:MPDF}
LIB_DEPENDS+= libevview3.so:graphics/evince
.endif
.if ${PORT_OPTIONS:MGTK2} && ${PORT_OPTIONS:MPDF}
LIB_DEPENDS+= libatrilview.so:graphics/atril
.endif
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|-lpthread|-pthread| ; \
/^CFLAGS=/s|_LIBS|_CFLAGS| ; \
s|evince-view-2.30 >= 2.|atril-view-1.5.|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
'/) install-data-hook/s|^|#|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
'/^docdir/s|$$(datadir)/$${PACKAGE}|@docdir@|' \
${WRKSRC}/docs/Makefile.in
@${REINPLACE_CMD} -e \
'/^imagedir/s|$$(datadir)/$${PACKAGE}|@docdir@|' \
${WRKSRC}/docs/images/Makefile.in
@${REINPLACE_CMD} -e \
's|"firefox"|"xdg-open"|' ${WRKSRC}/src/core/prefops.c
.if ${PORT_OPTIONS:MGTK2} && ${PORT_OPTIONS:MPDF}
@${FIND} ${WRKSRC}/src -name "*.c" | ${XARGS} ${REINPLACE_CMD} -e \
'/^#include/s|evince|atril|'
.endif
post-install:
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "actions templates" \
${STAGEDIR}${DATADIR})
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog NEWS
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
.for i in DESIGN DESIGN.lilypond GOALS TODO
(cd ${WRKSRC}/docs && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${INSTALL_DATA} *.denemo \
${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.post.mk>
|