121 lines
3.6 KiB
Makefile
121 lines
3.6 KiB
Makefile
# Created by: trevor
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= denemo
|
|
PORTVERSION= 1.2.4
|
|
CATEGORIES= audio
|
|
MASTER_SITES= GNU
|
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
|
COMMENT= Graphical score editor
|
|
|
|
LICENSE= GPLv3
|
|
|
|
LIB_DEPENDS= libaubio.so:${PORTSDIR}/audio/aubio \
|
|
libfluidsynth.so:${PORTSDIR}/audio/fluidsynth \
|
|
libjack.so:${PORTSDIR}/audio/jack \
|
|
libsmf.so:${PORTSDIR}/audio/libsmf \
|
|
libsndfile.so:${PORTSDIR}/audio/libsndfile \
|
|
libportaudio.so:${PORTSDIR}/audio/portaudio \
|
|
librubberband.so:${PORTSDIR}/audio/rubberband \
|
|
libguile.so:${PORTSDIR}/lang/guile \
|
|
libfftw3.so:${PORTSDIR}/math/fftw3
|
|
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils
|
|
|
|
USES= bison gettext gmake pkgconfig
|
|
USE_GNOME= 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
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
PORTDATA= *
|
|
PLIST_FILES= bin/cairo_svg2path \
|
|
bin/denemo \
|
|
bin/denemo_file_update \
|
|
bin/generate_source \
|
|
share/appdata/denemo.appdata.xml \
|
|
share/applications/denemo.desktop \
|
|
share/fonts/truetype/denemo/Denemo.ttf \
|
|
share/fonts/truetype/denemo/emmentaler.ttf \
|
|
share/fonts/truetype/denemo/feta.ttf \
|
|
share/pixmaps/denemo.png
|
|
.for i in cs de en_GB es fr it ja pl sv
|
|
PLIST_FILES+= share/locale/${i}/LC_MESSAGES/denemo.mo
|
|
.endfor
|
|
|
|
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:${PORTSDIR}/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:${PORTSDIR}/graphics/evince
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGTK2} && ${PORT_OPTIONS:MPDF}
|
|
LIB_DEPENDS+= libatrilview.so:${PORTSDIR}/graphics/atril
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|-lpthread|-pthread| ; \
|
|
/^CFLAGS=/s|_LIBS|_CFLAGS| ; \
|
|
s|evince-view-2.32 >= 2.|atril-view-1.5.|' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e \
|
|
'/ docs /d ; \
|
|
/) install-data-hook/s|^|#|' ${WRKSRC}/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:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
.for i in actions templates
|
|
@(cd ${WRKSRC} && ${TAR} --exclude "*Makefile*" -cf - ${i}) | \
|
|
(cd ${STAGEDIR}${DATADIR} && ${TAR} --unlink -xf -)
|
|
@${FIND} ${STAGEDIR}${DATADIR}/${i} -type d -print0 | \
|
|
${XARGS} -0 ${CHMOD} a+rx
|
|
@${FIND} ${STAGEDIR}${DATADIR}/${i} -type f -print0 | \
|
|
${XARGS} -0 ${CHMOD} ${SHAREMODE}
|
|
.endfor
|
|
@${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
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/manual
|
|
(cd ${WRKSRC}/docs && ${INSTALL_DATA} *.html \
|
|
${STAGEDIR}${DOCSDIR}/manual)
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/manual/images
|
|
(cd ${WRKSRC}/docs/images && ${INSTALL_DATA} *.png \
|
|
${STAGEDIR}${DOCSDIR}/manual/images)
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
(cd ${WRKSRC}/examples && ${INSTALL_DATA} *.denemo \
|
|
${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
.include <bsd.port.mk>
|