aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ftgl
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-01-17 17:03:29 +0800
committerkrion <krion@FreeBSD.org>2004-01-17 17:03:29 +0800
commitbf939979164c6bee44237058e5467a9f28005820 (patch)
tree57f6b236e04239efb60d09b0efa9396e562c23e0 /graphics/ftgl
parent31437e27cbd654d54c04eb88c1338c43afcdf557 (diff)
downloadfreebsd-ports-gnome-bf939979164c6bee44237058e5467a9f28005820.tar.gz
freebsd-ports-gnome-bf939979164c6bee44237058e5467a9f28005820.tar.zst
freebsd-ports-gnome-bf939979164c6bee44237058e5467a9f28005820.zip
Add ftgl 2.04,
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. PR: 61456 Submitted by: Igor Pokrovsky <tiamat@comset.net>
Diffstat (limited to 'graphics/ftgl')
-rw-r--r--graphics/ftgl/Makefile56
-rw-r--r--graphics/ftgl/distinfo1
-rw-r--r--graphics/ftgl/files/makefile.ex28
-rw-r--r--graphics/ftgl/files/patch-FTFace.cpp11
-rw-r--r--graphics/ftgl/pkg-descr12
-rw-r--r--graphics/ftgl/pkg-plist44
6 files changed, 152 insertions, 0 deletions
diff --git a/graphics/ftgl/Makefile b/graphics/ftgl/Makefile
new file mode 100644
index 000000000000..fd3347b2720f
--- /dev/null
+++ b/graphics/ftgl/Makefile
@@ -0,0 +1,56 @@
+# New ports collection makefile for: ftgl
+# Date created: 16 Jan 2004
+# Whom: Igor Pokrovsky <tiamat@comset.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ftgl
+PORTVERSION= 2.04
+CATEGORIES= graphics
+MASTER_SITES= http://homepages.paradise.net.nz/henryj/code/
+DISTNAME= ${PORTNAME:U}
+
+MAINTAINER= tiamat@comset.net
+COMMENT= An OpenGL FreeType fonts rendering library
+
+LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
+
+USE_GMAKE= yes
+USE_GL= yes
+USE_X_PREFIX= yes
+GNU_CONFIGURE= yes
+CONFIGURE_WRKSRC= ${WRKDIR}/${DISTNAME}/unix
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS= --with-gl-inc=${X11BASE}/include --with-gl-lib=${X11BASE}/lib
+BUILD_WRKSRC= ${CONFIGURE_WRKSRC}
+INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}
+INSTALLS_SHLIB= yes
+
+do-install:
+ ${INSTALL_DATA} ${INSTALL_WRKSRC}/src/.libs/lib${PORTNAME}.a ${PREFIX}/lib
+ @${MKDIR} ${PREFIX}/include/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include/${PORTNAME}
+
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/demo/* ${EXAMPLESDIR}
+ ${PERL} -pi -e 's|%%CC%%|${CC}|g; \
+ s|%%CXX%%|${CXX}|g; \
+ s|%%RM%%|${RM}|g; \
+ s|%%CFLAGS%%|${CFLAGS}|g; \
+ s|%%CXXFLAGS%%|${CXXFLAGS}|g; \
+ s|%%PREFIX%%|${PREFIX}|g; \
+ s|%%X11BASE%%|${X11BASE}|g; \
+ s|%%LOCALBASE%%|${LOCALBASE}|g' \
+ <${FILESDIR}/makefile.ex >${EXAMPLESDIR}/makefile
+
+.ifndef (NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/FTGL.html ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/FTGL_1_3.gif ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR}/images
+ ${INSTALL_DATA} ${WRKSRC}/docs/images/* ${DOCSDIR}/images
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/ftgl/distinfo b/graphics/ftgl/distinfo
new file mode 100644
index 000000000000..1b2472603070
--- /dev/null
+++ b/graphics/ftgl/distinfo
@@ -0,0 +1 @@
+MD5 (FTGL.tar.gz) = 62d363867d4906a428640e661c97f74f
diff --git a/graphics/ftgl/files/makefile.ex b/graphics/ftgl/files/makefile.ex
new file mode 100644
index 000000000000..fd5a4f6a4488
--- /dev/null
+++ b/graphics/ftgl/files/makefile.ex
@@ -0,0 +1,28 @@
+# Make sure, that you have graphics/libglut installed
+# in order to build example program
+
+CC= %%CC%%
+CXX= %%CXX%%
+RM= %%RM%%
+CFLAGS= %%CFLAGS%% -I. -I%%X11BASE%%/include -I%%PREFIX%%/include/ftgl
+CXXFLAGS= %%CXXFLAGS%% -I. -I%%X11BASE%%/include -I%%PREFIX%%/include/ftgl
+LDFLAGS= -L%%X11BASE%%/lib -L%%PREFIX%%/lib -lglut -lftgl
+
+FREETYPE_CFLAGS!=%%LOCALBASE%%/bin/freetype-config --cflags
+FREETYPE_LFLAGS!=%%LOCALBASE%%/bin/freetype-config --libs
+
+CFLAGS+= ${FREETYPE_CFLAGS}
+CXXFLAGS+= ${FREETYPE_CFLAGS}
+LDFLAGS+= ${FREETYPE_LFLAGS}
+
+FTGLDemo: tb.o trackball.o FTGLDemo.o
+ ${CXX} $> -o $@ ${LDFLAGS}
+
+.cpp.o:
+ ${CXX} -c ${CXXFLAGS} $*.cpp
+
+.c.o:
+ ${CC} -c ${CFLAGS} $*.c
+
+clean:
+ ${RM} -f FTGLDemo *.o
diff --git a/graphics/ftgl/files/patch-FTFace.cpp b/graphics/ftgl/files/patch-FTFace.cpp
new file mode 100644
index 000000000000..1fda65627a1d
--- /dev/null
+++ b/graphics/ftgl/files/patch-FTFace.cpp
@@ -0,0 +1,11 @@
+--- src/FTFace.cpp.orig Fri Jan 16 13:23:11 2004
++++ src/FTFace.cpp Fri Jan 16 13:23:23 2004
+@@ -62,7 +62,7 @@
+ {
+ FT_Open_Args open;
+
+- open.flags = (FT_Open_Flags)1; // FT_OPEN_MEMORY;
++ open.flags = /*(FT_Open_Flags)*/1; // FT_OPEN_MEMORY;
+ open.memory_base = (FT_Byte *)pBufferBytes;
+ open.memory_size = bufferSizeInBytes;
+
diff --git a/graphics/ftgl/pkg-descr b/graphics/ftgl/pkg-descr
new file mode 100644
index 000000000000..d996a8f11802
--- /dev/null
+++ b/graphics/ftgl/pkg-descr
@@ -0,0 +1,12 @@
+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.
+
+WWW: http://homepages.paradise.net.nz/henryj/
+
+- Igor Pokrovsky
+tiamat@comset.net
diff --git a/graphics/ftgl/pkg-plist b/graphics/ftgl/pkg-plist
new file mode 100644
index 000000000000..42e54ae26c4b
--- /dev/null
+++ b/graphics/ftgl/pkg-plist
@@ -0,0 +1,44 @@
+include/ftgl/FTBBox.h
+include/ftgl/FTBitmapGlyph.h
+include/ftgl/FTCharToGlyphIndexMap.h
+include/ftgl/FTCharmap.h
+include/ftgl/FTContour.h
+include/ftgl/FTExtrdGlyph.h
+include/ftgl/FTFace.h
+include/ftgl/FTFont.h
+include/ftgl/FTGL.h
+include/ftgl/FTGLBitmapFont.h
+include/ftgl/FTGLExtrdFont.h
+include/ftgl/FTGLOutlineFont.h
+include/ftgl/FTGLPixmapFont.h
+include/ftgl/FTGLPolygonFont.h
+include/ftgl/FTGLTextureFont.h
+include/ftgl/FTGlyph.h
+include/ftgl/FTGlyphContainer.h
+include/ftgl/FTLibrary.h
+include/ftgl/FTList.h
+include/ftgl/FTOutlineGlyph.h
+include/ftgl/FTPixmapGlyph.h
+include/ftgl/FTPoint.h
+include/ftgl/FTPolyGlyph.h
+include/ftgl/FTSize.h
+include/ftgl/FTTextureGlyph.h
+include/ftgl/FTVector.h
+include/ftgl/FTVectoriser.h
+@dirrm include/ftgl
+lib/libftgl.a
+%%EXAMPLESDIR%%/makefile
+%%EXAMPLESDIR%%/tb.c
+%%EXAMPLESDIR%%/trackball.c
+%%EXAMPLESDIR%%/FTGLDemo.cpp
+%%EXAMPLESDIR%%/tb.h
+%%EXAMPLESDIR%%/trackball.h
+%%EXAMPLESDIR%%/README.txt
+@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%%%DOCSDIR%%/images/ftgldemo.jpg
+%%PORTDOCS%%%%DOCSDIR%%/images/metrics.png
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/images
+%%PORTDOCS%%%%DOCSDIR%%/FTGL_1_3.gif
+%%PORTDOCS%%%%DOCSDIR%%/FTGL.html
+%%PORTDOCS%%%%DOCSDIR%%/README.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%