2000-04-25 23:19:17 +02:00
|
|
|
# New ports collection makefile for: sdl_mixer
|
2000-11-01 16:51:11 +01:00
|
|
|
# Date created: 24 April 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
2000-04-25 23:19:17 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sdl_mixer
|
2008-03-13 14:54:11 +01:00
|
|
|
PORTVERSION= 1.2.8
|
2008-03-14 23:55:54 +01:00
|
|
|
PORTREVISION= 1
|
2000-04-25 23:19:17 +02:00
|
|
|
CATEGORIES= audio
|
2001-04-06 15:40:21 +02:00
|
|
|
MASTER_SITES= http://www.libsdl.org/projects/SDL_mixer/release/
|
2000-04-25 23:19:17 +02:00
|
|
|
DISTNAME= SDL_mixer-${PORTVERSION}
|
|
|
|
|
2009-02-19 22:45:43 +01:00
|
|
|
MAINTAINER= mva@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A sample multi-channel audio mixer library
|
2000-04-25 23:19:17 +02:00
|
|
|
|
2008-03-13 14:54:11 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2004-03-08 02:01:31 +01:00
|
|
|
USE_SDL= sdl
|
2000-04-25 23:19:17 +02:00
|
|
|
USE_GMAKE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2008-03-13 14:54:11 +01:00
|
|
|
CPPFLAGS+= -DCONFIG_FILE_ETC_TIMIDITY \"${LOCALBASE}/etc/timidity.cfg\"
|
2006-09-20 13:21:59 +02:00
|
|
|
USE_LDCONFIG= yes
|
2000-04-25 23:19:17 +02:00
|
|
|
|
2008-03-13 14:54:11 +01:00
|
|
|
OPTIONS= MIKMOD "Enable MOD music via libMikMod" On \
|
|
|
|
SMPEG "Enable MP3 music via SMPEG" On \
|
2008-03-14 23:55:54 +01:00
|
|
|
VORBIS "Enable Ogg Vorbis music" On \
|
|
|
|
TIMIDITYPLUS "Use Timidity++ instead of Timidity" Off
|
2005-07-19 22:56:50 +02:00
|
|
|
|
2005-07-19 19:32:07 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-07-19 22:56:50 +02:00
|
|
|
.if defined(WITHOUT_MIKMOD)
|
2008-03-13 14:54:11 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-music-libmikmod
|
2005-07-19 22:56:50 +02:00
|
|
|
.else
|
|
|
|
LIB_DEPENDS= mikmod.2:${PORTSDIR}/audio/libmikmod
|
2008-03-13 14:54:11 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-music-libmikmod
|
2005-07-19 19:32:07 +02:00
|
|
|
.endif
|
|
|
|
|
2008-03-13 14:54:11 +01:00
|
|
|
.if defined(WITHOUT_SMPEG)
|
|
|
|
CONFIGURE_ARGS+=--disable-music-mp3
|
2005-07-19 22:56:50 +02:00
|
|
|
.else
|
2008-03-13 14:54:11 +01:00
|
|
|
LIB_DEPENDS+= smpeg.1:${PORTSDIR}/multimedia/smpeg
|
|
|
|
CONFIGURE_ARGS+=--enable-music-mp3
|
2005-07-19 22:56:50 +02:00
|
|
|
.endif
|
|
|
|
|
2008-03-13 14:54:11 +01:00
|
|
|
.if defined(WITHOUT_VORBIS)
|
|
|
|
CONFIGURE_ARGS+=--disable-music-ogg
|
2005-07-19 22:56:50 +02:00
|
|
|
.else
|
2008-03-13 14:54:11 +01:00
|
|
|
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis
|
|
|
|
CONFIGURE_ARGS+=--enable-music-ogg
|
2005-07-19 22:56:50 +02:00
|
|
|
.endif
|
2001-01-29 19:58:06 +01:00
|
|
|
|
2008-03-14 23:55:54 +01:00
|
|
|
post-patch:
|
|
|
|
.if defined(WITH_TIMIDITYPLUS)
|
|
|
|
@${REINPLACE_CMD} -e 's|"${LOCALBASE}/lib/timidity"|"${LOCALBASE}/share/timidity"|g' \
|
|
|
|
${WRKSRC}/timidity/config.h
|
|
|
|
.endif
|
|
|
|
|
2005-07-19 19:32:07 +02:00
|
|
|
.include <bsd.port.post.mk>
|