diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2006-04-09 18:01:25 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2006-04-09 18:01:25 +0000 |
commit | ad7873b88948444ebba5cf73ee51f546aead778d (patch) | |
tree | e5d4ef0b732b106995d130c1eaa7c7141c550f9c /graphics/libgltext | |
parent | Remove dead mirror, add working ones (diff) |
GLText is a portable font rendering library for C++ OpenGL applications. It
uses FreeType2 to read and render high-quality TrueType fonts with a minimal
footprint. With just a few easy lines of C++, you can add gorgeously
rendered text to your graphical applications.
GLText is an open source project licensed under the LGPL. Basically this means
that you can use and link your application with it regardless of what license
your application uses. If you make changes to GLText, however,
you must make those changes open source under the LGPL.
Written with portablility in mind, GLText works on Windows, Linux, FreeBSD and
IRIX - virtually anywhere that FreeType2 supports.
WWW: http://gltext.sourceforge.net
PR: ports/93617
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
Notes
Notes:
svn path=/head/; revision=159225
Diffstat (limited to 'graphics/libgltext')
-rw-r--r-- | graphics/libgltext/Makefile | 70 | ||||
-rw-r--r-- | graphics/libgltext/distinfo | 3 | ||||
-rw-r--r-- | graphics/libgltext/pkg-descr | 14 | ||||
-rw-r--r-- | graphics/libgltext/pkg-plist | 20 |
4 files changed, 107 insertions, 0 deletions
diff --git a/graphics/libgltext/Makefile b/graphics/libgltext/Makefile new file mode 100644 index 000000000000..cd559dd6fe73 --- /dev/null +++ b/graphics/libgltext/Makefile @@ -0,0 +1,70 @@ +# New ports collection makefile for: libgltext +# Date created: 2006-02-20 +# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> +# +# $FreeBSD$ +# + +PORTNAME= libgltext +PORTVERSION= 0.3.1 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= gltext +DISTNAME= gltext-${PORTVERSION} + +MAINTAINER= acardenas@bsd.org.pe +COMMENT= Portable font rendering library for C++ + +LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 + +USE_X_PREFIX= yes +USE_GL= yes +USE_GMAKE= yes +GNU_CONFIGURE= yes +INSTALLS_SHLIB= yes +CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" + +OPTIONS= EXAMPLES "Compile examples, need libglut" off + +.include <bsd.port.pre.mk> + +.if defined(WITH_EXAMPLES) +LIB_DEPENDS+= glut.4:${PORTSDIR}/graphics/libglut +FLAG_EXAMPLES= true +PLIST_SUB+= EXAMPLES="" +.else +PLIST_SUB+= EXAMPLES="@comment " +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/.libs/${PORTNAME}-${PORTVERSION}.so \ + ${PREFIX}/lib/${PORTNAME}.so.0 + ${INSTALL_DATA} ${WRKSRC}/src/.libs/${PORTNAME}.a \ + ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}.la \ + ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/src/gltext.h ${PREFIX}/include + + @cd ${PREFIX}/lib && \ + ${LN} -s ${PORTNAME}.so.0 ${PORTNAME}.so + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/doc/tutorial.txt ${DOCSDIR} +.endif + +.if defined(FLAG_EXAMPLES) +.for DIRE in alpha fps simple sizes + @${MKDIR} ${EXAMPLESDIR}/${DIRE} + @cd ${WRKSRC}/examples && \ + ${INSTALL_DATA} ${DIRE}/${DIRE} ${DIRE}/${DIRE}.cpp ${EXAMPLESDIR}/${DIRE} +.endfor + @${ECHO_MSG} "" + @${ECHO_MSG} " Examples source and binary on ${EXAMPLESDIR}" + @${ECHO_MSG} "" +.endif + +.include <bsd.port.post.mk> diff --git a/graphics/libgltext/distinfo b/graphics/libgltext/distinfo new file mode 100644 index 000000000000..bd51d94c1ed9 --- /dev/null +++ b/graphics/libgltext/distinfo @@ -0,0 +1,3 @@ +MD5 (gltext-0.3.1.tar.gz) = 561da5749a117a78a107291f7cb3ebd0 +SHA256 (gltext-0.3.1.tar.gz) = 44bcbf2ac0d9fa011b6ef703efb085bc2f21724d565a8ec6c334159304031bed +SIZE (gltext-0.3.1.tar.gz) = 364843 diff --git a/graphics/libgltext/pkg-descr b/graphics/libgltext/pkg-descr new file mode 100644 index 000000000000..e75ed3315523 --- /dev/null +++ b/graphics/libgltext/pkg-descr @@ -0,0 +1,14 @@ +GLText is a portable font rendering library for C++ OpenGL applications. It +uses FreeType2 to read and render high-quality TrueType fonts with a minimal +footprint. With just a few easy lines of C++, you can add gorgeously +rendered text to your graphical applications. + +GLText is an open source project licensed under the LGPL. Basically this means +that you can use and link your application with it regardless of what license +your application uses. If you make changes to GLText, however, +you must make those changes open source under the LGPL. + +Written with portablility in mind, GLText works on Windows, Linux, FreeBSD and +IRIX - virtually anywhere that FreeType2 supports. + +WWW: http://gltext.sourceforge.net diff --git a/graphics/libgltext/pkg-plist b/graphics/libgltext/pkg-plist new file mode 100644 index 000000000000..eb11866ce430 --- /dev/null +++ b/graphics/libgltext/pkg-plist @@ -0,0 +1,20 @@ +include/gltext.h +lib/libgltext.so.0 +lib/libgltext.so +lib/libgltext.la +lib/libgltext.a +%%PORTDOCS%%%%DOCSDIR%%/tutorial.txt +%%EXAMPLES%%%%EXAMPLESDIR%%/alpha/alpha +%%EXAMPLES%%%%EXAMPLESDIR%%/alpha/alpha.cpp +%%EXAMPLES%%%%EXAMPLESDIR%%/fps/fps +%%EXAMPLES%%%%EXAMPLESDIR%%/fps/fps.cpp +%%EXAMPLES%%%%EXAMPLESDIR%%/simple/simple +%%EXAMPLES%%%%EXAMPLESDIR%%/simple/simple.cpp +%%EXAMPLES%%%%EXAMPLESDIR%%/sizes/sizes +%%EXAMPLES%%%%EXAMPLESDIR%%/sizes/sizes.cpp +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%EXAMPLES%%@dirrm %%EXAMPLESDIR%%/alpha +%%EXAMPLES%%@dirrm %%EXAMPLESDIR%%/fps +%%EXAMPLES%%@dirrm %%EXAMPLESDIR%%/simple +%%EXAMPLES%%@dirrm %%EXAMPLESDIR%%/sizes +%%EXAMPLES%%@dirrm %%EXAMPLESDIR%% |