patches for configuration files... hope this works...
[pkgsrc-ardour.git] / Makefile
1 # $NetBSD$
2 #
3
4 DISTNAME=       ardour-2.8.6
5 CATEGORIES=     audio
6
7 EXTRACT_SUFX= .tar.bz2
8
9 MAINTAINER=     pho@cielonegro.org
10 COMMENT=        Digital Audio Workstation
11 LICENSE=        gnu-gpl-v2
12
13 FETCH_MESSAGE+= " The file ${DISTNAME}${EXTRACT_SUFX} containing ${PKGNAME}"
14 FETCH_MESSAGE+= ""
15 FETCH_MESSAGE+= " must be fetched into:"
16 FETCH_MESSAGE+= "       ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"
17 FETCH_MESSAGE+= " from:"
18 FETCH_MESSAGE+= "       http://ardour.org/download"
19 FETCH_MESSAGE+= ""
20 FETCH_MESSAGE+= " Choose \`source code for all platforms' then click \`Continue'."
21
22 NO_CONFIGURE=   yes
23 USE_LIBTOOL=    yes
24 USE_LANGUAGES=  c c++
25 USE_TOOLS+=             pkg-config
26
27 PKG_DESTDIR_SUPPORT= user-destdir
28
29 SCONS_ENV=      ${CONFIGURE_ENV} ${MAKE_ENV}
30 SCONS_ARGS=     PREFIX=${PREFIX:Q}
31
32 .include "../../mk/bsd.prefs.mk"
33 .if defined(DESTDIR)
34 SCONS_ARGS+=    DESTDIR=${DESTDIR:Q}
35 .endif
36
37 EXAMPLES_DIR=   ${PREFIX}/share/examples/${PKGBASE}
38 SCONS_ARGS+=    SYSCONFDIR=${PKG_SYSCONFDIR:Q}
39 SCONS_ARGS+=    SYSCONFEXDIR=${EXAMPLES_DIR:Q}
40 CONF_FILES=     \
41         ${EXAMPLES_DIR}/SAE-de-keypad.bindings   ${PKG_SYSCONFDIR}/SAE-de-keypad.bindings   \
42         ${EXAMPLES_DIR}/SAE-de-nokeypad.bindings ${PKG_SYSCONFDIR}/SAE-de-nokeypad.bindings \
43         ${EXAMPLES_DIR}/SAE-us-keypad.bindings   ${PKG_SYSCONFDIR}/SAE-us-keypad.bindings   \
44         ${EXAMPLES_DIR}/SAE-us-nokeypad.bindings ${PKG_SYSCONFDIR}/SAE-us-nokeypad.bindings \
45         ${EXAMPLES_DIR}/ardour-sae.menus         ${PKG_SYSCONFDIR}/ardour-sae.menus         \
46         ${EXAMPLES_DIR}/ardour.menus             ${PKG_SYSCONFDIR}/ardour.menus             \
47         ${EXAMPLES_DIR}/ardour2_ui_dark.rc       ${PKG_SYSCONFDIR}/ardour2_ui_dark.rc       \
48         ${EXAMPLES_DIR}/ardour2_ui_dark_sae.rc   ${PKG_SYSCONFDIR}/ardour2_ui_dark_sae.rc   \
49         ${EXAMPLES_DIR}/ardour2_ui_default.conf  ${PKG_SYSCONFDIR}/ardour2_ui_default.conf  \
50         ${EXAMPLES_DIR}/ardour2_ui_light.rc      ${PKG_SYSCONFDIR}/ardour2_ui_light.rc      \
51         ${EXAMPLES_DIR}/ardour2_ui_light_sae.rc  ${PKG_SYSCONFDIR}/ardour2_ui_light_sae.rc
52
53 do-build:
54 .if defined(DESTDIR)
55 # Scons complains about nonexistent paths.
56         ${RUN} ${MKDIR} ${DESTDIR:Q}
57 .endif
58         ${RUN} cd ${WRKSRC} && \
59                 ${SETENV} ${SCONS_ENV} scons ${SCONS_ARGS}
60
61 do-install:
62         ${RUN} cd ${WRKSRC} && \
63                 ${SETENV} ${SCONS_ENV} scons ${SCONS_ARGS} install
64
65 BUILD_DEPENDS+= scons>=0.96:../../devel/scons
66 .include "../../audio/alsa-lib/buildlink3.mk"
67 .include "../../wip/aubio/buildlink3.mk"
68 .include "../../audio/jack/buildlink3.mk"
69 .include "../../wip/liblo/buildlink3.mk"
70 .include "../../audio/libsamplerate/buildlink3.mk"
71 .include "../../audio/libsndfile/buildlink3.mk"
72 .include "../../devel/boost-headers/buildlink3.mk"
73 .include "../../devel/gettext-lib/buildlink3.mk"
74 .include "../../devel/glib2/buildlink3.mk"
75 .include "../../devel/pango/buildlink3.mk"
76 .include "../../graphics/freetype2/buildlink3.mk"
77 .include "../../graphics/libgnomecanvas/buildlink3.mk"
78 .include "../../math/fftw/buildlink3.mk"
79 .include "../../math/fftwf/buildlink3.mk"
80 .include "../../textproc/liblrdf/buildlink3.mk"
81 .include "../../textproc/libxml2/buildlink3.mk"
82 .include "../../textproc/libxslt/buildlink3.mk"
83 .include "../../textproc/raptor/buildlink3.mk"
84 .include "../../x11/gtk2/buildlink3.mk"
85 .include "../../mk/dlopen.buildlink3.mk"
86 .include "../../mk/bsd.pkg.mk"