Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= sdl_mixer |
4 |
PORTNAME= sdl_mixer |
5 |
PORTVERSION= 1.2.12 |
5 |
PORTVERSION= 1.2.12 |
6 |
PORTREVISION= 2 |
6 |
PORTREVISION= 3 |
7 |
CATEGORIES= audio |
7 |
CATEGORIES= audio |
8 |
MASTER_SITES= http://www.libsdl.org/projects/SDL_mixer/release/ |
8 |
MASTER_SITES= http://www.libsdl.org/projects/SDL_mixer/release/ |
9 |
DISTNAME= SDL_mixer-${PORTVERSION} |
9 |
DISTNAME= SDL_mixer-${PORTVERSION} |
Lines 23-38
Link Here
|
23 |
CPPFLAGS+= -I${LOCALBASE}/include |
23 |
CPPFLAGS+= -I${LOCALBASE}/include |
24 |
USE_LDCONFIG= yes |
24 |
USE_LDCONFIG= yes |
25 |
|
25 |
|
26 |
OPTIONS_DEFINE= MIKMOD SMPEG FLAC VORBIS TIMIDITYPLUS |
26 |
OPTIONS_DEFINE= MIKMOD SMPEG FLAC VORBIS TIMIDITY FLUID BIN |
27 |
OPTIONS_DEFAULT= MIKMOD SMPEG FLAC VORBIS |
27 |
OPTIONS_DEFAULT= MIKMOD SMPEG FLAC VORBIS TIMIDITY |
28 |
|
28 |
|
29 |
MIKMOD_DESC= Enable MOD music via libMikMod |
29 |
MIKMOD_DESC= Enable MOD music via libMikMod |
30 |
SMPEG_DESC= Enable MP3 music via SMPEG |
30 |
SMPEG_DESC= Enable MP3 music via SMPEG |
31 |
FLAC_DESC= Enable FLAC encoding support via flac |
31 |
FLAC_DESC= Enable FLAC encoding support via flac |
32 |
VORBIS_DESC= Enable Ogg Vorbis music |
32 |
VORBIS_DESC= Enable Ogg Vorbis music |
33 |
TIMIDITYPLUS_DESC= Use Timidity++ instead of Timidity (soundfont) |
33 |
TIMIDITY_DESC= Enable MIDI playback via Timidity (MIDI patches) |
|
|
34 |
FLUID_DESC= Enable MIDI playback via Fluidsynth |
35 |
BIN_DESC= Install sample players (playmus, playwave) |
34 |
|
36 |
|
35 |
.include <bsd.port.pre.mk> |
37 |
.include <bsd.port.options.mk> |
36 |
|
38 |
|
37 |
.if ${PORT_OPTIONS:MMIKMOD} |
39 |
.if ${PORT_OPTIONS:MMIKMOD} |
38 |
LIB_DEPENDS+= mikmod:${PORTSDIR}/audio/libmikmod |
40 |
LIB_DEPENDS+= mikmod:${PORTSDIR}/audio/libmikmod |
Lines 62-77
Link Here
|
62 |
CONFIGURE_ARGS+= --disable-music-ogg |
64 |
CONFIGURE_ARGS+= --disable-music-ogg |
63 |
.endif |
65 |
.endif |
64 |
|
66 |
|
65 |
.if ${PORT_OPTIONS:MTIMIDITYPLUS} |
67 |
.if ${PORT_OPTIONS:MTIMIDITY} || ${PORT_OPTIONS:MFLUID} |
|
|
68 |
CONFIGURE_ARGS+= --enable-music-midi |
69 |
|
70 |
.if ${PORT_OPTIONS:MTIMIDITY} |
71 |
# Internal timidity must used guspat and eawpat patches only, not eawplus |
66 |
RUN_DEPENDS+= ${LOCALBASE}/share/timidity/timidity.cfg-eawpats:${PORTSDIR}/audio/eawpats |
72 |
RUN_DEPENDS+= ${LOCALBASE}/share/timidity/timidity.cfg-eawpats:${PORTSDIR}/audio/eawpats |
67 |
CONFIG_FILE= ${LOCALBASE}/share/timidity/timidity.cfg-eawpats |
73 |
CONFIG_FILE= ${LOCALBASE}/share/timidity/timidity.cfg-eawpats |
|
|
74 |
CONFIGURE_ARGS+= --enable-music-timidity-midi |
75 |
.else |
76 |
CONFIGURE_ARGS+= --disable-music-timidity-midi |
77 |
.endif |
78 |
|
79 |
.if ${PORT_OPTIONS:MFLUID} |
80 |
LIB_DEPENDS+= fluidsynth:${PORTSDIR}/audio/fluidsynth |
81 |
CONFIGURE_ARGS+= --enable-music-fluidsynth-midi |
68 |
.else |
82 |
.else |
69 |
RUN_DEPENDS+= ${LOCALBASE}/lib/timidity/timidity.cfg:${PORTSDIR}/audio/timidity |
83 |
CONFIGURE_ARGS+= --disable-music-fluidsynth-midi |
70 |
CONFIG_FILE= ${LOCALBASE}/lib/timidity/timidity.cfg |
84 |
.endif |
|
|
85 |
|
86 |
.else |
87 |
CONFIGURE_ARGS+= --disable-music-midi |
88 |
.endif ## ${PORT_OPTIONS:MTIMIDITY} || ${PORT_OPTIONS:MFLUID} |
89 |
|
90 |
.if ${PORT_OPTIONS:MBIN} |
91 |
PLIST_FILES+= bin/playmus \ |
92 |
bin/playwave |
71 |
.endif |
93 |
.endif |
72 |
|
94 |
|
73 |
post-patch: |
95 |
post-patch: |
74 |
@${REINPLACE_CMD} -e 's|%%CONFIG_FILE%%|${CONFIG_FILE}|g' \ |
96 |
@${REINPLACE_CMD} -e 's|%%CONFIG_FILE%%|${CONFIG_FILE}|g' \ |
75 |
${WRKSRC}/timidity/config.h |
97 |
${WRKSRC}/timidity/config.h |
|
|
98 |
.if ${PORT_OPTIONS:MBIN} |
99 |
@${REINPLACE_CMD} -e 's|#install-bin|install-bin|' \ |
100 |
${WRKSRC}/Makefile.in |
101 |
.endif |
102 |
|
103 |
post-install: |
104 |
.if ${PORT_OPTIONS:MFLUID} |
105 |
@${ECHO_MSG} "SDL_Mixer install with support MIDI playback via Fluidsynth." |
106 |
@${ECHO_MSG} "You need to export the SDL_SOUNDFONTS env var to a list of soundfonts" |
107 |
@${ECHO_MSG} "" |
108 |
@${ECHO_MSG} "SDL_SOUNDFONTS=\"path_to_soundfonts:another_path_to_soundfonts\"" |
109 |
.endif |
76 |
|
110 |
|
77 |
.include <bsd.port.post.mk> |
111 |
.include <bsd.port.mk> |