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 | 9b2adf28dc233f05551067ea24aeef2732e154f6 (patch) | |
tree | e697d9b9d8ca0693c872d478e43882b61bc3c23f /devel/allegro | |
parent | 072bd1c73e606c19af4e60518a553da7d2287115 (diff) | |
download | pkgsrc-9b2adf28dc233f05551067ea24aeef2732e154f6.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')
-rw-r--r-- | devel/allegro/DESCR | 16 | ||||
-rw-r--r-- | devel/allegro/Makefile | 40 | ||||
-rw-r--r-- | devel/allegro/PLIST | 106 | ||||
-rw-r--r-- | devel/allegro/buildlink3.mk | 24 | ||||
-rw-r--r-- | devel/allegro/distinfo | 7 | ||||
-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 |
8 files changed, 277 insertions, 0 deletions
diff --git a/devel/allegro/DESCR b/devel/allegro/DESCR new file mode 100644 index 00000000000..7a6d8a2476c --- /dev/null +++ b/devel/allegro/DESCR @@ -0,0 +1,16 @@ +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 diff --git a/devel/allegro/Makefile b/devel/allegro/Makefile new file mode 100644 index 00000000000..cb3de7e0afc --- /dev/null +++ b/devel/allegro/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/04/05 05:02:41 xtraeme Exp $ +# + +DISTNAME= allegro-4.1.13 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=alleg/} + +MAINTAINER= wiz@NetBSD.org +HOMEPAGE= http://alleg.sourceforge.net/ +COMMENT= Allegro game programming library + +USE_BUILDLINK3= yes +USE_GNU_TOOLS+= make +USE_X11= yes +GNU_CONFIGURE= yes + +MAKEFILE= makefile +ALL_TARGET= # there is no 'all' target for some reason +USE_MAKEINFO= yes +INFO_FILES= allegro.info +INSTALL_TARGET= install install-info + +# NetBSD's OSS midi emulation is non-existant. +CONFIGURE_ARGS+= --disable-ossmidi + +LIBS+= ${LIBOSSAUDIO} +CFLAGS+= -DDEVOSSAUDIO=\"\\\"${DEVOSSAUDIO}\\\"\" + +.include "../../mk/bsd.prefs.mk" + +BUILD_DEFS+= USE_ESOUND + +.if !empty(USE_ESOUND:M[Yy][Ee][Ss]) +CONFIGURE_ARGS+= --enable-esddigi +.include "../../audio/esound/buildlink3.mk" +.endif + +.include "../../mk/ossaudio.buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/allegro/PLIST b/devel/allegro/PLIST new file mode 100644 index 00000000000..8e43ae22c04 --- /dev/null +++ b/devel/allegro/PLIST @@ -0,0 +1,106 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/04/05 05:02:42 xtraeme Exp $ +bin/allegro-config +bin/colormap +bin/dat +bin/dat2c +bin/dat2s +bin/exedat +bin/grabber +bin/pack +bin/pat2dat +bin/rgbmap +bin/textconv +include/allegro.h +include/allegro/3d.h +include/allegro/3dmaths.h +include/allegro/alcompat.h +include/allegro/alinline.h +include/allegro/alunixac.h +include/allegro/base.h +include/allegro/color.h +include/allegro/compiled.h +include/allegro/config.h +include/allegro/datafile.h +include/allegro/debug.h +include/allegro/digi.h +include/allegro/draw.h +include/allegro/file.h +include/allegro/fix.h +include/allegro/fixed.h +include/allegro/fli.h +include/allegro/fmaths.h +include/allegro/gfx.h +include/allegro/graphics.h +include/allegro/gui.h +include/allegro/inline/3dmaths.inl +include/allegro/inline/asm.inl +include/allegro/inline/color.inl +include/allegro/inline/draw.inl +include/allegro/inline/file.inl +include/allegro/inline/fix.inl +include/allegro/inline/fmaths.inl +include/allegro/inline/gfx.inl +include/allegro/inline/matrix.inl +include/allegro/inline/rle.inl +include/allegro/inline/system.inl +include/allegro/internal/aintern.h +include/allegro/internal/aintvga.h +include/allegro/internal/alconfig.h +include/allegro/joystick.h +include/allegro/keyboard.h +include/allegro/matrix.h +include/allegro/midi.h +include/allegro/mouse.h +include/allegro/palette.h +include/allegro/platform/aintbeos.h +include/allegro/platform/aintdos.h +include/allegro/platform/aintlnx.h +include/allegro/platform/aintmac.h +include/allegro/platform/aintosx.h +include/allegro/platform/aintqnx.h +include/allegro/platform/aintunix.h +include/allegro/platform/aintwin.h +include/allegro/platform/al386gcc.h +include/allegro/platform/al386vc.h +include/allegro/platform/al386wat.h +include/allegro/platform/albcc32.h +include/allegro/platform/albecfg.h +include/allegro/platform/albeos.h +include/allegro/platform/aldjgpp.h +include/allegro/platform/aldos.h +include/allegro/platform/almac.h +include/allegro/platform/almaccfg.h +include/allegro/platform/almngw32.h +include/allegro/platform/almsvc.h +include/allegro/platform/alosx.h +include/allegro/platform/alosxcfg.h +include/allegro/platform/alplatf.h +include/allegro/platform/alqnx.h +include/allegro/platform/alqnxcfg.h +include/allegro/platform/alucfg.h +include/allegro/platform/alunix.h +include/allegro/platform/alunixac.h +include/allegro/platform/alwatcom.h +include/allegro/platform/alwin.h +include/allegro/platform/macdef.h +include/allegro/quat.h +include/allegro/rle.h +include/allegro/sound.h +include/allegro/stream.h +include/allegro/system.h +include/allegro/text.h +include/allegro/timer.h +include/allegro/unicode.h +include/linalleg.h +include/xalleg.h +lib/allegro/4.1/alleg-dga2.so +lib/allegro/4.1/modules.lst +lib/liballeg-${PKGVERSION}.so +lib/liballeg.so.4.1 +lib/liballeg_unsharable.a +@dirrm include/allegro/platform +@dirrm include/allegro/internal +@dirrm include/allegro/inline +@dirrm include/allegro +@dirrm lib/allegro/4.1 +@dirrm lib/allegro diff --git a/devel/allegro/buildlink3.mk b/devel/allegro/buildlink3.mk new file mode 100644 index 00000000000..5bd3ea55b81 --- /dev/null +++ b/devel/allegro/buildlink3.mk @@ -0,0 +1,24 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/04/05 05:02:42 xtraeme Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +ALLEGRO_BUILDLINK3_MK:= ${ALLEGRO_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= allegro +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nallegro} +BUILDLINK_PACKAGES+= allegro + +.if !empty(ALLEGRO_BUILDLINK3_MK:M+) +BUILDLINK_DEPENDS.allegro+= allegro>=4.1.13 +BUILDLINK_PKGSRCDIR.allegro?= ../../devel/allegro +.endif # ALLEGRO_BUILDLINK3_MK + +.include "../../mk/bsd.prefs.mk" + +.if !empty(USE_ESOUND:M[Yy][Ee][Ss]) + .include "../../audio/esound/buildlink3.mk" +.endif + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/devel/allegro/distinfo b/devel/allegro/distinfo new file mode 100644 index 00000000000..ff617cffe39 --- /dev/null +++ b/devel/allegro/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/04/05 05:02:41 xtraeme Exp $ + +SHA1 (allegro-4.1.13.tar.gz) = 0238c39abdfe9f9de093576b7c66c37665bb8ce8 +Size (allegro-4.1.13.tar.gz) = 2773434 bytes +SHA1 (patch-aa) = 9cd0b652ac08d121575fc9209203b213657f5682 +SHA1 (patch-ab) = cd316b805e6f4f33cc156b1242696651f5765d9b +SHA1 (patch-ac) = 510655ab2fdaf0583e0044d974a5a1007e57d822 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 |