Date: Wed, 25 Dec 2002 17:05:30 +0100 (CET) From: David Holm <david@realityrift.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/46529: New port: esdl - SDL and OpenGL access library for Erlang Message-ID: <200212251605.gBPG5Urb039405@rift.ath.cx>
next in thread | raw e-mail | index | archive | help
>Number: 46529 >Category: ports >Synopsis: New port: esdl - SDL and OpenGL access library for Erlang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Dec 25 08:10:04 PST 2002 >Closed-Date: >Last-Modified: >Originator: David Holm >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD rift.ath.cx 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Dec 24 21:30:02 CET 2002 avatar@rift.ath.cx:/usr/src/sys/i386/compile/MYKERNEL i386 >Description: >How-To-Repeat: >Fix: --- devel-esdl.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # devel/esdl # devel/esdl/Makefile # devel/esdl/distinfo # devel/esdl/files # devel/esdl/files/patch-c_src-Makefile # devel/esdl/files/patch-Makefile # devel/esdl/pkg-comment # devel/esdl/pkg-descr # devel/esdl/pkg-plist # echo c - devel/esdl mkdir -p devel/esdl > /dev/null 2>&1 echo x - devel/esdl/Makefile sed 's/^X//' >devel/esdl/Makefile << 'END-of-devel/esdl/Makefile' X# New ports collection makefile for: esdl X# Date created: 25 December 2002 X# Whom: David Holm <david@realityrift.com> X# X# $FreeBSD$ X# X XPORTNAME= esdl XPORTVERSION= 0.91.1129 XCATEGORIES= devel XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= ${PORTNAME} XDISTNAME= ${PORTNAME}-${PORTVERSION}.src X XMAINTAINER= david@realityrift.com X XLIB_DEPENDS= SDL-1.1.4:${PORTSDIR}/devel/sdl12 \ X ${GL_DEPENDS} XBUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang X XUSE_REINPLACE= yes X XSDL11_FILES= CPS.h Makefile SDLMain.h SDLMain.m esdl.h \ X esdl_audio.c esdl_audio.h esdl_conv.c esdl_conv.h esdl_driver.c \ X esdl_events.c esdl_events.h esdl_gen.c esdl_glu.c esdl_glu.h esdl_main.c \ X esdl_opengl.c esdl_opengl.h esdl_spec.c esdl_stream.c esdl_util.c \ X esdl_util.h esdl_video.c esdl_video.h esdl_wrapper.c hexdump.c X XUSE_GMAKE= yes XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} X Xpost-patch: X.for i in ${SDL11_FILES} X @${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/c_src/$i X.endfor X X.include <bsd.port.mk> END-of-devel/esdl/Makefile echo x - devel/esdl/distinfo sed 's/^X//' >devel/esdl/distinfo << 'END-of-devel/esdl/distinfo' XMD5 (esdl-0.91.1129.src.tar.gz) = 1418b02a6d770e361f517c9d1981eb56 END-of-devel/esdl/distinfo echo c - devel/esdl/files mkdir -p devel/esdl/files > /dev/null 2>&1 echo x - devel/esdl/files/patch-c_src-Makefile sed 's/^X//' >devel/esdl/files/patch-c_src-Makefile << 'END-of-devel/esdl/files/patch-c_src-Makefile' X--- c_src/Makefile.orig Wed Dec 25 16:02:09 2002 X+++ c_src/Makefile Wed Dec 25 16:03:16 2002 X@@ -5,7 +5,7 @@ X # $Id: Makefile,v 1.3 2002/09/07 06:02:36 bjorng Exp $ X # X X-OGLDIR = /usr X+OGLDIR = /usr/X11R6 X X # Uncomment these if your opengl header is located in another directory than X # the usual $(OGLDIR)/include/GL/gl.h X@@ -15,12 +15,12 @@ X GL_LIBS = -L$(OGLDIR)/lib -lGL -lGLU X GL_INCS = -I$(OGLDIR)/include/$(GL_INCLUDE_DIR) X X-SDL_LIBS = $(shell sdl-config --libs) X+SDL_LIBS = $(shell sdl11-config --libs) X LIBS = $(GL_LIBS) $(SDL_LIBS) -lm X X-SDLINCS = $(shell sdl-config --cflags) X+SDLINCS = $(shell sdl11-config --cflags) X X-CFLAGS = -g -O2 -funroll-loops -Wall -ffast-math -fpic -fomit-frame-pointer \ X+CFLAGS += -g -funroll-loops -Wall -ffast-math -fpic -fomit-frame-pointer \ X $(USE_GL_INCLUDE_DIR) -DSHM -DPTHREADS $(GL_INCS) $(SDLINCS) X X TARGETDIR = ../priv X@@ -29,7 +29,7 @@ X ERL_DIR := $(shell echo 'io:format("~s~n",[code:root_dir()]),halt().' | erl | sed 's,^[0-9]*> *,,g' | tail +2) X ERLINC = -I$(ERL_DIR)/usr/include X X-CC = gcc X+CC ?= gcc X GCC_O = $(CC) -c $(CFLAGS) $(INCS) $< X X # Files END-of-devel/esdl/files/patch-c_src-Makefile echo x - devel/esdl/files/patch-Makefile sed 's/^X//' >devel/esdl/files/patch-Makefile << 'END-of-devel/esdl/files/patch-Makefile' X--- Makefile.orig Fri Nov 29 11:34:29 2002 X+++ Makefile Wed Dec 25 16:48:11 2002 X@@ -8,12 +8,13 @@ X SUBDIRS = c_src src test doc X X DATE = $(shell date +%m%d) X-REL = esdl-0.91.$(DATE) X-RELDIR = /tmp/$(REL) X+RELDIR = $(PREFIX)/lib/erlang/lib/esdl X X WWWDIR = /home/dgud/public_html/external/esdl X BUPDIR = /tmp/oldesdl/ X X+all: target X+ X target clean: X @for d in $(SUBDIRS); do \ X if test ! -d $$d ; then \ X@@ -29,8 +30,8 @@ X X release: target relsrc relwin www X X-relsrc: target X- @echo Making $(RELDIR).tgz X+install: target X+ @echo Making $(RELDIR) X @if test ! -d $(RELDIR) ; then \ X mkdir $(RELDIR) ; \ X else \ X@@ -54,7 +55,6 @@ X cp src/Makefile* src/*.?rl $(RELDIR)/src X mkdir $(RELDIR)/test X cp test/Makefile* test/*.erl test/*.wav test/*.bmp $(RELDIR)/test X- (cd $(RELDIR)/..; gtar zcfv $(REL).src.tar.gz $(REL) ) X relwin: relsrc X cp priv/SDL.dll $(RELDIR)/priv X cp priv/sdlwrapper.exe priv/sdl_driver.dll $(RELDIR)/priv X@@ -63,15 +63,6 @@ X X www: X @echo Copying files ... X- @if test ! -d $(BUPDIR) ; then \ X- mkdir $(BUPDIR) ; \ X- else \ X- rm -rf $(BUPDIR)/* ; \ X- fi ; X- mv $(WWWDIR)/*.gz $(BUPDIR)/ X- mv $(WWWDIR)/*.zip $(BUPDIR)/ X- cp $(RELDIR)/../$(REL).src.tar.gz $(WWWDIR) X- cp $(RELDIR)/../$(REL).win.zip $(WWWDIR) X cp Readme $(WWWDIR) X cp doc/*.html $(WWWDIR)/doc X $(shell sed 's,esdl-.\..\.....,$(REL),g' $(WWWDIR)/index.html > $(WWWDIR)/index.html.new) END-of-devel/esdl/files/patch-Makefile echo x - devel/esdl/pkg-comment sed 's/^X//' >devel/esdl/pkg-comment << 'END-of-devel/esdl/pkg-comment' XErlang OPENGL/SDL api and utilities END-of-devel/esdl/pkg-comment echo x - devel/esdl/pkg-descr sed 's/^X//' >devel/esdl/pkg-descr << 'END-of-devel/esdl/pkg-descr' XIt is library that gives you access to SDL and Opengl functionality in your Xerlang program. XSDL handles 2d graphics, user events and audio while Opengl handles 3d Xgraphics. X XWWW: http://esdl.sourceforge.net/ X X- David Holm Xdavid@realityrift.com END-of-devel/esdl/pkg-descr echo x - devel/esdl/pkg-plist sed 's/^X//' >devel/esdl/pkg-plist << 'END-of-devel/esdl/pkg-plist' Xlib/erlang/lib/esdl/license.terms Xlib/erlang/lib/esdl/Readme.MacOSX-Cocoa Xlib/erlang/lib/esdl/Readme Xlib/erlang/lib/esdl/esdl.pub Xlib/erlang/lib/esdl/Makefile.win32 Xlib/erlang/lib/esdl/Makefile.orig Xlib/erlang/lib/esdl/Makefile Xlib/erlang/lib/esdl/api_gen/glufuncs Xlib/erlang/lib/esdl/api_gen/gludefs Xlib/erlang/lib/esdl/api_gen/glfuncs Xlib/erlang/lib/esdl/api_gen/gldefs Xlib/erlang/lib/esdl/api_gen/conv.erl Xlib/erlang/lib/esdl/c_src/CPS.h Xlib/erlang/lib/esdl/c_src/Makefile.orig Xlib/erlang/lib/esdl/c_src/Makefile.macOSX Xlib/erlang/lib/esdl/c_src/Makefile.bak Xlib/erlang/lib/esdl/c_src/Makefile Xlib/erlang/lib/esdl/c_src/SDLMain.m Xlib/erlang/lib/esdl/c_src/hexdump.c Xlib/erlang/lib/esdl/c_src/esdl_wrapper.c Xlib/erlang/lib/esdl/c_src/esdl_video.c Xlib/erlang/lib/esdl/c_src/esdl_util.c Xlib/erlang/lib/esdl/c_src/esdl_stream.c Xlib/erlang/lib/esdl/c_src/esdl_spec.c Xlib/erlang/lib/esdl/c_src/esdl_opengl.c Xlib/erlang/lib/esdl/c_src/esdl_main.c Xlib/erlang/lib/esdl/c_src/esdl_glu.c Xlib/erlang/lib/esdl/c_src/esdl_gen.c Xlib/erlang/lib/esdl/c_src/esdl_events.c Xlib/erlang/lib/esdl/c_src/esdl_driver.c Xlib/erlang/lib/esdl/c_src/esdl_conv.c Xlib/erlang/lib/esdl/c_src/esdl_audio.c Xlib/erlang/lib/esdl/c_src/esdl_video.h Xlib/erlang/lib/esdl/c_src/esdl_util.h Xlib/erlang/lib/esdl/c_src/esdl_opengl.h Xlib/erlang/lib/esdl/c_src/esdl_glu.h Xlib/erlang/lib/esdl/c_src/esdl_events.h Xlib/erlang/lib/esdl/c_src/esdl_conv.h Xlib/erlang/lib/esdl/c_src/esdl_audio.h Xlib/erlang/lib/esdl/c_src/esdl.h Xlib/erlang/lib/esdl/c_src/SDLMain.h Xlib/erlang/lib/esdl/c_src/Makefile.win32 Xlib/erlang/lib/esdl/doc/Makefile Xlib/erlang/lib/esdl/doc/sdl_util.html Xlib/erlang/lib/esdl/doc/sdl_mouse.html Xlib/erlang/lib/esdl/doc/sdl_keyboard.html Xlib/erlang/lib/esdl/doc/sdl_joystick.html Xlib/erlang/lib/esdl/doc/sdl_events.html Xlib/erlang/lib/esdl/doc/sdl_audio.html Xlib/erlang/lib/esdl/doc/sdl_active.html Xlib/erlang/lib/esdl/doc/sdl.html Xlib/erlang/lib/esdl/doc/index.html Xlib/erlang/lib/esdl/doc/glu.html Xlib/erlang/lib/esdl/doc/gl.html Xlib/erlang/lib/esdl/doc/makedoc.erl Xlib/erlang/lib/esdl/doc/sdl_video.html Xlib/erlang/lib/esdl/ebin/gl.beam Xlib/erlang/lib/esdl/ebin/sdl_util.beam Xlib/erlang/lib/esdl/ebin/sdl_mouse.beam Xlib/erlang/lib/esdl/ebin/sdl_keyboard.beam Xlib/erlang/lib/esdl/ebin/sdl_joystick.beam Xlib/erlang/lib/esdl/ebin/sdl_events.beam Xlib/erlang/lib/esdl/ebin/sdl_audio.beam Xlib/erlang/lib/esdl/ebin/sdl_active.beam Xlib/erlang/lib/esdl/ebin/sdl.beam Xlib/erlang/lib/esdl/ebin/glu.beam Xlib/erlang/lib/esdl/ebin/sdl_video.beam Xlib/erlang/lib/esdl/include/gl.hrl Xlib/erlang/lib/esdl/include/sdl_mouse.hrl Xlib/erlang/lib/esdl/include/sdl_keyboard.hrl Xlib/erlang/lib/esdl/include/sdl_joystick.hrl Xlib/erlang/lib/esdl/include/sdl_events.hrl Xlib/erlang/lib/esdl/include/sdl_audio.hrl Xlib/erlang/lib/esdl/include/sdl_active.hrl Xlib/erlang/lib/esdl/include/sdl.hrl Xlib/erlang/lib/esdl/include/glu.hrl Xlib/erlang/lib/esdl/include/sdl_video.hrl Xlib/erlang/lib/esdl/src/Makefile Xlib/erlang/lib/esdl/src/sdl_video.erl Xlib/erlang/lib/esdl/src/sdl_util.hrl Xlib/erlang/lib/esdl/src/sdl_util.erl Xlib/erlang/lib/esdl/src/sdl_mouse.erl Xlib/erlang/lib/esdl/src/sdl_keyboard.erl Xlib/erlang/lib/esdl/src/sdl_joystick.erl Xlib/erlang/lib/esdl/src/sdl_events.erl Xlib/erlang/lib/esdl/src/sdl_audio.erl Xlib/erlang/lib/esdl/src/sdl_active.erl Xlib/erlang/lib/esdl/src/sdl.erl Xlib/erlang/lib/esdl/src/glu_funcs.hrl Xlib/erlang/lib/esdl/src/glu.erl Xlib/erlang/lib/esdl/src/gl_funcs.hrl Xlib/erlang/lib/esdl/src/gl.erl Xlib/erlang/lib/esdl/src/esdl.hrl Xlib/erlang/lib/esdl/src/Makefile.win32 Xlib/erlang/lib/esdl/src/sdl_video_funcs.hrl Xlib/erlang/lib/esdl/test/Makefile Xlib/erlang/lib/esdl/test/PoweredSmall.bmp Xlib/erlang/lib/esdl/test/Powered.bmp Xlib/erlang/lib/esdl/test/sample.wav Xlib/erlang/lib/esdl/test/Boing.wav Xlib/erlang/lib/esdl/test/Beep.wav Xlib/erlang/lib/esdl/test/testsprite.erl Xlib/erlang/lib/esdl/test/testjoy.erl Xlib/erlang/lib/esdl/test/testglutess.erl Xlib/erlang/lib/esdl/test/testgl.erl Xlib/erlang/lib/esdl/test/testbin.erl Xlib/erlang/lib/esdl/test/testaudio.erl Xlib/erlang/lib/esdl/test/erldemo.erl Xlib/erlang/lib/esdl/test/Makefile.win32 Xlib/erlang/lib/esdl/test/icon.bmp X@dirrm lib/erlang/lib/esdl/api_gen X@dirrm lib/erlang/lib/esdl/c_src X@dirrm lib/erlang/lib/esdl/doc X@dirrm lib/erlang/lib/esdl/ebin X@dirrm lib/erlang/lib/esdl/include X@dirrm lib/erlang/lib/esdl/priv X@dirrm lib/erlang/lib/esdl/src X@dirrm lib/erlang/lib/esdl/test X@dirrm lib/erlang/lib/esdl END-of-devel/esdl/pkg-plist exit --- devel-esdl.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212251605.gBPG5Urb039405>