pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics Add graphics/ftgl. Based on work in pkgsrc-wip.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e6138d8e1436
branches:  trunk
changeset: 339221:e6138d8e1436
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Sep 08 20:41:10 2019 +0000

description:
Add graphics/ftgl. Based on work in pkgsrc-wip.

FTGL is a free cross-platform Open Source C++ library that uses
Freetype2 to simplify rendering fonts in OpenGL applications. FTGL
supports bitmaps, pixmaps, texture maps, outlines, polygon mesh,
and extruded polygon rendering modes.

diffstat:

 graphics/Makefile                                       |   3 +-
 graphics/ftgl/DESCR                                     |   4 ++
 graphics/ftgl/Makefile                                  |  27 +++++++++++++++++
 graphics/ftgl/PLIST                                     |  26 ++++++++++++++++
 graphics/ftgl/buildlink3.mk                             |  16 ++++++++++
 graphics/ftgl/distinfo                                  |   7 ++++
 graphics/ftgl/patches/patch-src_FTFont_FTBufferFont.cpp |  15 +++++++++
 7 files changed, 97 insertions(+), 1 deletions(-)

diffs (136 lines):

diff -r c419d8ed71e6 -r e6138d8e1436 graphics/Makefile
--- a/graphics/Makefile Sun Sep 08 20:16:52 2019 +0000
+++ b/graphics/Makefile Sun Sep 08 20:41:10 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.845 2019/08/30 19:06:34 nia Exp $
+# $NetBSD: Makefile,v 1.846 2019/09/08 20:41:10 nia Exp $
 #
 
 COMMENT=       Graphics tools and libraries
@@ -135,6 +135,7 @@
 SUBDIR+=       freetype-lib
 SUBDIR+=       freetype-utils
 SUBDIR+=       freetype2
+SUBDIR+=       ftgl
 SUBDIR+=       fujiplay
 SUBDIR+=       g2
 SUBDIR+=       gd
diff -r c419d8ed71e6 -r e6138d8e1436 graphics/ftgl/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ftgl/DESCR       Sun Sep 08 20:41:10 2019 +0000
@@ -0,0 +1,4 @@
+FTGL is a free cross-platform Open Source C++ library that uses
+Freetype2 to simplify rendering fonts in OpenGL applications. FTGL
+supports bitmaps, pixmaps, texture maps, outlines, polygon mesh,
+and extruded polygon rendering modes.
diff -r c419d8ed71e6 -r e6138d8e1436 graphics/ftgl/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ftgl/Makefile    Sun Sep 08 20:41:10 2019 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1 2019/09/08 20:41:10 nia Exp $
+
+DISTNAME=      ftgl-2.1.3-rc5
+PKGNAME=       ${DISTNAME:S/-r/r/1}
+CATEGORIES=    graphics
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=ftgl/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://sourceforge.net/projects/ftgl/
+COMMENT=       C++ library of Freetype2 in OpenGL applications
+LICENSE=       2-clause-bsd
+
+WRKSRC=                ${WRKDIR}/ftgl-2.1.3~rc5
+GNU_CONFIGURE= yes
+USE_TOOLS+=    gmake gsed pkg-config
+USE_LANGUAGES= c c++
+USE_LIBTOOL=   yes
+
+CONFIGURE_ARGS+=       --without-glut-inc
+CONFIGURE_ARGS+=       --without-x
+
+PKGCONFIG_OVERRIDE+=   ftgl.pc.in
+
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r c419d8ed71e6 -r e6138d8e1436 graphics/ftgl/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ftgl/PLIST       Sun Sep 08 20:41:10 2019 +0000
@@ -0,0 +1,26 @@
+@comment $NetBSD: PLIST,v 1.1 2019/09/08 20:41:10 nia Exp $
+include/FTGL/FTBBox.h
+include/FTGL/FTBitmapGlyph.h
+include/FTGL/FTBuffer.h
+include/FTGL/FTBufferFont.h
+include/FTGL/FTBufferGlyph.h
+include/FTGL/FTExtrdGlyph.h
+include/FTGL/FTFont.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/FTLayout.h
+include/FTGL/FTOutlineGlyph.h
+include/FTGL/FTPixmapGlyph.h
+include/FTGL/FTPoint.h
+include/FTGL/FTPolyGlyph.h
+include/FTGL/FTSimpleLayout.h
+include/FTGL/FTTextureGlyph.h
+include/FTGL/ftgl.h
+lib/libftgl.la
+lib/pkgconfig/ftgl.pc
+share/doc/ftgl/projects_using_ftgl.txt
diff -r c419d8ed71e6 -r e6138d8e1436 graphics/ftgl/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ftgl/buildlink3.mk       Sun Sep 08 20:41:10 2019 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/09/08 20:41:10 nia Exp $
+
+BUILDLINK_TREE+=       ftgl
+
+.if !defined(FTGL_BUILDLINK3_MK)
+FTGL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ftgl+=   ftgl>=2.1.3rc5
+BUILDLINK_PKGSRCDIR.ftgl?=     ../../graphics/ftgl
+
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.endif # FTGL_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -ftgl
diff -r c419d8ed71e6 -r e6138d8e1436 graphics/ftgl/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ftgl/distinfo    Sun Sep 08 20:41:10 2019 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/09/08 20:41:10 nia Exp $
+
+SHA1 (ftgl-2.1.3-rc5.tar.gz) = b9c11d3a594896333f1bbe46e10d8617713b4fc6
+RMD160 (ftgl-2.1.3-rc5.tar.gz) = 22ead818fde748be1ffeedb31f8702b7924d212f
+SHA512 (ftgl-2.1.3-rc5.tar.gz) = 77518c4546b53662b45a5c9af2418697b1a4a6250316c1e11ee71ccffc58ce03d5f19c901021b0e1cd05fec8444c84197e4bef77c662513dd6da8c29800cc3cd
+Size (ftgl-2.1.3-rc5.tar.gz) = 841597 bytes
+SHA1 (patch-src_FTFont_FTBufferFont.cpp) = aa24fbd34b394cea3b107d6d55fc07c37d20aaa5
diff -r c419d8ed71e6 -r e6138d8e1436 graphics/ftgl/patches/patch-src_FTFont_FTBufferFont.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ftgl/patches/patch-src_FTFont_FTBufferFont.cpp   Sun Sep 08 20:41:10 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_FTFont_FTBufferFont.cpp,v 1.1 2019/09/08 20:41:10 nia Exp $
+
+return wcsdup if OPSYS != DragonFly.
+
+--- src/FTFont/FTBufferFont.cpp.orig   2008-06-12 09:52:03.000000000 +0000
++++ src/FTFont/FTBufferFont.cpp
+@@ -206,7 +206,7 @@ inline wchar_t *StringCopy(wchar_t const
+ {
+     if(len < 0)
+     {
+-#if defined HAVE_WCSDUP
++#if defined HAVE_WCSDUP && !defined(__DragonFly__)
+         return wcsdup(s);
+ #else
+         len = (int)wcslen(s);



Home | Main Index | Thread Index | Old Index