aboutsummaryrefslogtreecommitdiffstats
path: root/audio/alure/Makefile
blob: e264145e4bedd071d2e3d58da04810cb5d0bbc22 (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
# Created by: nemysis <nemysis@gmx.ch>
# $FreeBSD$

PORTNAME=   alure
PORTVERSION=    1.2
PORTREVISION=   4
CATEGORIES= audio
MASTER_SITES=   http://kcat.strangesoft.net/alure-releases/

MAINTAINER= nemysis@FreeBSD.org
COMMENT=    Utility library to help manage common tasks with OpenAL

LICENSE=    MIT

USES=       cmake openal:soft pkgconfig
USE_LDCONFIG=   yes
CMAKE_ARGS= -DBUILD_STATIC:BOOL=FALSE

PORTDOCS=   *
PORTEXAMPLES=   *

OPTIONS_DEFINE=     DOCS DUMB EXAMPLES FLAC FLUIDSYNTH MPG123 MODPLUG VORBIS SNDFILE
OPTIONS_DEFAULT=    DUMB FLAC VORBIS SNDFILE

DUMB_DESC=      DUMB audio library decoding support

DOCS_BUILD_DEPENDS= NaturalDocs:devel/naturaldocs
DUMB_BUILD_DEPENDS= ${LOCALBASE}/include/dumb.h:audio/dumb
DUMB_CMAKE_ON=      -DDUMB:BOOL=TRUE
DUMB_CMAKE_OFF=     -DDUMB:BOOL=FALSE
FLAC_LIB_DEPENDS=   libFLAC.so:audio/flac
FLAC_CMAKE_ON=      -DFLAC:BOOL=TRUE
FLAC_CMAKE_OFF=     -DFLAC:BOOL=FALSE
FLUIDSYNTH_LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth
FLUIDSYNTH_CMAKE_ON=    -DFLUIDSYNTH:BOOL=TRUE
FLUIDSYNTH_CMAKE_OFF=   -DFLUIDSYNTH:BOOL=FALSE
MPG123_LIB_DEPENDS= libmpg123.so:audio/mpg123
MPG123_CMAKE_ON=    -DMPG123:BOOL=TRUE
MPG123_CMAKE_OFF=   -DMPG123:BOOL=FALSE
MODPLUG_LIB_DEPENDS=    libmodplug.so:audio/libmodplug
MODPLUG_CMAKE_ON=   -DMODPLUG:BOOL=TRUE
MODPLUG_CMAKE_OFF=  -DMODPLUG:BOOL=FALSE
VORBIS_LIB_DEPENDS= libvorbis.so:audio/libvorbis
VORBIS_CMAKE_ON=    -DVORBIS:BOOL=TRUE
VORBIS_CMAKE_OFF=   -DVORBIS:BOOL=FALSE
SNDFILE_LIB_DEPENDS=    libsndfile.so:audio/libsndfile
SNDFILE_CMAKE_ON=   -DSNDFILE:BOOL=TRUE
SNDFILE_CMAKE_OFF=  -DSNDFILE:BOOL=FALSE

post-patch:
    @${REINPLACE_CMD} -e 's|lib$${LIB_SUFFIX}/pkgconfig|libdata/pkgconfig|' \
        -e 's|LIBFLAC_LIBRARIES|FLAC_LIBRARIES|' \
        ${WRKSRC}/CMakeLists.txt

post-patch-DOCS-on:
    @${REINPLACE_CMD} \
        -e 's|INSTALL(DIRECTORY "$${ALURE_SOURCE_DIR}/docs/html"|INSTALL(DIRECTORY "$${ALURE_SOURCE_DIR}/docs/html" "$${ALURE_SOURCE_DIR}/docs/naturaldocs"|' \
        ${WRKSRC}/CMakeLists.txt
post-patch-DOCS-off:
    @${REINPLACE_CMD} -i '' '/FIND_PROGRAM(NATDOCS_BIN NaturalDocs)/,/ENDIF(NATDOCS_BIN)/s/^/#/' ${WRKSRC}/CMakeLists.txt
    @${REINPLACE_CMD} -i '' -e '/INSTALL(DIRECTORY "$${ALURE_SOURCE_DIR}/,+2d' ${WRKSRC}/CMakeLists.txt

post-install:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>