diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-04-05 05:02:41 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-04-05 05:02:41 +0000 |
commit | f7fd93660b2e4be3775a5c3486349dd5d53153a9 (patch) | |
tree | e697d9b9d8ca0693c872d478e43882b61bc3c23f /devel/allegro/patches | |
parent | 4c9c692055387513f2a15968c5f14f06578ed008 (diff) | |
download | pkgsrc-f7fd93660b2e4be3775a5c3486349dd5d53153a9.tar.gz |
Initial import of allegro-4.1.13 from pkgsrc-wip, Initial work by
Thomas Klausner plus minor changes by me.
Allegro is a portable library mainly aimed at video game and multimedia
programming, originally started by Shawn Hargreaves for the DJGPP compiler
in a mixture of C and assembler.
According to the Oxford Companion to Music, Allegro is the Italian for
"quick, lively, bright". It is also a recursive acronym which stands for
"Allegro Low LEvel Game ROutines".
Cross-platform support
o Dos (DJGPP, Watcom)
o Unix (Linux, *BSD, Irix, Solaris, Darwin)
o Windows (MSVC, MinGW, Cygwin, Borland)
o BeOS
o QNX
o MacOS X
Diffstat (limited to 'devel/allegro/patches')
-rw-r--r-- | devel/allegro/patches/patch-aa | 41 | ||||
-rw-r--r-- | devel/allegro/patches/patch-ab | 30 | ||||
-rw-r--r-- | devel/allegro/patches/patch-ac | 13 |
3 files changed, 84 insertions, 0 deletions
diff --git a/devel/allegro/patches/patch-aa b/devel/allegro/patches/patch-aa new file mode 100644 index 00000000000..5f31ac07323 --- /dev/null +++ b/devel/allegro/patches/patch-aa @@ -0,0 +1,41 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/04/05 05:02:42 xtraeme Exp $ + +--- makefile.in.orig Sun Jun 29 16:27:00 2003 ++++ makefile.in Wed Jul 2 13:50:49 2003 +@@ -59,7 +59,7 @@ + + INCLUDES = + DEFS = @DEFS@ -Iinclude -Iinclude/allegro -I$(srcdir)/include -I$(srcdir)/include/allegro -I. +-CPPFLAGS = @CPPFLAGS@ ++CPPFLAGS = @CPPFLAGS@ -DDEVOSSAUDIO=\"${DEVOSSAUDIO}\" + LDFLAGS = @LDFLAGS@ + PROG_LDFLAGS = @PROG_LDFLAGS@ + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) +@@ -82,7 +82,7 @@ + COMPILE_S_PROGRAM = $(@COMPILE_S_PROGRAM@) + + LIBALLEG = @LIBALLEG@ +-LINK_LIBALLEG = @LINK_LIBALLEG@ ++LINK_LIBALLEG = @LINK_LIBALLEG@ ${LIBOSSAUDIO} + ALLEGRO_LIB_TARGETS = @ALLEGRO_LIB_TARGETS@ + ALLEGRO_MODULE_TARGETS = @ALLEGRO_MODULE_TARGETS@ + +@@ -417,17 +417,7 @@ + fi + $(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 ++ @$(BSD_INSTALL_SCRIPT) allegro-config $(DESTDIR)$(bindir) + @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}); \ diff --git a/devel/allegro/patches/patch-ab b/devel/allegro/patches/patch-ab new file mode 100644 index 00000000000..325714be295 --- /dev/null +++ b/devel/allegro/patches/patch-ab @@ -0,0 +1,30 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/04/05 05:02:42 xtraeme Exp $ + +--- src/unix/uoss.c.orig Sun Jun 29 16:27:04 2003 ++++ src/unix/uoss.c Wed Jul 2 13:25:43 2003 +@@ -176,6 +176,8 @@ + _mix_some_samples((unsigned long) oss_bufdata, 0, oss_signed); + } + } ++ ++ yield_timeslice(); + } + + +@@ -191,7 +193,7 @@ + + 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(DEVOSSAUDIO, tmp3))); + + ustrzcpy(_oss_mixer_driver, sizeof(_oss_mixer_driver), get_config_string(uconvert_ascii("sound", tmp1), + uconvert_ascii("oss_mixer_driver", tmp2), +@@ -583,6 +585,7 @@ + p[i] ^= 0x80; + } + ++ yield_timeslice(); + return 1; + } + diff --git a/devel/allegro/patches/patch-ac b/devel/allegro/patches/patch-ac new file mode 100644 index 00000000000..08385384e4d --- /dev/null +++ b/devel/allegro/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2004/04/05 05:02:42 xtraeme Exp $ + +--- setup/setup.c.orig Sun Jun 29 16:27:02 2003 ++++ setup/setup.c Wed Jul 2 13:02:28 2003 +@@ -211,7 +211,7 @@ + #endif + + #ifdef DIGI_OSS +- { "oss_driver", param_str, "", "/dev/dsp", NULL, "Drv:", "", NULL, "Name of the driver (e.g. /dev/dsp)" }, ++ { "oss_driver", param_str, "", DEVOSSAUDIO, NULL, "Drv:", "", NULL, "Name of the driver (e.g. /dev/dsp)" }, + { "oss_numfrags", param_int, "", "-1", &_oss_numfrags, "NumFr:", NULL, NULL, "Number of fragments (use 2, other values make little difference)" }, + { "oss_fragsize", param_num, "", "-1", &_oss_fragsize, "Siz:", NULL, NULL, "Size of fragment (small values -- choppy sound, large values -- delayed sound)" }, + #endif |