Allegro is a cross-platform library intended for use in computer games

and other types of multimedia programming.

right now this does not use sndio, will convert in-tree.

originally from & "that's an okay if you promise to take care of allegro
sndio backend ;)" landry@
This commit is contained in:
phessler 2009-10-15 14:38:05 +00:00
parent fc1a38efae
commit c734e403c5
11 changed files with 1459 additions and 0 deletions

50
games/allegro/Makefile Normal file
View File

@ -0,0 +1,50 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/10/15 14:38:05 phessler Exp $
COMMENT = game programming library for C/C++ developers
SHARED_ONLY = Yes
V = 4.2.3
DISTNAME = allegro-$V
CATEGORIES = games devel multimedia
SHARED_LIBS = alleg 0.0 # 4.2
HOMEPAGE = http://alleg.sourceforge.net/
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=alleg/}
# GPL
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
USE_GMAKE = Yes
MAKE_FILE = makefile
ALL_TARGET = default
CONFIGURE_STYLE = gnu autoconf
AUTOCONF_VERSION = 2.61
SUBST_VARS = V
WANTLIB = X11 Xcursor Xext Xpm Xxf86dga Xxf86vm c ossaudio m \
pthread
CONFIGURE_ARGS = --enable-artsdigi=no \
--enable-esddigi=no \
--enable-jackdigi=no \
--enable-ossmidi=no \
--with-x
CONFIGURE_ENV = MAKE=${MAKE_PROGRAM}
MAKE_ENV += shared_major_minor=${LIBalleg_VERSION}
NO_REGRESS = Yes
post-install:
cd ${WRKSRC} && ${MAKE_PROGRAM} install-man
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/allegro
rm -f ${WRKSRC}/docs/html/build/tmpfile.txt
cd ${WRKSRC}/docs/html && pax -rw . ${PREFIX}/share/doc/allegro
.include <bsd.port.mk>

5
games/allegro/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (allegro-4.2.3.tar.gz) = NtPnUFLaA2RQOffaQH78pA==
RMD160 (allegro-4.2.3.tar.gz) = BtqvUxxmC4XldgHO+NuBEbYtiLI=
SHA1 (allegro-4.2.3.tar.gz) = M9wfVaTC/43q4gHfCJU8Nd3JU7M=
SHA256 (allegro-4.2.3.tar.gz) = gA7LvMmd6v2tt5wc52Yz88+uQ1iVHGsr3kwJ9zdOfJs=
SIZE (allegro-4.2.3.tar.gz) = 3179352

View File

@ -0,0 +1,56 @@
$OpenBSD: patch-aclocal_m4,v 1.1.1.1 2009/10/15 14:38:06 phessler Exp $
--- aclocal.m4.orig Mon Sep 28 06:57:48 2009
+++ aclocal.m4 Thu Oct 15 13:13:11 2009
@@ -438,19 +438,19 @@ allegro_enable_ossdigi=yes)
if test -n "$allegro_enable_ossdigi"; then
AC_CHECK_HEADER(soundcard.h, [
- AC_DEFINE(ALLEGRO_HAVE_SOUNDCARD_H, 1)
+ AC_DEFINE(ALLEGRO_HAVE_SOUNDCARD_H, 1, [soundcard.h])
allegro_support_ossdigi=yes
])
AC_CHECK_HEADER(sys/soundcard.h, [
- AC_DEFINE(ALLEGRO_HAVE_SYS_SOUNDCARD_H, 1)
+ AC_DEFINE(ALLEGRO_HAVE_SYS_SOUNDCARD_H, 1, [sys/soundcard.h])
allegro_support_ossdigi=yes
])
AC_CHECK_HEADER(machine/soundcard.h, [
- AC_DEFINE(ALLEGRO_HAVE_MACHINE_SOUNDCARD_H, 1)
+ AC_DEFINE(ALLEGRO_HAVE_MACHINE_SOUNDCARD_H, 1, [machine/soundcard.h])
allegro_support_ossdigi=yes
])
AC_CHECK_HEADER(linux/soundcard.h, [
- AC_DEFINE(ALLEGRO_HAVE_LINUX_SOUNDCARD_H, 1)
+ AC_DEFINE(ALLEGRO_HAVE_LINUX_SOUNDCARD_H, 1, [linux/soundcard.h])
allegro_support_ossdigi=yes
])
@@ -473,15 +473,15 @@ allegro_enable_ossmidi=yes)
if test -n "$allegro_enable_ossmidi"; then
AC_CHECK_HEADER(soundcard.h,
- AC_DEFINE(ALLEGRO_HAVE_SOUNDCARD_H, 1))
+ AC_DEFINE(ALLEGRO_HAVE_SOUNDCARD_H, 1, [soundcard.h]))
AC_CHECK_HEADER(sys/soundcard.h,
- AC_DEFINE(ALLEGRO_HAVE_SYS_SOUNDCARD_H, 1))
+ AC_DEFINE(ALLEGRO_HAVE_SYS_SOUNDCARD_H, 1, [sys/soundcard.h]))
AC_CHECK_HEADER(machine/soundcard.h,
- AC_DEFINE(ALLEGRO_HAVE_MACHINE_SOUNDCARD_H, 1))
+ AC_DEFINE(ALLEGRO_HAVE_MACHINE_SOUNDCARD_H, 1, [machine/soundcard.h]))
AC_CHECK_HEADER(linux/soundcard.h,
- AC_DEFINE(ALLEGRO_HAVE_LINUX_SOUNDCARD_H, 1))
+ AC_DEFINE(ALLEGRO_HAVE_LINUX_SOUNDCARD_H, 1, [linux/soundcard.h]))
AC_CHECK_HEADER(linux/awe_voice.h,
- AC_DEFINE(ALLEGRO_HAVE_LINUX_AWE_VOICE_H, 1))
+ AC_DEFINE(ALLEGRO_HAVE_LINUX_AWE_VOICE_H, 1, [linux/awe_voice.h]))
dnl Link with libossaudio if necessary, used by some BSD systems.
AC_CHECK_LIB(ossaudio, _oss_ioctl)
@@ -623,6 +623,7 @@ if test -n "$allegro_enable_esddigi"; then
fi
fi
fi])
+
dnl
dnl Test for ARTS DIGI driver.

View File

@ -0,0 +1,152 @@
$OpenBSD: patch-configure_in,v 1.1.1.1 2009/10/15 14:38:06 phessler Exp $
--- configure.in.orig Sun Jul 15 06:46:22 2007
+++ configure.in Thu Oct 15 13:13:55 2009
@@ -28,26 +28,26 @@ allegro_enable_asm=yes)
dnl Enable 8-bpp color depth (default).
AC_ARG_ENABLE(color8,
[ --enable-color8[=x] enable support for 8-bpp modes [default=yes]],
-test "X$enableval" != "Xno" && AC_DEFINE(ALLEGRO_COLOR8),
-AC_DEFINE(ALLEGRO_COLOR8))
+test "X$enableval" != "Xno" && AC_DEFINE(ALLEGRO_COLOR8, 1, [enable support for 8-bpp modes]),
+AC_DEFINE(ALLEGRO_COLOR8, 1, [enable support for 8-bpp modes]))
dnl Enable 16-bpp color depth (default).
AC_ARG_ENABLE(color16,
[ --enable-color16[=x] enable support for 16-bpp modes [default=yes]],
-test "X$enableval" != "Xno" && AC_DEFINE(ALLEGRO_COLOR16),
-AC_DEFINE(ALLEGRO_COLOR16))
+test "X$enableval" != "Xno" && AC_DEFINE(ALLEGRO_COLOR16, 1, [enable support for 16-bpp modes]),
+AC_DEFINE(ALLEGRO_COLOR16, 1, [enable support for 16-bpp modes]))
dnl Enable 24-bpp color depth (default).
AC_ARG_ENABLE(color24,
[ --enable-color24[=x] enable support for 24-bpp modes [default=yes]],
-test "X$enableval" != "Xno" && AC_DEFINE(ALLEGRO_COLOR24),
-AC_DEFINE(ALLEGRO_COLOR24))
+test "X$enableval" != "Xno" && AC_DEFINE(ALLEGRO_COLOR24, 1, [enable support for 24-bpp modes]),
+AC_DEFINE(ALLEGRO_COLOR24, 1, [enable support for 24-bpp modes]))
dnl Enable 32-bpp color depth (default).
AC_ARG_ENABLE(color32,
[ --enable-color32[=x] enable support for 32-bpp modes [default=yes]],
-test "X$enableval" != "Xno" && AC_DEFINE(ALLEGRO_COLOR32),
-AC_DEFINE(ALLEGRO_COLOR32))
+test "X$enableval" != "Xno" && AC_DEFINE(ALLEGRO_COLOR32, 1, [enable support for 32-bpp modes]),
+AC_DEFINE(ALLEGRO_COLOR32, 1, [enable support for 32-bpp modes]))
#-----------------------------------------------------------------------------#
@@ -310,8 +310,8 @@ if test "X$allegro_build_static_programs" = "Xyes"; th
allegro_static_libraries=yes
_programs="statically linked $_programs"
else
- LIBALLEG="lib/unix/lib${LIB_TO_LINK}-\$(shared_version).so lib/unix/lib${LIB_TO_LINK}_unsharable.a"
- LINK_LIBALLEG="-Llib/unix -l${LIB_TO_LINK}-\$(shared_version) -l${LIB_TO_LINK}_unsharable -lm"
+ LIBALLEG="lib/unix/lib${LIB_TO_LINK}.so.\$(shared_major_minor) lib/unix/lib${LIB_TO_LINK}_unsharable.a"
+ LINK_LIBALLEG="-Llib/unix -l${LIB_TO_LINK} -l${LIB_TO_LINK}_unsharable -lm"
LINK_WITH_STATIC_LIBS=no
allegro_shared_libraries=yes
_programs="dynamically linked $_programs"
@@ -350,15 +350,15 @@ if test "X$allegro_shared_libraries" = "Xyes"; then
_libraries="$_libraries shared"
if test "X$allegro_build_normal_library" = "Xyes"; then
- ALLEGRO_LIB_TARGETS="$ALLEGRO_LIB_TARGETS lib/unix/liballeg-\$(shared_version).so lib/unix/liballeg_unsharable.a"
+ ALLEGRO_LIB_TARGETS="$ALLEGRO_LIB_TARGETS lib/unix/liballeg.so.\$(shared_major_minor) lib/unix/liballeg_unsharable.a"
_libraries="$_libraries release"
fi
if test "X$allegro_build_debugging_library" = "Xyes"; then
- ALLEGRO_LIB_TARGETS="$ALLEGRO_LIB_TARGETS lib/unix/liballd-\$(shared_version).so lib/unix/liballd_unsharable.a"
+ ALLEGRO_LIB_TARGETS="$ALLEGRO_LIB_TARGETS lib/unix/liballd.so.\$(shared_major_minor) lib/unix/liballd_unsharable.a"
_libraries="$_libraries debug"
fi
if test "X$allegro_build_profiling_library" = "Xyes"; then
- ALLEGRO_LIB_TARGETS="$ALLEGRO_LIB_TARGETS lib/unix/liballp-\$(shared_version).so lib/unix/liballp_unsharable.a"
+ ALLEGRO_LIB_TARGETS="$ALLEGRO_LIB_TARGETS lib/unix/liballp.so.\$(shared_major_minor).so lib/unix/liballp_unsarable.a"
_libraries="$_libraries profile"
fi
fi
@@ -591,13 +591,13 @@ case "$allegro_system" in
allegro_support_linux=yes
AC_CHECK_HEADER(sys/io.h,
- AC_DEFINE(ALLEGRO_HAVE_SYS_IO_H, 1))
+ AC_DEFINE(ALLEGRO_HAVE_SYS_IO_H, 1, [sys/io.h]))
AC_CHECK_HEADER(linux/joystick.h,
- AC_DEFINE(ALLEGRO_HAVE_LINUX_JOYSTICK_H, 1))
+ AC_DEFINE(ALLEGRO_HAVE_LINUX_JOYSTICK_H, 1, [linux/joystick.h]))
AC_CHECK_HEADER(linux/input.h,
- AC_DEFINE(ALLEGRO_HAVE_LINUX_INPUT_H, 1))
+ AC_DEFINE(ALLEGRO_HAVE_LINUX_INPUT_H, 1, [linux/input.h]))
if test "X$allegro_cv_processor_type" = "Xi386" -a "X$allegro_enable_vga" = "Xyes"; then
allegro_support_vga=yes
@@ -752,13 +752,13 @@ AC_SUBST(AR)
#-----------------------------------------------------------------------------#
# Headers, features, functions and macros.
-AC_CHECK_HEADER(dirent.h, AC_DEFINE(ALLEGRO_HAVE_DIRENT_H, 1))
-AC_CHECK_HEADER(inttypes.h, AC_DEFINE(ALLEGRO_HAVE_INTTYPES_H, 1))
-AC_CHECK_HEADER(stdint.h, AC_DEFINE(ALLEGRO_HAVE_STDINT_H, 1))
-AC_CHECK_HEADER(sys/stat.h, AC_DEFINE(ALLEGRO_HAVE_SYS_STAT_H, 1))
-AC_CHECK_HEADER(sys/time.h, AC_DEFINE(ALLEGRO_HAVE_SYS_TIME_H, 1))
-AC_CHECK_HEADER(sys/time.h, AC_DEFINE(ALLEGRO_HAVE_SYS_TIME_H, 1))
-AC_CHECK_HEADER(sys/utsname.h, AC_DEFINE(ALLEGRO_HAVE_SYS_UTSNAME_H, 1))
+AC_CHECK_HEADER(dirent.h, AC_DEFINE(ALLEGRO_HAVE_DIRENT_H, 1, [dirent.h]))
+AC_CHECK_HEADER(inttypes.h, AC_DEFINE(ALLEGRO_HAVE_INTTYPES_H, 1, [inttypes.h]))
+AC_CHECK_HEADER(stdint.h, AC_DEFINE(ALLEGRO_HAVE_STDINT_H, 1, [stdint.h]))
+AC_CHECK_HEADER(sys/stat.h, AC_DEFINE(ALLEGRO_HAVE_SYS_STAT_H, 1, [sys/stat.h]))
+AC_CHECK_HEADER(sys/time.h, AC_DEFINE(ALLEGRO_HAVE_SYS_TIME_H, 1, [sys/time.h]))
+AC_CHECK_HEADER(sys/time.h, AC_DEFINE(ALLEGRO_HAVE_SYS_TIME_H, 1, [sys/time.h]))
+AC_CHECK_HEADER(sys/utsname.h, AC_DEFINE(ALLEGRO_HAVE_SYS_UTSNAME_H, 1, [sys/utsname.h]))
# If the C compiler does not fully support the `const' keyword,
# define `const' to be empty.
@@ -778,14 +778,14 @@ AC_TYPE_SIZE_T
# otherwise, define it to be `int'.
AC_TYPE_SIGNAL
-AC_CHECK_FUNC(mmap, AC_DEFINE(ALLEGRO_HAVE_MMAP, 1))
-AC_CHECK_FUNC(mprotect, AC_DEFINE(ALLEGRO_HAVE_MPROTECT, 1))
-AC_CHECK_FUNC(memcmp, AC_DEFINE(ALLEGRO_HAVE_MEMCMP, 1))
-AC_CHECK_FUNC(mkstemp, AC_DEFINE(ALLEGRO_HAVE_MKSTEMP, 1))
-AC_CHECK_FUNC(stricmp, AC_DEFINE(ALLEGRO_HAVE_STRICMP, 1))
-AC_CHECK_FUNC(strlwr, AC_DEFINE(ALLEGRO_HAVE_STRLWR, 1))
-AC_CHECK_FUNC(strupr, AC_DEFINE(ALLEGRO_HAVE_STRUPR, 1))
-AC_CHECK_FUNC(sysconf, AC_DEFINE(ALLEGRO_HAVE_SYSCONF, 1))
+AC_CHECK_FUNC(mmap, AC_DEFINE(ALLEGRO_HAVE_MMAP, 1, [mmap]))
+AC_CHECK_FUNC(mprotect, AC_DEFINE(ALLEGRO_HAVE_MPROTECT, 1, [mprotect]))
+AC_CHECK_FUNC(memcmp, AC_DEFINE(ALLEGRO_HAVE_MEMCMP, 1, [memcmp]))
+AC_CHECK_FUNC(mkstemp, AC_DEFINE(ALLEGRO_HAVE_MKSTEMP, 1, [mkstemp]))
+AC_CHECK_FUNC(stricmp, AC_DEFINE(ALLEGRO_HAVE_STRICMP, 1, [stricmp]))
+AC_CHECK_FUNC(strlwr, AC_DEFINE(ALLEGRO_HAVE_STRLWR, 1, [strlwr]))
+AC_CHECK_FUNC(strupr, AC_DEFINE(ALLEGRO_HAVE_STRUPR, 1, [strupr]))
+AC_CHECK_FUNC(sysconf, AC_DEFINE(ALLEGRO_HAVE_SYSCONF, 1, [sysconf]))
#-----------------------------------------------------------------------------#
@@ -822,6 +822,7 @@ if test -n "$GCC"; then
else
TARGET_ARCH=
fi
+ TARGET_ARCH=
dnl Allow to specify additional flags.
CFLAGS="$CFLAGS $XCFLAGS"
WFLAGS="$WFLAGS $WCFLAGS"
@@ -833,11 +834,11 @@ if test -n "$GCC"; then
if test "X$allegro_debug_with_dmalloc" = "Xyes"; then
ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DDMALLOC"
fi
- ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
+ ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $TARGET_ARCH $WFLAGS"
if test "X$allegro_cv_support_fomit_frame_pointer" = "Xyes"; then
- CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math -fomit-frame-pointer $WFLAGS"
+ CFLAGS="$CFLAGS $TARGET_ARCH $WFLAGS"
else
- CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS"
+ CFLAGS="$CFLAGS $TARGET_ARCH $WFLAGS"
fi
ALLEGRO_SFLAGS="-x assembler-with-cpp"
ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED"

View File

@ -0,0 +1,38 @@
$OpenBSD: patch-makefile_in,v 1.1.1.1 2009/10/15 14:38:06 phessler Exp $
--- makefile.in.orig Wed Sep 19 15:19:25 2007
+++ makefile.in Thu Oct 15 13:12:42 2009
@@ -472,9 +472,9 @@ install-lib: lib modules
fi; \
done
@for l in alleg alld allp; do \
- if test -f $(LIBDIR)/lib$${l}-$(shared_version).so; then \
- echo Installing $(LIBDIR)/lib$${l}-$(shared_version).so to $(DESTDIR)$(libdir); \
- $(INSTALL_PROGRAM) $(LIBDIR)/lib$${l}-$(shared_version).so $(DESTDIR)$(libdir)/; \
+ if test -f $(LIBDIR)/lib$${l}.so.$(shared_major_minor); then \
+ echo Installing $(LIBDIR)/lib$${l}.so.$(shared_major_minor) to $(DESTDIR)$(libdir); \
+ $(INSTALL_PROGRAM) $(LIBDIR)/lib$${l}.so.$(shared_major_minor) $(DESTDIR)$(libdir)/; \
$(INSTALL_DATA) $(LIBDIR)/lib$${l}_unsharable.a $(DESTDIR)$(libdir)/; \
fi; \
done
@@ -489,21 +489,6 @@ install-lib: lib modules
$(mkinstalldirs) $(DESTDIR)$(bindir)
@echo Installing allegro-config to $(DESTDIR)$(bindir)
@$(INSTALL_PROGRAM) allegro-config $(DESTDIR)$(bindir)
- @if test -n "$(LIBDIR)/liball*-$(shared_version).so"; then \
- (cat /etc/ld.so.conf | grep $(libdir) >/dev/null || \
- test $(libdir) = /lib || test $(libdir) = /usr/lib) \
- && ($(LDCONFIG) $(libdir) || true) || (\
- echo "" ; \
- echo "Warning: shared library destination $(libdir) is not in ldd search path." ; \
- echo "Unless you add it to /etc/ld.so.conf, you must set LD_LIBRARY_PATH to include"; \
- echo "$(libdir) each time you want to run an Allegro program." ; \
- ) ; \
- fi
- @for l in alleg alld allp; do \
- if test -f $(DESTDIR)$(libdir)/lib$${l}-$(shared_version).so -a \! -h $(DESTDIR)$(libdir)/lib$${l}.so.${shared_major_minor}; then \
- (cd $(DESTDIR)$(libdir); ln -s lib$${l}-$(shared_version).so lib$${l}.so.${shared_major_minor}); \
- fi; \
- done
$(mkinstalldirs) $(DESTDIR)$(prefix)/share/aclocal
@echo Installing allegro.m4 to $(DESTDIR)$(prefix)/share/aclocal
@$(INSTALL_DATA) misc/allegro.m4 $(DESTDIR)$(prefix)/share/aclocal

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-makefile_ver,v 1.1.1.1 2009/10/15 14:38:06 phessler Exp $
--- makefile.ver.orig Sun Jul 22 10:32:32 2007
+++ makefile.ver Thu Oct 15 13:12:42 2009
@@ -3,8 +3,8 @@
LIBRARY_VERSION = 42
# Shared library versions for Unix
-shared_version = 4.2.3
-shared_major_minor = 4.2
+shared_version ?= 4.2.3
+shared_major_minor ?= 4.2
# Compatibility version for Mac OS X
compatibility_version = 4.2.0

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-misc_allegro-config_in,v 1.1.1.1 2009/10/15 14:38:06 phessler Exp $
--- misc/allegro-config.in.orig Sun Jul 22 10:32:32 2007
+++ misc/allegro-config.in Thu Oct 15 13:15:51 2009
@@ -185,7 +185,7 @@ if test "$echo_libs" = "yes"; then
if test "$static_libs" = "yes"; then
echo $libdirs $allegro_ldflags -l${lib_type} $allegro_libs
else
- echo $libdirs $allegro_ldflags -l${lib_type}-${version} -l${lib_type}_unsharable
+ echo $libdirs $allegro_ldflags -l${lib_type} -l${lib_type}_unsharable
fi
fi

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-misc_deplib_sh,v 1.1.1.1 2009/10/15 14:38:06 phessler Exp $
--- misc/deplib.sh.orig Sat May 17 14:58:09 2003
+++ misc/deplib.sh Thu Oct 15 13:12:43 2009
@@ -10,7 +10,7 @@ write_code() {
staticlib="lib${1}.a"
staticobj="\$(${2}_OBJECTS)"
- sharelib="lib${1}-\$(shared_version).so"
+ sharelib="lib${1}.so.\$(shared_major_minor)"
shareobj="\$(${2}_SHARED_OBJECTS)"
unsharelib="lib${1}_unsharable.a"

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-src_unix_uoss_c,v 1.1.1.1 2009/10/15 14:38:06 phessler Exp $
--- src/unix/uoss.c.orig Sat Jun 16 03:52:28 2007
+++ src/unix/uoss.c Thu Oct 15 13:12:43 2009
@@ -193,7 +193,7 @@ static int open_oss_device(int input)
ustrzcpy(_oss_driver, sizeof(_oss_driver), get_config_string(uconvert_ascii("sound", tmp1),
uconvert_ascii("oss_driver", tmp2),
- uconvert_ascii("/dev/dsp", tmp3)));
+ uconvert_ascii("/dev/audio", tmp3)));
ustrzcpy(_oss_mixer_driver, sizeof(_oss_mixer_driver), get_config_string(uconvert_ascii("sound", tmp1),
uconvert_ascii("oss_mixer_driver", tmp2),
@@ -249,7 +249,7 @@ static int open_oss_device(int input)
bits = (_sound_bits == 8) ? 8 : 16;
stereo = (_sound_stereo) ? 1 : 0;
- freq = (_sound_freq > 0) ? _sound_freq : 45454;
+ freq = (_sound_freq > 0) ? _sound_freq : 48000;
/* fragment size is specified in samples, not in bytes */
fragsize = _oss_fragsize * (bits / 8) * (stereo ? 2 : 1);

2
games/allegro/pkg/DESCR Normal file
View File

@ -0,0 +1,2 @@
Allegro is a cross-platform library intended for use in computer games
and other types of multimedia programming.

1097
games/allegro/pkg/PLIST Normal file

File diff suppressed because it is too large Load Diff