aboutsummaryrefslogtreecommitdiff
path: root/devel/adasdl
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-09-27 06:15:46 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-09-27 06:15:46 +0000
commita766e89b2b14bf9ba16a35b0efe5c267fcd56a85 (patch)
tree437ce4cabe5fe01ddbd326c36f37f150d0dc6b03 /devel/adasdl
parent269c5d9649f90acf6602d8755994a695f809dedf (diff)
downloadports-a766e89b2b14bf9ba16a35b0efe5c267fcd56a85.tar.gz
ports-a766e89b2b14bf9ba16a35b0efe5c267fcd56a85.zip
New port: Ada thin binding to SDL and OpenGL
daSDL is a set of Ada (programming language) bindings, ports, and some original applications based on SDL (Simple DirectMedia Library - http://www.libsdl.org) WWW: http://adasdl.sourceforge.net/ PR: ports/46442 Submitted by: David Holm <david@realityrift.com>
Notes
Notes: svn path=/head/; revision=89514
Diffstat (limited to 'devel/adasdl')
-rw-r--r--devel/adasdl/Makefile114
-rw-r--r--devel/adasdl/distinfo1
-rw-r--r--devel/adasdl/files/patch-AdaGL-make.conf_x119
-rw-r--r--devel/adasdl/files/patch-AdaSDL-make.conf_x119
-rw-r--r--devel/adasdl/files/patch-AdaSDL_framebuff-make.conf_x118
-rw-r--r--devel/adasdl/files/patch-AdaSDL_framebuff-sdltests-Makefile12
-rw-r--r--devel/adasdl/files/patch-AdaSDL_image-make.conf_x118
-rw-r--r--devel/adasdl/files/patch-AdaSDL_mixer-make.conf_x118
-rw-r--r--devel/adasdl/pkg-descr8
-rw-r--r--devel/adasdl/pkg-plist174
10 files changed, 351 insertions, 0 deletions
diff --git a/devel/adasdl/Makefile b/devel/adasdl/Makefile
new file mode 100644
index 000000000000..58742639b4e5
--- /dev/null
+++ b/devel/adasdl/Makefile
@@ -0,0 +1,114 @@
+# New ports collection makefile for: adasdl
+# Date created: 21 December 2002
+# Whom: David Holm <david@realityrift.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= adasdl
+PORTVERSION= 20010504
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= AdaSDL_${PORTVERSION}
+
+MAINTAINER= david@realityrift.com
+COMMENT= An Ada thin binding to SDL
+
+LIB_DEPENDS= SDL-1.1:${PORTSDIR}/devel/sdl12 \
+ SDL_image:${PORTSDIR}/graphics/sdl_image \
+ SDL_mixer:${PORTSDIR}/audio/sdl_mixer \
+ ${GL_DEPENDS}
+BUILD_DEPENDS= gnatmake:${PORTSDIR}/lang/gnat
+
+USE_GMAKE= yes
+USE_REINPLACE= yes
+
+do-patch:
+ for i in `find ${WRKSRC} -name 'Makefile'`; do \
+ ${REINPLACE_CMD} -e '/gnatmake/!s/make\ /gmake\ /' $${i}; \
+ done
+ for i in `find ${WRKSRC} -name 'make.conf_x11'`; do \
+ ${REINPLACE_CMD} \
+ -e 's,/usr/local,${LOCALBASE},g' \
+ -e 's,/usr/X11R6,${X11BASE},g' \
+ -e 's,-lSDL\ ,-lSDL-1.1\ ,' \
+ -e 's,-lpthread,-pthread,' \
+ -e 's,-lGL,-L${X11BASE}/lib\ -lX11 -lXext -lGL,' \
+ $${i}; \
+ done
+
+do-build:
+ cd ${WRKSRC}/AdaSDL && \
+ ${GMAKE} conf2x11 && \
+ ${GMAKE} bind
+ cd ${WRKSRC}/AdaSDL_framebuff && \
+ ${GMAKE} conf2x11 && \
+ ${GMAKE} framebuff
+
+.if !defined(WITHOUT_SDL_IMAGE)
+ cd ${WRKSRC}/AdaSDL_image && \
+ ${GMAKE} conf2x11 && \
+ ${GMAKE} binding
+.endif
+
+.if !defined(WITHOUT_SDL_MIXER)
+ cd ${WRKSRC}/AdaSDL_mixer && \
+ ${GMAKE} conf2x11 && \
+ ${GMAKE} binding
+.endif
+
+.if !defined(WITHOUT_OPENGL)
+ cd ${WRKSRC}/AdaGL && \
+ ${GMAKE} conf2x11 && \
+ ${GMAKE} bind
+.endif
+
+do-install:
+ ${MKDIR} ${PREFIX}/lib/adaSDL
+ for i in `cat pkg-plist|grep "lib/adaSDL/"|grep -v framebuffer|grep -v _mixer|grep -v _image|sed "s/lib\/adaSDL\///"`; do \
+ find ${WRKSRC}/AdaSDL/binding -name $${i} -maxdepth 1|${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaSDL; \
+ done
+ for i in `cat pkg-plist|grep "lib/adaSDL/"|grep framebuffer|sed "s/lib\/adaSDL\///"`; do \
+ find ${WRKSRC}/AdaSDL_framebuff -name $${i} -maxdepth 1|${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaSDL; \
+ done
+ ${MKDIR} ${PREFIX}/share/adaSDL
+ ${MKDIR} ${PREFIX}/share/adaSDL/examples
+ for i in `cat pkg-plist|grep "share/adaSDL/examples"|grep -v dirrm|sed "s/share\/adaSDL\/examples\///"`; do \
+ find ${WRKSRC}/AdaSDL_framebuff/sdltests -name $${i} -maxdepth 1|${INSTALL_DATA} `grep ""` ${PREFIX}/share/adaSDL/examples; \
+ done
+
+.if !defined(WITHOUT_SDL_IMAGE)
+ for i in `cat pkg-plist|grep "lib/adaSDL/"|grep _image|sed "s/lib\/adaSDL\///"`; do \
+ find ${WRKSRC}/AdaSDL_image -name $${i} -maxdepth 1|${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaSDL; \
+ done
+.endif
+
+.if !defined(WITHOUT_SDL_MIXER)
+ for i in `cat pkg-plist|grep "lib/adaSDL/"|grep _mixer|sed "s/lib\/adaSDL\///"`; do \
+ find ${WRKSRC}/AdaSDL_mixer -name $${i} -maxdepth 1|${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaSDL; \
+ done
+.endif
+
+.if !defined(WITHOUT_OPENGL)
+ ${MKDIR} ${PREFIX}/lib/adaGL
+ for i in `cat pkg-plist|grep "/adaGL/"|sed "s/lib\/adaGL\///"`; do \
+ find ${WRKSRC}/AdaGL/GL -name $${i} -maxdepth 1|${INSTALL_DATA} `grep ""` ${PREFIX}/lib/adaGL; \
+ done
+.endif
+
+do-extract:
+ @${MKDIR} ${WRKSRC}
+ @${GUNZIP_CMD} -dc ${DISTDIR}/${DISTNAME}.tar.gz \
+ | ${TAR} -C ${WRKSRC} -xf -
+
+post-install:
+ @${ECHO}
+ @${ECHO} "AdaSDL has been installed in ${PREFIX}/lib/adaSDL"
+ @${ECHO} "AdaSDL examples have been installed in ${PREFIX}/share/adaSDL/examples"
+.if !defined(WITHOUT_OPENGL)
+ @${ECHO} "AdaGL has been installed in ${PREFIX}/lib/adaGL"
+.endif
+ @${ECHO}
+
+.include <bsd.port.mk>
diff --git a/devel/adasdl/distinfo b/devel/adasdl/distinfo
new file mode 100644
index 000000000000..374e0b3ebbce
--- /dev/null
+++ b/devel/adasdl/distinfo
@@ -0,0 +1 @@
+MD5 (AdaSDL_20010504.tar.gz) = 93cbacb14d137490f2f4a06c62080b4c
diff --git a/devel/adasdl/files/patch-AdaGL-make.conf_x11 b/devel/adasdl/files/patch-AdaGL-make.conf_x11
new file mode 100644
index 000000000000..17f914a0ff0b
--- /dev/null
+++ b/devel/adasdl/files/patch-AdaGL-make.conf_x11
@@ -0,0 +1,9 @@
+--- AdaGL/make.conf_x11.orig Wed Apr 11 03:21:25 2001
++++ AdaGL/make.conf_x11 Sat Dec 21 02:14:51 2002
+@@ -1,5 +1,5 @@
+ #LIBS= -L/usr/lib -L/usr/local/lib ~/lib -Wl,-rpath,. -lpthread -L/usr/lib -lGL -lGLU
+-LIBS= -L/usr/lib -L/usr/local/lib -L~/lib -lGL -lGLU
++LIBS= -L/usr/lib -L${LOCALBASE}/lib -L${X11BASE}/lib -L~/lib -lXext -lX11 -lGL -lGLU
+ GNATHTML=/usr/local/bin/gnathtml.pl
+ PERL=/usr/bin/perl
+
diff --git a/devel/adasdl/files/patch-AdaSDL-make.conf_x11 b/devel/adasdl/files/patch-AdaSDL-make.conf_x11
new file mode 100644
index 000000000000..a0168a08878d
--- /dev/null
+++ b/devel/adasdl/files/patch-AdaSDL-make.conf_x11
@@ -0,0 +1,9 @@
+--- AdaSDL/make.conf_x11.orig Wed Apr 11 03:22:12 2001
++++ AdaSDL/make.conf_x11 Sat Dec 21 02:23:24 2002
+@@ -1,5 +1,5 @@
+ #LIBS= -L/usr/lib -L/usr/local/lib ~/lib -Wl,-rpath,. -lSDL -lpthread -L/usr/lib -lGL -lGLU
+-LIBS= -L/usr/lib -L/usr/local/lib -L~/lib -lSDL -lpthread -lGL -lGLU
++LIBS= -L/usr/lib -L${LOCALBASE}/lib -L${X11BASE}/lib -L~/lib -lSDL-1.1 -pthread -lGL -lGLU
+ GNATHTML=/usr/local/bin/gnathtml.pl
+ PERL=/usr/bin/perl
+ EXE=
diff --git a/devel/adasdl/files/patch-AdaSDL_framebuff-make.conf_x11 b/devel/adasdl/files/patch-AdaSDL_framebuff-make.conf_x11
new file mode 100644
index 000000000000..c6d993d6c330
--- /dev/null
+++ b/devel/adasdl/files/patch-AdaSDL_framebuff-make.conf_x11
@@ -0,0 +1,8 @@
+--- AdaSDL_framebuff/make.conf_x11.orig Wed Apr 11 03:29:41 2001
++++ AdaSDL_framebuff/make.conf_x11 Sat Dec 21 02:10:44 2002
+@@ -1,4 +1,4 @@
+ #LIBS= -L/usr/lib -L/usr/local/lib ~/lib -Wl,-rpath,. -lSDL -lpthread -L/usr/lib -lGL -lGLU
+-LIBS= -L/usr/lib -L/usr/local/lib -L~/lib -lSDL_mixer -lSDL -lpthread -lGL -lGLU
++LIBS= -L/usr/lib -L${LOCALBASE}/lib -L${X11BASE}/lib -L~/lib -lSDL_mixer -lSDL-1.1 -pthread -lGL -lGLU
+
+ EXE=
diff --git a/devel/adasdl/files/patch-AdaSDL_framebuff-sdltests-Makefile b/devel/adasdl/files/patch-AdaSDL_framebuff-sdltests-Makefile
new file mode 100644
index 000000000000..c2bbf0a1cd8d
--- /dev/null
+++ b/devel/adasdl/files/patch-AdaSDL_framebuff-sdltests-Makefile
@@ -0,0 +1,12 @@
+--- AdaSDL_framebuff/sdltests/Makefile.orig Mon Apr 16 16:48:38 2001
++++ AdaSDL_framebuff/sdltests/Makefile Sat Dec 21 13:13:57 2002
+@@ -1,6 +1,7 @@
+
+-INC+=-I../../AdaSDL/binding -I../../AdaGL/GL -I..
+-include ../make.conf
++LIBS= -L/usr/lib -L${LOCALBASE}/lib -L${X11BASE}/lib -L~/lib -lSDL_mixer -lSDL-1.1 -pthread -lGL -lGLU
++
++INC+=-I${LOCALBASE}/lib/adaSDL -I${LOCALBASE}/lib/adaGL -I..
+
+ %:%.adb
+ gnatmake -O3 -gnaty3abcefhiklmprM90 -gnatnfvU $<\
diff --git a/devel/adasdl/files/patch-AdaSDL_image-make.conf_x11 b/devel/adasdl/files/patch-AdaSDL_image-make.conf_x11
new file mode 100644
index 000000000000..1ad184efd798
--- /dev/null
+++ b/devel/adasdl/files/patch-AdaSDL_image-make.conf_x11
@@ -0,0 +1,8 @@
+--- AdaSDL_image/make.conf_x11.orig Wed Apr 11 03:36:30 2001
++++ AdaSDL_image/make.conf_x11 Sat Dec 21 02:18:39 2002
+@@ -1,4 +1,4 @@
+ #LIBS= -L/usr/lib -L/usr/local/lib ~/lib -Wl,-rpath,. -lSDL -lpthread -L/usr/lib -lGL -lGLU
+-LIBS= -L/usr/lib -L/usr/local/lib -L~/lib -lSDL_image -lSDL -lpthread -lGL -lGLU
++LIBS= -L/usr/lib -L${LOCALBASE}/lib -L${X11BASE}/lib -L~/lib -lSDL_image -lSDL-1.1 -pthread -lGL -lGLU
+
+ EXE=
diff --git a/devel/adasdl/files/patch-AdaSDL_mixer-make.conf_x11 b/devel/adasdl/files/patch-AdaSDL_mixer-make.conf_x11
new file mode 100644
index 000000000000..98ed13bc9468
--- /dev/null
+++ b/devel/adasdl/files/patch-AdaSDL_mixer-make.conf_x11
@@ -0,0 +1,8 @@
+--- AdaSDL_mixer/make.conf_x11.orig Wed Apr 11 03:36:31 2001
++++ AdaSDL_mixer/make.conf_x11 Sat Dec 21 02:19:56 2002
+@@ -1,4 +1,4 @@
+ #LIBS= -L/usr/lib -L/usr/local/lib ~/lib -Wl,-rpath,. -lSDL -lpthread -L/usr/lib -lGL -lGLU
+-LIBS= -L/usr/lib -L/usr/local/lib -L~/lib -lSDL_mixer -lSDL -lpthread -lGL -lGLU
++LIBS= -L/usr/lib -L${LOCALBASE}/lib -L${X11BASE}/lib -L~/lib -lSDL_mixer -lSDL-1.1 -pthread -lGL -lGLU
+
+ EXE=
diff --git a/devel/adasdl/pkg-descr b/devel/adasdl/pkg-descr
new file mode 100644
index 000000000000..3a862e1d7305
--- /dev/null
+++ b/devel/adasdl/pkg-descr
@@ -0,0 +1,8 @@
+daSDL is a set of Ada (programming language) bindings, ports,
+and some original applications based on SDL (Simple DirectMedia
+Library - http://www.libsdl.org)
+
+WWW: http://adasdl.sourceforge.net/
+
+- David Holm
+david@realityrift.com
diff --git a/devel/adasdl/pkg-plist b/devel/adasdl/pkg-plist
new file mode 100644
index 000000000000..9024cd8f8337
--- /dev/null
+++ b/devel/adasdl/pkg-plist
@@ -0,0 +1,174 @@
+lib/adaGL/gl_h.ads
+lib/adaGL/glu_h.ads
+lib/adaGL/adagl.ads
+lib/adaSDL/lib_c.ads
+lib/adaSDL/sdl-active.ads
+lib/adaSDL/sdl-audio-extra.ads
+lib/adaSDL/sdl-audio.ads
+lib/adaSDL/sdl-byteorder-extra.ads
+lib/adaSDL/sdl-byteorder.ads
+lib/adaSDL/sdl-cdrom.ads
+lib/adaSDL/sdl-error.ads
+lib/adaSDL/sdl-events.ads
+lib/adaSDL/sdl-joystick.ads
+lib/adaSDL/sdl-keyboard.ads
+lib/adaSDL/sdl-keysym.ads
+lib/adaSDL/sdl-mouse.ads
+lib/adaSDL/sdl-mutex.ads
+lib/adaSDL/sdl-quit.ads
+lib/adaSDL/sdl-rwops.ads
+lib/adaSDL/sdl-thread.ads
+lib/adaSDL/sdl-timer.ads
+lib/adaSDL/sdl-types.ads
+lib/adaSDL/sdl-version.ads
+lib/adaSDL/sdl-video.ads
+lib/adaSDL/sdl.ads
+lib/adaSDL/uintn_ptrops.ads
+lib/adaSDL/sdl_framebuffer.ads
+lib/adaSDL/sdl_framebuffer_generics.ads
+lib/adaSDL/sdl_image.ads
+lib/adaSDL/sdl_mixer.ads
+lib/adaGL/adagl.adb
+lib/adaGL/compile.adb
+lib/adaSDL/compile.adb
+lib/adaSDL/sdl-audio.adb
+lib/adaSDL/sdl-byteorder.adb
+lib/adaSDL/sdl-cdrom.adb
+lib/adaSDL/sdl-error.adb
+lib/adaSDL/sdl-events.adb
+lib/adaSDL/sdl-keyboard.adb
+lib/adaSDL/sdl-mouse.adb
+lib/adaSDL/sdl-mutex.adb
+lib/adaSDL/sdl-rwops.adb
+lib/adaSDL/sdl-types.adb
+lib/adaSDL/sdl-version.adb
+lib/adaSDL/sdl-video.adb
+lib/adaSDL/sdl_framebuffer.adb
+lib/adaSDL/sdl_framebuffer_generics.adb
+lib/adaSDL/sdl_image.adb
+lib/adaSDL/sdl_mixer.adb
+lib/adaGL/compile.ali
+lib/adaGL/adagl.ali
+lib/adaGL/gl_h.ali
+lib/adaGL/glu_h.ali
+lib/adaSDL/compile.ali
+lib/adaSDL/lib_c.ali
+lib/adaSDL/sdl.ali
+lib/adaSDL/sdl-active.ali
+lib/adaSDL/sdl-audio.ali
+lib/adaSDL/sdl-audio-extra.ali
+lib/adaSDL/sdl-byteorder.ali
+lib/adaSDL/sdl-byteorder-extra.ali
+lib/adaSDL/sdl-cdrom.ali
+lib/adaSDL/sdl-error.ali
+lib/adaSDL/sdl-events.ali
+lib/adaSDL/sdl-joystick.ali
+lib/adaSDL/sdl-keyboard.ali
+lib/adaSDL/sdl-keysym.ali
+lib/adaSDL/sdl-mouse.ali
+lib/adaSDL/sdl-mutex.ali
+lib/adaSDL/sdl-quit.ali
+lib/adaSDL/sdl-rwops.ali
+lib/adaSDL/sdl-thread.ali
+lib/adaSDL/sdl-timer.ali
+lib/adaSDL/sdl-types.ali
+lib/adaSDL/sdl-version.ali
+lib/adaSDL/sdl-video.ali
+lib/adaSDL/uintn_ptrops.ali
+lib/adaSDL/sdl_framebuffer.ali
+lib/adaSDL/sdl_framebuffer_generics.ali
+lib/adaSDL/sdl_image.ali
+lib/adaSDL/sdl_mixer.ali
+lib/adaSDL/compile.o
+lib/adaSDL/lib_c.o
+lib/adaSDL/sdl-active.o
+lib/adaSDL/sdl-audio-extra.o
+lib/adaSDL/sdl-audio.o
+lib/adaSDL/sdl-byteorder-extra.o
+lib/adaSDL/sdl-byteorder.o
+lib/adaSDL/sdl-cdrom.o
+lib/adaSDL/sdl-error.o
+lib/adaSDL/sdl-events.o
+lib/adaSDL/sdl-joystick.o
+lib/adaSDL/sdl-keyboard.o
+lib/adaSDL/sdl-keysym.o
+lib/adaSDL/sdl-mouse.o
+lib/adaSDL/sdl-mutex.o
+lib/adaSDL/sdl-quit.o
+lib/adaSDL/sdl-rwops.o
+lib/adaSDL/sdl-thread.o
+lib/adaSDL/sdl-timer.o
+lib/adaSDL/sdl-types.o
+lib/adaSDL/sdl-version.o
+lib/adaSDL/sdl-video.o
+lib/adaSDL/sdl.o
+lib/adaSDL/uintn_ptrops.o
+lib/adaSDL/sdl_framebuffer.o
+lib/adaSDL/sdl_framebuffer_generics.o
+lib/adaSDL/sdl_image.o
+lib/adaSDL/sdl_mixer.o
+lib/adaGL/adagl.o
+lib/adaGL/compile.o
+lib/adaGL/gl_h.o
+lib/adaGL/glu_h.o
+share/adaSDL/examples/Makefile
+share/adaSDL/examples/TODO.txt
+share/adaSDL/examples/checkkeys.adb
+share/adaSDL/examples/gnat.adc
+share/adaSDL/examples/graywin.adb
+share/adaSDL/examples/icon.bmp
+share/adaSDL/examples/loopwave.adb
+share/adaSDL/examples/loopwave_callback.adb
+share/adaSDL/examples/loopwave_callback.ads
+share/adaSDL/examples/picture.xbm
+share/adaSDL/examples/picture_xbm.ads
+share/adaSDL/examples/sail.bmp
+share/adaSDL/examples/sample.bmp
+share/adaSDL/examples/sample.wav
+share/adaSDL/examples/screen.bmp
+share/adaSDL/examples/tags
+share/adaSDL/examples/testalpha.adb
+share/adaSDL/examples/testbitmap.adb
+share/adaSDL/examples/testcdrom.adb
+share/adaSDL/examples/testerror.adb
+share/adaSDL/examples/testerror_tfunc.adb
+share/adaSDL/examples/testerror_tfunc.ads
+share/adaSDL/examples/testgl.adb
+share/adaSDL/examples/testgl_sprogs.adb
+share/adaSDL/examples/testgl_sprogs.ads
+share/adaSDL/examples/testhread.adb
+share/adaSDL/examples/testhread_sprogs.adb
+share/adaSDL/examples/testhread_sprogs.ads
+share/adaSDL/examples/testjoystick.adb
+share/adaSDL/examples/testjoystick.txt
+share/adaSDL/examples/testkeys.adb
+share/adaSDL/examples/testlock.adb
+share/adaSDL/examples/testlock_sprogs.adb
+share/adaSDL/examples/testlock_sprogs.ads
+share/adaSDL/examples/testpalette.adb
+share/adaSDL/examples/testpalette_sprogs.adb
+share/adaSDL/examples/testpalette_sprogs.ads
+share/adaSDL/examples/testsem.adb
+share/adaSDL/examples/testsem_sprogs.adb
+share/adaSDL/examples/testsem_sprogs.ads
+share/adaSDL/examples/testsprite.adb
+share/adaSDL/examples/testtimer.adb
+share/adaSDL/examples/testtimer_sprogs.adb
+share/adaSDL/examples/testtimer_sprogs.ads
+share/adaSDL/examples/testtypes.adb
+share/adaSDL/examples/testver.adb
+share/adaSDL/examples/testvidinfo.adb
+share/adaSDL/examples/testwin.adb
+share/adaSDL/examples/testwm.adb
+share/adaSDL/examples/testwm_sprogs.adb
+share/adaSDL/examples/testwm_sprogs.ads
+share/adaSDL/examples/threadwin.adb
+share/adaSDL/examples/threadwin_sprogs.adb
+share/adaSDL/examples/threadwin_sprogs.ads
+share/adaSDL/examples/torturethread.adb
+share/adaSDL/examples/torturethread_sprogs.adb
+share/adaSDL/examples/torturethread_sprogs.ads
+@dirrm lib/adaGL
+@dirrm lib/adaSDL
+@dirrm share/adaSDL/examples
+@dirrm share/adaSDL