1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00

New port sdl_sound version 1.0.0: A SDL audio library and player

for some popular sound file formats

Submitted by:	David Yeske <dyeske@yahoo.com>
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2003-02-20 03:50:02 +00:00
parent ad91537e0d
commit be6d48096a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75925
5 changed files with 115 additions and 0 deletions

View File

@ -230,6 +230,7 @@
SUBDIR += s3mod
SUBDIR += sbagen
SUBDIR += sdl_mixer
SUBDIR += sdl_sound
SUBDIR += sfront
SUBDIR += shntool
SUBDIR += shorten

85
audio/sdl_sound/Makefile Normal file
View File

@ -0,0 +1,85 @@
# New ports collection makefile for: sdl_sound
# Date created: 6 Feb 2003
# Whom: David Yeske <dyeske@yahoo.com>
#
# $FreeBSD$
#
PORTNAME= sdl_sound
PORTVERSION= 1.0.0
CATEGORIES= audio
MASTER_SITES= http://www.icculus.org/SDL_sound/downloads/
DISTNAME= SDL_sound-1.0.0
MAINTAINER= dyeske@yahoo.com
COMMENT= A SDL audio library and player for some popular sound file formats
LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include"
SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config
post-patch:
@${REINPLACE_CMD} -E -e \
's|^program_transform_name.+$$||' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
@${REINPLACE_CMD} -E -e \
's|\$$\(includedir\)/SDL|\$$(includedir)/SDL11|' \
${CONFIGURE_WRKSRC}/Makefile.in
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_FLAC)
LIB_DEPENDS+= FLAC.4:${PORTSDIR}/audio/flac
.else
CONFIGURE_ARGS+= --disable-flac
.endif
.if !defined(WITHOUT_MIKMOD)
LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod
.else
CONFIGURE_ARGS+= --disable-mikmod
.endif
.if !defined(WITHOUT_SMPEG)
LIB_DEPENDS+= smpeg.1:${PORTSDIR}/graphics/smpeg
.else
CONFIGURE_ARGS+= --disable-smpeg
.endif
.if !defined(WITHOUT_MIDI)
RUN_DEPENDS+= ${LOCALBASE}/lib/timidity/goemon.cfg:${PORTSDIR}/audio/timidity
BUILD_DEPENDS+= ${LOCALBASE}/lib/timidity/goemon.cfg:${PORTSDIR}/audio/timidity
.else
CONFIGURE_ARGS+= --disable-midi
.endif
.if !defined(WITHOUT_VORBIS)
LIB_DEPENDS+= vorbis.2:${PORTSDIR}/audio/libvorbis
.else
CONFIGURE_ARGS+= --disable-ogg
.endif
pre-extract:
.if !defined(WITHOUT_FLAC)
@${ECHO_MSG} "You can disable support for flac by defining WITHOUT_FLAC."
.endif
.if !defined(WITHOUT_MIKMOD)
@${ECHO_MSG} "You can disable support for mikmod by defining WITHOUT_MIKMOD."
.endif
.if !defined(WITHOUT_SMPEG)
@${ECHO_MSG} "You can disable support for smpeg by defining WITHOUT_SMPEG."
.endif
.if !defined(WITHOUT_MIDI)
@${ECHO_MSG} "You can disable support for midi by defining WITHOUT_MIDI."
.endif
.if !defined(WITHOUT_VORBIS)
@${ECHO_MSG} "You can disable support for vorbis by defining WITHOUT_VORBIS."
.endif
.include <bsd.port.post.mk>

1
audio/sdl_sound/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (SDL_sound-1.0.0.tar.gz) = 864a3b6e899d9a3aba45ce19ceba2ae2

22
audio/sdl_sound/pkg-descr Normal file
View File

@ -0,0 +1,22 @@
SDL_sound is a library that handles the decoding of several popular
sound file formats, such as raw, wav, mp3, flac, ogg, voc, shn,
aiff, au, and some others.
It is meant to make the programmer's sound playback tasks simpler.
The programmer gives SDL_sound a filename, or feeds it data directly
from one of many sources, and then reads the decoded waveform data
back at her leisure.
If resource constraints are a concern, SDL_sound can process sound
data in programmer-specified blocks. Alternately, SDL_sound can
decode a whole sound file and hand back a single pointer to the
whole waveform.
SDL_sound can also handle sample rate, audio format, and channel
conversion on-the-fly and behind-the-scenes, if the programmer
desires.
WWW: http://www.icculus.org/SDL_sound/
- David
dyeske@yahoo.com

View File

@ -0,0 +1,6 @@
bin/playsound
include/SDL11/SDL_sound.h
lib/libSDL_sound-1.0.so.0
lib/libSDL_sound.a
lib/libSDL_sound.so
@unexec rmdir %D/include/SDL11 2>/dev/null || true