Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  4 Aug 2006 18:15:13 +0200 (CEST)
From:      Jona Joachim <walkingshadow@grummel.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        walkingshadow@grummel.net
Subject:   ports/101364: new port: devel/SGE A graphic library for the Simple DirectMedia Layer (SDL) 
Message-ID:  <20060804161513.F35097E30@nirvana.lan.net>
Resent-Message-ID: <200608041620.k74GKH7l029405@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         101364
>Category:       ports
>Synopsis:       new port: devel/SGE A graphic library for the Simple DirectMedia Layer (SDL)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 04 16:20:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jona Joachim
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
none	
>Environment:
System: FreeBSD nirvana.lan.net 6.1-STABLE FreeBSD 6.1-STABLE #0: Fri Jul 21 18:52:28 CEST 2006 default@nirvana.lan.net:/usr/obj/usr/src/sys/HYPOCENTER i386
>Description:
SGE (SDL Graphics Extension) is a graphic library for SDL which offers features
comparable with SDL_gfx and some additional features like FreeType support.

Best regards,
Jona
>How-To-Repeat:
>Fix:
--- SGE.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:
#
#	SGE
#	SGE/Makefile
#	SGE/distinfo
#	SGE/pkg-descr
#	SGE/files
#	SGE/files/patch-Makefile
#	SGE/files/patch-Makefile.conf
#	SGE/files/patch-sge030809-sge_tt_text.cpp
#	SGE/pkg-plist
#
echo c - SGE
mkdir -p SGE > /dev/null 2>&1
echo x - SGE/Makefile
sed 's/^X//' >SGE/Makefile << 'END-of-SGE/Makefile'
X# New ports collection makefile for:   SGE
X# Date created:        30 July 2006
X# Whom:                Jona Joachim <walkingshadow@grummel.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	SGE
XPORTVERSION=	0.030809
XCATEGORIES=	devel graphics
XMASTER_SITES=	http://www.etek.chalmers.se/~e8cal1/sge/files/ \
X		http://www.digitalfanatics.org/cal/sge/files/
XDISTNAME=	sge030809
X
XMAINTAINER=	walkingshadow@grummel.net
XCOMMENT=	A graphic library for the Simple DirectMedia Layer (SDL)
X
XUSE_GMAKE=		yes
XUSE_LDCONFIG=		yes
XNO_FILTER_SHLIBS=	yes
X
XOPTIONS= 	SDL_IMAGE "Enable support for SDL_IMAGE" On \
X		FREETYPE "Enable FreeType support" On \
X		DOCS "Install documentation" Off
X
X.include <bsd.port.pre.mk>
X
X.if !defined(WITHOUT_FREETYPE)
XLIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2
X.endif
X
X.if defined(WITHOUT_SDL_IMAGE)
XUSE_SDL=	sdl
X.else
XUSE_SDL=	image
X.endif
X
X.if !defined(WITH_DOCS)
XNOPORTDOCS=	yes
X.endif
X
Xpost-patch:
X.if defined(WITHOUT_SDL_IMAGE)
X	@${REINPLACE_CMD} -e 's|#USE_IMG = n|USE_IMG = n|g' ${WRKSRC}/Makefile.conf
X.else
X	@${REINPLACE_CMD} -e 's|#USE_IMG = n|USE_IMG = y|g' ${WRKSRC}/Makefile.conf
X.endif
X.if defined(WITHOUT_FREETYPE)
X	@${REINPLACE_CMD} -e 's|#USE_FT = n|USE_FT = n|g' ${WRKSRC}/Makefile.conf
X.else
X	@${REINPLACE_CMD} -e 's|#USE_FT = n|USE_FT = y|g' ${WRKSRC}/Makefile.conf
X.endif
X	@${REINPLACE_CMD} -e 's|PREFIX =PREFIX|PREFIX =${PREFIX}|g' ${WRKSRC}/Makefile.conf
X	@${REINPLACE_CMD} -e 's|PREFIX_H =PREFIX_H|PREFIX_H =${PREFIX}/include/SDL11|g' ${WRKSRC}/Makefile.conf
X	@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile.conf
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_MAN} ${WRKSRC}/docs/* ${DOCSDIR}
X	@${MKDIR} ${EXAMPLESDIR}
X	@${INSTALL_MAN} ${WRKSRC}/examples/* ${EXAMPLESDIR}
X.endif
X
X.include <bsd.port.post.mk>
END-of-SGE/Makefile
echo x - SGE/distinfo
sed 's/^X//' >SGE/distinfo << 'END-of-SGE/distinfo'
XMD5 (sge030809.tar.gz) = a76975665b6a2bf189130fa2c8821caf
XSHA256 (sge030809.tar.gz) = 25cfbe59ab99647254e69d25984707045492c2a5d1b15f27d999d0284a7110fc
XSIZE (sge030809.tar.gz) = 251698
END-of-SGE/distinfo
echo x - SGE/pkg-descr
sed 's/^X//' >SGE/pkg-descr << 'END-of-SGE/pkg-descr'
XSGE is a graphic library for the Simple DirectMedia Layer (SDL) library.
XSome of SGE:s features are:
X -Pixel operations
X -Clipping
X -Lines, circles and other figures (with antialiasing and alpha blending)
X -Rotation and scaling of surfaces
X -Palette functions
X -TrueType/Bitmap/SFont font functions
X -Basic 2D collision detection
X -Sprite classes
X -Basic texture mapping
X -Filled and gourand shaded polygons (with antialiasing or alpha blending)
X
XWWW: http://www.etek.chalmers.se/~e8cal1/sge/
END-of-SGE/pkg-descr
echo c - SGE/files
mkdir -p SGE/files > /dev/null 2>&1
echo x - SGE/files/patch-Makefile
sed 's/^X//' >SGE/files/patch-Makefile << 'END-of-SGE/files/patch-Makefile'
X--- work/sge030809/Makefile	Tue Aug 12 00:40:41 2003
X+++ Makefile	Fri Aug  4 15:28:10 2006
X@@ -12,16 +12,11 @@
X 
X all:	config $(OBJECTS) 
X 	@ar rsc libSGE.a $(OBJECTS)
X+	$(CXX) $(CFLAGS) -Wl,-soname,libSGE.so.$(API_VER) -fpic -fPIC -shared -o libSGE.so $(OBJECTS) $(LIBS)
X 
X $(OBJECTS):	%.o:%.cpp %.h   #Each object depends on thier .cpp and .h file
X 	$(CXX) $(CFLAGS) -c $<
X 
X-shared: all
X-	$(CXX) $(CFLAGS) -Wl,-soname,libSGE.so.$(API_VER) -fpic -fPIC -shared -o libSGE.so $(OBJECTS) $(LIBS)
X-
X-shared-strip:	shared
X-	@strip libSGE.so
X-
X # Building a dll... I have no idea how to do this, but it should be something like below.
X dll:	config $(OBJECTS)
X 	dlltool --output-def SGE.def $(OBJECTS)
X@@ -70,7 +65,7 @@
X 	@echo ""	
X endif
X 
X-install:	shared
X+install:
X 	@mkdir -p $(PREFIX_H)
X 	install -c -m 644 sge*.h $(PREFIX_H)
X 	@mkdir -p $(PREFIX)/lib
END-of-SGE/files/patch-Makefile
echo x - SGE/files/patch-Makefile.conf
sed 's/^X//' >SGE/files/patch-Makefile.conf << 'END-of-SGE/files/patch-Makefile.conf'
X--- work/sge030809/Makefile.conf	Tue Aug 12 00:43:35 2003
X+++ Makefile.conf	Fri Aug  4 15:20:41 2006
X@@ -7,11 +7,6 @@
X #USE_IMG = n
X #QUIET = y
X 
X-
X-# Compilers (C and C++)
X-CC=gcc
X-CXX=g++
X-
X # Make sure sdl-config is available
X HAVE_SDL =$(shell if (sdl-config --version) < /dev/null > /dev/null 2>&1; then echo "y"; else echo "n"; fi;)
X ifeq ($(HAVE_SDL),n)
X@@ -19,45 +14,24 @@
X endif
X 
X # Where should SGE be installed?
X-PREFIX =$(shell sdl-config --prefix)
X+PREFIX =PREFIX
X 
X # Where should the headerfiles be installed?
X-PREFIX_H =$(shell sdl-config --prefix)/include/SDL
X+PREFIX_H =PREFIX_H
X 
X # Flags passed to the compiler
X-CFLAGS =-Wall -O3 -ffast-math
X+CFLAGS +=-Wall -O3 -ffast-math
X SGE_CFLAGS =$(shell sdl-config --cflags)
X-# Uncomment to make some more optimizations
X-#CFLAGS =-Wall -O9 -ffast-math -march=i686
X-
X 
X # Libs config
X SGE_LIBS =$(shell sdl-config --libs) -lstdc++
X 
X-
X-# Is freetype-config available?
X-HAVE_FT =$(shell if (freetype-config --version) < /dev/null > /dev/null 2>&1; then echo "y"; else echo "n"; fi;)
X-ifeq ($(HAVE_FT),n)
X-  USE_FT = n
X-endif
X-
X ifneq ($(USE_FT),n)
X   USE_FT = y
X   SGE_LIBS +=$(shell freetype-config --libs)
X   FT_CFLAGS =$(shell freetype-config --cflags)
X endif
X 
X-
X-# Is SDL_image available?
X-HAVE_IMG =$(shell if test -e "`sdl-config --prefix`/include/SDL/SDL_image.h" >/dev/null 2>&1; then echo "y"; else echo "n"; fi;)
X-
X-ifneq ($(USE_IMG),y)
X-  ifneq ($(USE_IMG),n)
X-    USE_IMG =$(HAVE_IMG)
X-  endif
X-endif
X-
X ifeq ($(USE_IMG),y)
X   SGE_LIBS +=-lSDL_image
X endif
X-
END-of-SGE/files/patch-Makefile.conf
echo x - SGE/files/patch-sge030809-sge_tt_text.cpp
sed 's/^X//' >SGE/files/patch-sge030809-sge_tt_text.cpp << 'END-of-SGE/files/patch-sge030809-sge_tt_text.cpp'
Xdiff -ur sge030809_orig/sge_tt_text.cpp sge030809/sge_tt_text.cpp
X--- sge030809_orig/sge_tt_text.cpp	Fri Aug  8 14:48:08 2003
X+++ sge_tt_text.cpp	Sun Jul 30 20:49:29 2006
X@@ -36,9 +36,10 @@
X #include "sge_textpp.h"
X 
X #ifndef _SGE_NOTTF
X-#include <freetype/freetype.h>
X-#include <freetype/ftoutln.h>
X-#include <freetype/ttnameid.h>
X+#include <ft2build.h>
X+#include FT_FREETYPE_H
X+#include FT_OUTLINE_H
X+#include FT_TRUETYPE_IDS_H
X #include <freetype/internal/ftobjs.h>
X 
X /* The structure used to hold glyph information (cached) */
END-of-SGE/files/patch-sge030809-sge_tt_text.cpp
echo x - SGE/pkg-plist
sed 's/^X//' >SGE/pkg-plist << 'END-of-SGE/pkg-plist'
Xinclude/SDL11/sge.h
Xinclude/SDL11/sge_blib.h
Xinclude/SDL11/sge_bm_text.h
Xinclude/SDL11/sge_collision.h
Xinclude/SDL11/sge_config.h
Xinclude/SDL11/sge_internal.h
Xinclude/SDL11/sge_misc.h
Xinclude/SDL11/sge_primitives.h
Xinclude/SDL11/sge_rotation.h
Xinclude/SDL11/sge_shape.h
Xinclude/SDL11/sge_surface.h
Xinclude/SDL11/sge_textpp.h
Xinclude/SDL11/sge_tt_text.h
Xlib/libSGE.a
Xlib/libSGE.so
Xlib/libSGE.so.0
Xlib/libSGE.so.0.030809
X%%PORTDOCS%%%%DOCSDIR%%/blib.html
X%%PORTDOCS%%%%DOCSDIR%%/bmf.html
X%%PORTDOCS%%%%DOCSDIR%%/collision.html
X%%PORTDOCS%%%%DOCSDIR%%/color.html
X%%PORTDOCS%%%%DOCSDIR%%/figures.html
X%%PORTDOCS%%%%DOCSDIR%%/guide.html
X%%PORTDOCS%%%%DOCSDIR%%/index.html
X%%PORTDOCS%%%%DOCSDIR%%/intro.html
X%%PORTDOCS%%%%DOCSDIR%%/macros.html
X%%PORTDOCS%%%%DOCSDIR%%/misc.html
X%%PORTDOCS%%%%DOCSDIR%%/pixels.html
X%%PORTDOCS%%%%DOCSDIR%%/rotate.html
X%%PORTDOCS%%%%DOCSDIR%%/shape.html
X%%PORTDOCS%%%%DOCSDIR%%/surface.html
X%%PORTDOCS%%%%DOCSDIR%%/text_classes.html
X%%PORTDOCS%%%%DOCSDIR%%/thanks.html
X%%PORTDOCS%%%%DOCSDIR%%/toc.html
X%%PORTDOCS%%%%DOCSDIR%%/ttf-input.html
X%%PORTDOCS%%%%DOCSDIR%%/ttf-output.html
X%%PORTDOCS%%%%DOCSDIR%%/ttf.html
X%%PORTDOCS%%%%EXAMPLESDIR%%/Makefile
X%%PORTDOCS%%%%EXAMPLESDIR%%/README
X%%PORTDOCS%%%%EXAMPLESDIR%%/alpha.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/basics.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/basics_c.c
X%%PORTDOCS%%%%EXAMPLESDIR%%/bitmapfont.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/blib.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/blitting.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/collision.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/fire.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/font.bmp
X%%PORTDOCS%%%%EXAMPLESDIR%%/font.ttf
X%%PORTDOCS%%%%EXAMPLESDIR%%/input.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/inputdeluxe.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/poly.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/rotate.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/sfont.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/sfont.png
X%%PORTDOCS%%%%EXAMPLESDIR%%/smiley.bmp
X%%PORTDOCS%%%%EXAMPLESDIR%%/speedtest.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/sprite.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/sprite2.cpp
X%%PORTDOCS%%%%EXAMPLESDIR%%/ttf_readme
X%%PORTDOCS%%%%EXAMPLESDIR%%/tux.bmp
X@dirrmtry include/SDL11
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
END-of-SGE/pkg-plist
exit
--- SGE.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060804161513.F35097E30>