sdl-mixer-1.2.0 import

--
SDL_mixer is a sample multi-channel audio mixer library. It supports
any number of simultaneously playing channels of 16 bit stereo audio,
plus a single channel of music, mixed by the popular MikMod MOD, Timidity
MIDI and SMPEG MP3 libraries.
This commit is contained in:
obecian 2001-05-07 04:07:03 +00:00
parent 438f51ae67
commit f1a090a62b
9 changed files with 183 additions and 0 deletions

38
devel/sdl-mixer/Makefile Normal file
View File

@ -0,0 +1,38 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/05/07 04:07:03 obecian Exp $
COMMENT= "SDL multi-channel audio mixer library"
VER= 1.2.0
PROJ= SDL_mixer
DISTNAME= ${PROJ}-${VER}
PKGNAME= sdl-mixer-${VER}
CATEGORIES= devel audio
NEED_VERSION= 1.405
MASTER_SITES= http://www.libsdl.org/projects/${PROJ}/release/
HOMEPAGE= http://www.libsdl.org/
MAINTAINER= Mark Grimes <obecian@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
FLAVORS= vorbis
FLAVOR?=
.if ${FLAVOR:L} == "vorbis"
LIB_DEPENDS+= vorbis.0::audio/libvorbis
.endif
LIB_DEPENDS= SDL.:sdl-*-!no_x11:devel/sdl \
smpeg.1::devel/smpeg
USE_X11= Yes
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${X11BASE}/lib"
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (SDL_mixer-1.2.0.tar.gz) = 3348f6b971b9acf54dbc74d5c57abc63
RMD160 (SDL_mixer-1.2.0.tar.gz) = 45ad6d41a0fe66b5da91312bfd20a5ed0e333ed2
SHA1 (SDL_mixer-1.2.0.tar.gz) = 088ed9a1e69f4be1d100d151dc61518a9d38cd63

View File

@ -0,0 +1,10 @@
--- Makefile.am.orig Sat May 5 15:22:41 2001
+++ Makefile.am Sat May 5 15:22:59 2001
@@ -39,7 +39,6 @@ EXTRA_DIST = \
autogen.sh
libSDL_mixer_la_LDFLAGS = \
- -release $(LT_RELEASE) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
libSDL_mixer_la_LIBADD = $(MIKMOD_LIB) $(TIMIDITY_LIB)

View File

@ -0,0 +1,11 @@
--- Makefile.in.orig Sat May 5 15:24:12 2001
+++ Makefile.in Sat May 5 15:26:22 2001
@@ -108,7 +108,7 @@ libSDL_mixer_la_SOURCES = mixer.c m
EXTRA_DIST = CHANGES VisualC.zip MPWmake.sea.bin CWprojects.sea.hqx autogen.sh
-libSDL_mixer_la_LDFLAGS = -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+libSDL_mixer_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
libSDL_mixer_la_LIBADD = $(MIKMOD_LIB) $(TIMIDITY_LIB)

View File

@ -0,0 +1,51 @@
--- ltconfig.orig Sat May 5 15:27:02 2001
+++ ltconfig Sat May 5 15:30:43 2001
@@ -1105,6 +1105,9 @@ cygwin* | mingw*)
with_gnu_ld=no
fi
;;
+openbsd*)
+ with_gnu_ld=no
+ ;;
esac
@@ -1403,10 +1406,21 @@ else
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
- hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
+ case "$host_os" in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then
+ export_dynamic_flag_spec='${wl}-E'
+ fi
+ ;;
+ esac
;;
os2*)
@@ -2029,13 +2043,10 @@ netbsd*)
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
- fi
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
+ deplibs_check_method='pass_all'
;;
os2*)

View File

@ -0,0 +1,53 @@
--- ltmain.sh.orig Sat May 5 15:31:38 2001
+++ ltmain.sh Sat May 5 15:33:01 2001
@@ -1799,6 +1799,9 @@ compiler."
# rhapsody is a little odd...
deplibs="$deplibs -framework System"
;;
+ *-*-openbsd*)
+ # do not include libc due to us having libc/libc_r.
+ ;;
*)
# Add libc to deplibs on all other systems.
deplibs="$deplibs -lc"
@@ -3567,40 +3570,6 @@ libdir='$install_libdir'\
# Exit here if they wanted silent mode.
test "$show" = : && exit 0
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- echo " $libdir"
- done
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- echo "specify the full pathname of the library, or use \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- echo " during execution"
- fi
- if test -n "$runpath_var"; then
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
- echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- echo
- echo "See any operating system documentation about shared libraries for"
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
- echo "----------------------------------------------------------------------"
exit 0
;;

View File

@ -0,0 +1,6 @@
SDL_mixer is a sample multi-channel audio mixer library. It supports any number
of simultaneously playing channels of 16 bit stereo audio, plus a single
channel of music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3
libraries.
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2001/05/07 04:07:03 obecian Exp $
lib/libSDL_mixer.so.0.0
DYNLIBDIR(%B)

View File

@ -0,0 +1,8 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/05/07 04:07:03 obecian Exp $
bin/playmus
bin/playwave
include/SDL/SDL_mixer.h
lib/libSDL_mixer.a
lib/libSDL_mixer.la
%%SHARED%%
@dirrm include/SDL