Lines 15-93
Link Here
|
15 |
MAINTAINER= dyeske@yahoo.com |
15 |
MAINTAINER= dyeske@yahoo.com |
16 |
COMMENT= A SDL audio library and player for some popular sound file formats |
16 |
COMMENT= A SDL audio library and player for some popular sound file formats |
17 |
|
17 |
|
18 |
USE_SDL= sdl |
|
|
19 |
USE_AUTOTOOLS= libtool:15 |
18 |
USE_AUTOTOOLS= libtool:15 |
20 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
|
|
21 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
22 |
LDFLAGS="-L${LOCALBASE}/lib" |
23 |
USE_LDCONFIG= yes |
19 |
USE_LDCONFIG= yes |
|
|
20 |
USE_SDL= sdl |
21 |
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} |
22 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" |
23 |
|
24 |
OPTIONS= FLAC "Enable flac support" on \ |
25 |
MIKMOD "Enable mikmod support" on \ |
26 |
PHYSFS "Enable physfs support" on \ |
27 |
SMPEG "Enable smpeg support" on \ |
28 |
SPEEX "Enable speex support" on \ |
29 |
MIDI "Enable MIDI support" on \ |
30 |
VORBIS "Enable Ogg Vorbis support" on |
24 |
|
31 |
|
25 |
.include <bsd.port.pre.mk> |
32 |
.include <bsd.port.pre.mk> |
26 |
|
33 |
|
27 |
.if !defined(WITHOUT_FLAC) |
34 |
.if !defined(WITHOUT_FLAC) |
28 |
LIB_DEPENDS+= FLAC.7:${PORTSDIR}/audio/flac |
35 |
LIB_DEPENDS+= FLAC.7:${PORTSDIR}/audio/flac |
29 |
.else |
36 |
.else |
30 |
CONFIGURE_ARGS+= --disable-flac |
37 |
CONFIGURE_ARGS+=--disable-flac |
31 |
.endif |
38 |
.endif |
32 |
|
39 |
|
33 |
.if !defined(WITHOUT_MIKMOD) |
40 |
.if !defined(WITHOUT_MIKMOD) |
34 |
LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod |
41 |
LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod |
35 |
.else |
42 |
.else |
36 |
CONFIGURE_ARGS+= --disable-mikmod |
43 |
CONFIGURE_ARGS+=--disable-mikmod |
37 |
.endif |
44 |
.endif |
38 |
|
45 |
|
39 |
.if !defined(WITHOUT_PHYSFS) |
46 |
.if !defined(WITHOUT_PHYSFS) |
40 |
LIB_DEPENDS+= physfs-1.0.1:${PORTSDIR}/devel/physfs |
47 |
LIB_DEPENDS+= physfs-1.0.1:${PORTSDIR}/devel/physfs |
41 |
.else |
48 |
.else |
42 |
CONFIGURE_ARGS+= --disable-physfs |
49 |
CONFIGURE_ARGS+=--disable-physfs |
43 |
.endif |
50 |
.endif |
44 |
|
51 |
|
45 |
.if !defined(WITHOUT_SMPEG) |
52 |
.if !defined(WITHOUT_SMPEG) |
46 |
LIB_DEPENDS+= smpeg.1:${PORTSDIR}/multimedia/smpeg |
53 |
LIB_DEPENDS+= smpeg.1:${PORTSDIR}/multimedia/smpeg |
|
|
54 |
CONFIGURE_ARGS+=--disable-mpglib |
47 |
.else |
55 |
.else |
48 |
CONFIGURE_ARGS+= --disable-smpeg |
56 |
CONFIGURE_ARGS+=--disable-smpeg |
49 |
.endif |
57 |
.endif |
50 |
|
58 |
|
51 |
.if !defined(WITHOUT_SPEEX) |
59 |
.if !defined(WITHOUT_SPEEX) |
52 |
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex |
60 |
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex |
53 |
.else |
61 |
.else |
54 |
CONFIGURE_ARGS+= --disable-speex |
62 |
CONFIGURE_ARGS+=--disable-speex |
55 |
.endif |
63 |
.endif |
56 |
|
64 |
|
57 |
.if !defined(WITHOUT_MIDI) |
65 |
.if !defined(WITHOUT_MIDI) |
58 |
RUN_DEPENDS+= ${LOCALBASE}/lib/timidity/goemon.cfg:${PORTSDIR}/audio/timidity |
66 |
RUN_DEPENDS+= ${LOCALBASE}/lib/timidity/goemon.cfg:${PORTSDIR}/audio/timidity |
59 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/timidity/goemon.cfg:${PORTSDIR}/audio/timidity |
67 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/timidity/goemon.cfg:${PORTSDIR}/audio/timidity |
60 |
.else |
68 |
.else |
61 |
CONFIGURE_ARGS+= --disable-midi |
69 |
CONFIGURE_ARGS+=--disable-midi |
62 |
.endif |
70 |
.endif |
63 |
|
71 |
|
64 |
.if !defined(WITHOUT_VORBIS) |
72 |
.if !defined(WITHOUT_VORBIS) |
65 |
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis |
73 |
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis |
66 |
.else |
74 |
.else |
67 |
CONFIGURE_ARGS+= --disable-ogg |
75 |
CONFIGURE_ARGS+=--disable-ogg |
68 |
.endif |
76 |
.endif |
69 |
|
77 |
|
70 |
pre-extract: |
78 |
.if defined(WITHOUT_SMPEG) |
71 |
.if !defined(WITHOUT_FLAC) |
79 |
pre-everything:: |
72 |
@${ECHO_MSG} "You can disable support for flac by defining WITHOUT_FLAC." |
80 |
@${ECHO_CMD} |
73 |
.endif |
81 |
@${ECHO_CMD} "WARNING: the built-in MP3 support is currently broken, consider enabling the SMPEG option to use that library instead." | ${FMT} |
74 |
.if !defined(WITHOUT_MIKMOD) |
82 |
@${ECHO_CMD} |
75 |
@${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_MIKMOD." |
|
|
76 |
.endif |
77 |
.if !defined(WITHOUT_PHYSFS) |
78 |
@${ECHO_MSG} "You can disable support for physfs by defining WITHOUT_PHYSFS." |
79 |
.endif |
80 |
.if !defined(WITHOUT_SMPEG) |
81 |
@${ECHO_MSG} "You can disable support for smpeg by defining WITHOUT_SMPEG." |
82 |
.endif |
83 |
.if !defined(WITHOUT_SPEEX) |
84 |
@${ECHO_MSG} "You can disable support for speex by defining WITHOUT_SPEEX." |
85 |
.endif |
86 |
.if !defined(WITHOUT_MIDI) |
87 |
@${ECHO_MSG} "You can disable support for midi by defining WITHOUT_MIDI." |
88 |
.endif |
89 |
.if !defined(WITHOUT_VORBIS) |
90 |
@${ECHO_MSG} "You can disable support for vorbis by defining WITHOUT_VORBIS." |
91 |
.endif |
83 |
.endif |
92 |
|
84 |
|
93 |
.include <bsd.port.post.mk> |
85 |
.include <bsd.port.post.mk> |