freebsd-ports/audio/sdl_mixer/Makefile
Martin Wilke 3e4ed01146 - 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 17:56:05 +00:00

62 lines
1.6 KiB
Makefile

# New ports collection makefile for: sdl_mixer
# Date created: 24 April 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= sdl_mixer
PORTVERSION= 1.2.8
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://www.libsdl.org/projects/SDL_mixer/release/
DISTNAME= SDL_mixer-${PORTVERSION}
MAINTAINER= mva@sysfault.org
COMMENT= A sample multi-channel audio mixer library
USE_AUTOTOOLS= libtool:15
USE_SDL= sdl
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CPPFLAGS+= -DCONFIG_FILE_ETC_TIMIDITY \"${LOCALBASE}/etc/timidity.cfg\"
USE_LDCONFIG= yes
OPTIONS= MIKMOD "Enable MOD music via libMikMod" On \
SMPEG "Enable MP3 music via SMPEG" On \
VORBIS "Enable Ogg Vorbis music" On \
TIMIDITYPLUS "Use Timidity++ instead of Timidity" Off
.include <bsd.port.pre.mk>
.if defined(WITHOUT_MIKMOD)
CONFIGURE_ARGS+=--disable-music-libmikmod
.else
LIB_DEPENDS= mikmod.2:${PORTSDIR}/audio/libmikmod
CONFIGURE_ARGS+=--enable-music-libmikmod
.endif
.if defined(WITHOUT_SMPEG)
CONFIGURE_ARGS+=--disable-music-mp3
.else
LIB_DEPENDS+= smpeg.1:${PORTSDIR}/multimedia/smpeg
CONFIGURE_ARGS+=--enable-music-mp3
.endif
.if defined(WITHOUT_VORBIS)
CONFIGURE_ARGS+=--disable-music-ogg
.else
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis
CONFIGURE_ARGS+=--enable-music-ogg
.endif
post-patch:
.if defined(WITH_TIMIDITYPLUS)
@${REINPLACE_CMD} -e 's|"${LOCALBASE}/lib/timidity"|"${LOCALBASE}/share/timidity"|g' \
${WRKSRC}/timidity/config.h
.endif
.include <bsd.port.post.mk>