Lines 6-37
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= sdl_sound |
8 |
PORTNAME= sdl_sound |
9 |
PORTVERSION= 1.0.0 |
9 |
PORTVERSION= 1.0.1 |
10 |
CATEGORIES= audio |
10 |
CATEGORIES= audio |
11 |
MASTER_SITES= http://www.icculus.org/SDL_sound/downloads/ |
11 |
MASTER_SITES= http://www.icculus.org/SDL_sound/downloads/ |
12 |
DISTNAME= SDL_sound-1.0.0 |
12 |
DISTNAME= SDL_sound-${PORTVERSION} |
13 |
|
13 |
|
14 |
MAINTAINER= dyeske@yahoo.com |
14 |
MAINTAINER= dyeske@yahoo.com |
15 |
COMMENT= A SDL audio library and player for some popular sound file formats |
15 |
COMMENT= A SDL audio library and player for some popular sound file formats |
16 |
|
16 |
|
17 |
LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12 |
17 |
USE_SDL= yes |
18 |
|
|
|
19 |
GNU_CONFIGURE= yes |
20 |
USE_LIBTOOL= yes |
21 |
USE_REINPLACE= yes |
18 |
USE_REINPLACE= yes |
|
|
19 |
USE_LIBTOOL= yes |
20 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
21 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
22 |
LDFLAGS="-L${LOCALBASE}/lib" |
22 |
INSTALLS_SHLIB= yes |
23 |
INSTALLS_SHLIB= yes |
23 |
|
24 |
|
24 |
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" |
|
|
25 |
SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config |
26 |
|
27 |
post-patch: |
28 |
@${REINPLACE_CMD} -E -e \ |
29 |
's|^program_transform_name.+$$||' \ |
30 |
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} |
31 |
@${REINPLACE_CMD} -E -e \ |
32 |
's|\$$\(includedir\)/SDL|\$$(includedir)/SDL11|' \ |
33 |
${CONFIGURE_WRKSRC}/Makefile.in |
34 |
|
35 |
.include <bsd.port.pre.mk> |
25 |
.include <bsd.port.pre.mk> |
36 |
|
26 |
|
37 |
.if !defined(WITHOUT_FLAC) |
27 |
.if !defined(WITHOUT_FLAC) |
Lines 46-57
Link Here
|
46 |
CONFIGURE_ARGS+= --disable-mikmod |
36 |
CONFIGURE_ARGS+= --disable-mikmod |
47 |
.endif |
37 |
.endif |
48 |
|
38 |
|
|
|
39 |
.if !defined(WITHOUT_PHYSFS) |
40 |
LIB_DEPENDS+= physfs-0.1.9:${PORTSDIR}/devel/physfs |
41 |
.else |
42 |
CONFIGURE_ARGS+= --disable-physfs |
43 |
.endif |
44 |
|
49 |
.if !defined(WITHOUT_SMPEG) |
45 |
.if !defined(WITHOUT_SMPEG) |
50 |
LIB_DEPENDS+= smpeg.1:${PORTSDIR}/multimedia/smpeg |
46 |
LIB_DEPENDS+= smpeg.1:${PORTSDIR}/multimedia/smpeg |
51 |
.else |
47 |
.else |
52 |
CONFIGURE_ARGS+= --disable-smpeg |
48 |
CONFIGURE_ARGS+= --disable-smpeg |
53 |
.endif |
49 |
.endif |
54 |
|
50 |
|
|
|
51 |
.if !defined(WITHOUT_SPEEX) |
52 |
LIB_DEPENDS+= speex.2:${PORTSDIR}/audio/speex |
53 |
.else |
54 |
CONFIGURE_ARGS+= --disable-speex |
55 |
.endif |
56 |
|
55 |
.if !defined(WITHOUT_MIDI) |
57 |
.if !defined(WITHOUT_MIDI) |
56 |
RUN_DEPENDS+= ${LOCALBASE}/lib/timidity/goemon.cfg:${PORTSDIR}/audio/timidity |
58 |
RUN_DEPENDS+= ${LOCALBASE}/lib/timidity/goemon.cfg:${PORTSDIR}/audio/timidity |
57 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/timidity/goemon.cfg:${PORTSDIR}/audio/timidity |
59 |
BUILD_DEPENDS+= ${LOCALBASE}/lib/timidity/goemon.cfg:${PORTSDIR}/audio/timidity |
Lines 72-85
Link Here
|
72 |
.if !defined(WITHOUT_MIKMOD) |
74 |
.if !defined(WITHOUT_MIKMOD) |
73 |
@${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_MIKMOD." |
75 |
@${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_MIKMOD." |
74 |
.endif |
76 |
.endif |
|
|
77 |
.if !defined(WITHOUT_PHYSFS) |
78 |
@${ECHO_MSG} "You can disable support for physfs by defining WITHOUT_PHYSFS." |
79 |
.endif |
75 |
.if !defined(WITHOUT_SMPEG) |
80 |
.if !defined(WITHOUT_SMPEG) |
76 |
@${ECHO_MSG} "You can disable support for smpeg by defining WITHOUT_SMPEG." |
81 |
@${ECHO_MSG} "You can disable support for smpeg by defining WITHOUT_SMPEG." |
77 |
.endif |
82 |
.endif |
|
|
83 |
.if !defined(WITHOUT_SPEEX) |
84 |
@${ECHO_MSG} "You can disable support for speex by defining WITHOUT_SPEEX." |
85 |
.endif |
78 |
.if !defined(WITHOUT_MIDI) |
86 |
.if !defined(WITHOUT_MIDI) |
79 |
@${ECHO_MSG} "You can disable support for midi by defining WITHOUT_MIDI." |
87 |
@${ECHO_MSG} "You can disable support for midi by defining WITHOUT_MIDI." |
80 |
.endif |
88 |
.endif |
81 |
.if !defined(WITHOUT_VORBIS) |
89 |
.if !defined(WITHOUT_VORBIS) |
82 |
@${ECHO_MSG} "You can disable support for vorbis by defining WITHOUT_VORBIS." |
90 |
@${ECHO_MSG} "You can disable support for vorbis by defining WITHOUT_VORBIS." |
83 |
.endif |
91 |
.endif |
|
|
92 |
|
93 |
post-patch: |
94 |
@${REINPLACE_CMD} -e 's|$$(includedir)/SDL|$$(includedir)/SDL11|' \ |
95 |
${WRKSRC}/Makefile.in |
84 |
|
96 |
|
85 |
.include <bsd.port.post.mk> |
97 |
.include <bsd.port.post.mk> |