mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-06 11:41:52 +00:00
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>
This commit is contained in:
parent
4a67954051
commit
3c886e8649
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=98379
@ -77,6 +77,7 @@
|
||||
SUBDIR += fnlib
|
||||
SUBDIR += fractorama
|
||||
SUBDIR += frontline
|
||||
SUBDIR += ftgl
|
||||
SUBDIR += fujiplay
|
||||
SUBDIR += g2
|
||||
SUBDIR += g3dviewer
|
||||
|
56
graphics/ftgl/Makefile
Normal file
56
graphics/ftgl/Makefile
Normal file
@ -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>
|
1
graphics/ftgl/distinfo
Normal file
1
graphics/ftgl/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (FTGL.tar.gz) = 62d363867d4906a428640e661c97f74f
|
28
graphics/ftgl/files/makefile.ex
Normal file
28
graphics/ftgl/files/makefile.ex
Normal file
@ -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
|
11
graphics/ftgl/files/patch-FTFace.cpp
Normal file
11
graphics/ftgl/files/patch-FTFace.cpp
Normal file
@ -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;
|
||||
|
12
graphics/ftgl/pkg-descr
Normal file
12
graphics/ftgl/pkg-descr
Normal file
@ -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
|
44
graphics/ftgl/pkg-plist
Normal file
44
graphics/ftgl/pkg-plist
Normal file
@ -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%%
|
Loading…
x
Reference in New Issue
Block a user