From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jan 16 19:30:23 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D340816A4CE for ; Fri, 16 Jan 2004 19:30:23 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C301243D5E for ; Fri, 16 Jan 2004 19:30:17 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i0H3UHFR056377 for ; Fri, 16 Jan 2004 19:30:17 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i0H3UH4Y056376; Fri, 16 Jan 2004 19:30:17 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 16 Jan 2004 19:30:17 -0800 (PST) Resent-Message-Id: <200401170330.i0H3UH4Y056376@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Igor Pokrovsky Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5521016A4CF for ; Fri, 16 Jan 2004 19:26:42 -0800 (PST) Received: from doom.homeunix.org (9-009.dialup.comset.net [213.172.9.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88F4A43D55 for ; Fri, 16 Jan 2004 19:26:22 -0800 (PST) (envelope-from igor@doom.homeunix.org) Received: from doom.homeunix.org (localhost [127.0.0.1]) by doom.homeunix.org (8.12.10/8.12.10) with ESMTP id i0H3Q7xc000646 for ; Sat, 17 Jan 2004 06:26:11 +0300 (MSK) (envelope-from igor@doom.homeunix.org) Received: (from igor@localhost) by doom.homeunix.org (8.12.10/8.12.10/Submit) id i0GFVP4w057938; Fri, 16 Jan 2004 18:31:25 +0300 (MSK) (envelope-from igor) Message-Id: <200401161531.i0GFVP4w057938@doom.homeunix.org> Date: Fri, 16 Jan 2004 18:31:25 +0300 (MSK) From: Igor Pokrovsky To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/61456: New port: graphics/ftgl An OpenGL FreeType fonts rendering library X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Igor Pokrovsky List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jan 2004 03:30:24 -0000 >Number: 61456 >Category: ports >Synopsis: New port: graphics/ftgl An OpenGL FreeType fonts rendering library >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 16 19:30:17 PST 2004 >Closed-Date: >Last-Modified: >Originator: Igor Pokrovsky >Release: FreeBSD 4.9-STABLE i386 >Organization: >Environment: System: FreeBSD doom.homeunix.org 4.9-STABLE FreeBSD 4.9-STABLE #1: Sun Dec 14 13:12:44 MSK 2003 root@doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL i386 >Description: FTGL is a free open source library to enable developers to use arbitrary fonts in their OpenGL applications. Unlike other OpenGL font libraries FTGL uses standard font file formats so doesn't need a preprocessing step to convert the high quality font data into a lesser quality, proprietary format. FTGL uses the Freetype (www.freetype.org) font library to open and 'decode' the fonts. It then takes that output and stores it in a format most efficient for OpenGL rendering. >How-To-Repeat: >Fix: --- ftgl.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: # # ftgl # ftgl/pkg-plist # ftgl/pkg-descr # ftgl/distinfo # ftgl/Makefile # ftgl/files # ftgl/files/patch-FTFace.cpp # ftgl/files/makefile.ex # echo c - ftgl mkdir -p ftgl > /dev/null 2>&1 echo x - ftgl/pkg-plist sed 's/^X//' >ftgl/pkg-plist << 'END-of-ftgl/pkg-plist' Xinclude/ftgl/FTBBox.h Xinclude/ftgl/FTBitmapGlyph.h Xinclude/ftgl/FTCharToGlyphIndexMap.h Xinclude/ftgl/FTCharmap.h Xinclude/ftgl/FTContour.h Xinclude/ftgl/FTExtrdGlyph.h Xinclude/ftgl/FTFace.h Xinclude/ftgl/FTFont.h Xinclude/ftgl/FTGL.h Xinclude/ftgl/FTGLBitmapFont.h Xinclude/ftgl/FTGLExtrdFont.h Xinclude/ftgl/FTGLOutlineFont.h Xinclude/ftgl/FTGLPixmapFont.h Xinclude/ftgl/FTGLPolygonFont.h Xinclude/ftgl/FTGLTextureFont.h Xinclude/ftgl/FTGlyph.h Xinclude/ftgl/FTGlyphContainer.h Xinclude/ftgl/FTLibrary.h Xinclude/ftgl/FTList.h Xinclude/ftgl/FTOutlineGlyph.h Xinclude/ftgl/FTPixmapGlyph.h Xinclude/ftgl/FTPoint.h Xinclude/ftgl/FTPolyGlyph.h Xinclude/ftgl/FTSize.h Xinclude/ftgl/FTTextureGlyph.h Xinclude/ftgl/FTVector.h Xinclude/ftgl/FTVectoriser.h X@dirrm include/ftgl Xlib/libftgl.a X%%EXAMPLESDIR%%/makefile X%%EXAMPLESDIR%%/tb.c X%%EXAMPLESDIR%%/trackball.c X%%EXAMPLESDIR%%/FTGLDemo.cpp X%%EXAMPLESDIR%%/tb.h X%%EXAMPLESDIR%%/trackball.h X%%EXAMPLESDIR%%/README.txt X@dirrm %%EXAMPLESDIR%% X%%PORTDOCS%%%%DOCSDIR%%/images/ftgldemo.jpg X%%PORTDOCS%%%%DOCSDIR%%/images/metrics.png X%%PORTDOCS%%@dirrm %%DOCSDIR%%/images X%%PORTDOCS%%%%DOCSDIR%%/FTGL_1_3.gif X%%PORTDOCS%%%%DOCSDIR%%/FTGL.html X%%PORTDOCS%%%%DOCSDIR%%/README.txt X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-ftgl/pkg-plist echo x - ftgl/pkg-descr sed 's/^X//' >ftgl/pkg-descr << 'END-of-ftgl/pkg-descr' XFTGL is a free open source library to enable developers to use arbitrary Xfonts in their OpenGL applications. Unlike other OpenGL font libraries XFTGL uses standard font file formats so doesn't need a preprocessing step Xto convert the high quality font data into a lesser quality, proprietary Xformat. FTGL uses the Freetype (www.freetype.org) font library to open and X'decode' the fonts. It then takes that output and stores it in a format Xmost efficient for OpenGL rendering. X XWWW: http://homepages.paradise.net.nz/henryj/ X X- Igor Pokrovsky Xtiamat@comset.net END-of-ftgl/pkg-descr echo x - ftgl/distinfo sed 's/^X//' >ftgl/distinfo << 'END-of-ftgl/distinfo' XMD5 (FTGL.tar.gz) = 62d363867d4906a428640e661c97f74f END-of-ftgl/distinfo echo x - ftgl/Makefile sed 's/^X//' >ftgl/Makefile << 'END-of-ftgl/Makefile' X# New ports collection makefile for: ftgl X# Date created: 16 Jan 2004 X# Whom: Igor Pokrovsky X# X# $FreeBSD$ X# X XPORTNAME= ftgl XPORTVERSION= 2.04 XCATEGORIES= graphics XMASTER_SITES= XDISTNAME= ${PORTNAME:U} X XMAINTAINER= tiamat@comset.net XCOMMENT= An OpenGL FreeType fonts rendering library X XLIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 X XUSE_GMAKE= yes XUSE_GL= yes XUSE_X_PREFIX= yes XGNU_CONFIGURE= yes XCONFIGURE_WRKSRC= ${WRKDIR}/${DISTNAME}/unix XCONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} XCONFIGURE_ARGS= --with-gl-inc=${X11BASE}/include --with-gl-lib=${X11BASE}/lib XBUILD_WRKSRC= ${CONFIGURE_WRKSRC} XINSTALL_WRKSRC= ${CONFIGURE_WRKSRC} XINSTALLS_SHLIB= yes X Xdo-install: X ${INSTALL_DATA} ${INSTALL_WRKSRC}/src/.libs/lib${PORTNAME}.a ${PREFIX}/lib X @${MKDIR} ${PREFIX}/include/${PORTNAME} X ${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include/${PORTNAME} X X @${MKDIR} ${EXAMPLESDIR} X ${INSTALL_DATA} ${WRKSRC}/demo/* ${EXAMPLESDIR} X ${PERL} -pi -e 's|%%CC%%|${CC}|g; \ X s|%%CXX%%|${CXX}|g; \ X s|%%RM%%|${RM}|g; \ X s|%%CFLAGS%%|${CFLAGS}|g; \ X s|%%CXXFLAGS%%|${CXXFLAGS}|g; \ X s|%%PREFIX%%|${PREFIX}|g; \ X s|%%X11BASE%%|${X11BASE}|g; \ X s|%%LOCALBASE%%|${LOCALBASE}|g' \ X <${FILESDIR}/makefile.ex >${EXAMPLESDIR}/makefile X X.ifndef (NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/docs/FTGL.html ${DOCSDIR} X ${INSTALL_DATA} ${WRKSRC}/docs/FTGL_1_3.gif ${DOCSDIR} X @${MKDIR} ${DOCSDIR}/images X ${INSTALL_DATA} ${WRKSRC}/docs/images/* ${DOCSDIR}/images X.endif X X.include END-of-ftgl/Makefile echo c - ftgl/files mkdir -p ftgl/files > /dev/null 2>&1 echo x - ftgl/files/patch-FTFace.cpp sed 's/^X//' >ftgl/files/patch-FTFace.cpp << 'END-of-ftgl/files/patch-FTFace.cpp' X--- src/FTFace.cpp.orig Fri Jan 16 13:23:11 2004 X+++ src/FTFace.cpp Fri Jan 16 13:23:23 2004 X@@ -62,7 +62,7 @@ X { X FT_Open_Args open; X X- open.flags = (FT_Open_Flags)1; // FT_OPEN_MEMORY; X+ open.flags = /*(FT_Open_Flags)*/1; // FT_OPEN_MEMORY; X open.memory_base = (FT_Byte *)pBufferBytes; X open.memory_size = bufferSizeInBytes; X END-of-ftgl/files/patch-FTFace.cpp echo x - ftgl/files/makefile.ex sed 's/^X//' >ftgl/files/makefile.ex << 'END-of-ftgl/files/makefile.ex' X# Make sure, that you have graphics/libglut installed X# in order to build example program X XCC= %%CC%% XCXX= %%CXX%% XRM= %%RM%% XCFLAGS= %%CFLAGS%% -I. -I%%X11BASE%%/include -I%%PREFIX%%/include/ftgl XCXXFLAGS= %%CXXFLAGS%% -I. -I%%X11BASE%%/include -I%%PREFIX%%/include/ftgl XLDFLAGS= -L%%X11BASE%%/lib -L%%PREFIX%%/lib -lglut -lftgl X XFREETYPE_CFLAGS!=%%LOCALBASE%%/bin/freetype-config --cflags XFREETYPE_LFLAGS!=%%LOCALBASE%%/bin/freetype-config --libs X XCFLAGS+= ${FREETYPE_CFLAGS} XCXXFLAGS+= ${FREETYPE_CFLAGS} XLDFLAGS+= ${FREETYPE_LFLAGS} X XFTGLDemo: tb.o trackball.o FTGLDemo.o X ${CXX} $> -o $@ ${LDFLAGS} X X.cpp.o: X ${CXX} -c ${CXXFLAGS} $*.cpp X X.c.o: X ${CC} -c ${CFLAGS} $*.c X Xclean: X ${RM} -f FTGLDemo *.o END-of-ftgl/files/makefile.ex exit --- ftgl.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: