summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2019-09-08 20:41:10 +0000
committernia <nia@pkgsrc.org>2019-09-08 20:41:10 +0000
commit8087cded668a580c72bb8610b300cf855e68c5d0 (patch)
tree1b50d2ebfdeae3c31f62893bf0790e90e6c40aa9 /graphics
parent94e207f7fd77fff0b6f79c5d745467efaa79caf2 (diff)
downloadpkgsrc-8087cded668a580c72bb8610b300cf855e68c5d0.tar.gz
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 (limited to 'graphics')
-rw-r--r--graphics/Makefile3
-rw-r--r--graphics/ftgl/DESCR4
-rw-r--r--graphics/ftgl/Makefile27
-rw-r--r--graphics/ftgl/PLIST26
-rw-r--r--graphics/ftgl/buildlink3.mk16
-rw-r--r--graphics/ftgl/distinfo7
-rw-r--r--graphics/ftgl/patches/patch-src_FTFont_FTBufferFont.cpp15
7 files changed, 97 insertions, 1 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 2a80dd7590c..2c758e7cd19 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -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
SUBDIR+= freetype-lib
SUBDIR+= freetype-utils
SUBDIR+= freetype2
+SUBDIR+= ftgl
SUBDIR+= fujiplay
SUBDIR+= g2
SUBDIR+= gd
diff --git a/graphics/ftgl/DESCR b/graphics/ftgl/DESCR
new file mode 100644
index 00000000000..1022c4f8985
--- /dev/null
+++ b/graphics/ftgl/DESCR
@@ -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 --git a/graphics/ftgl/Makefile b/graphics/ftgl/Makefile
new file mode 100644
index 00000000000..d2d55a7da80
--- /dev/null
+++ b/graphics/ftgl/Makefile
@@ -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
+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 --git a/graphics/ftgl/PLIST b/graphics/ftgl/PLIST
new file mode 100644
index 00000000000..d2c7de99fed
--- /dev/null
+++ b/graphics/ftgl/PLIST
@@ -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 --git a/graphics/ftgl/buildlink3.mk b/graphics/ftgl/buildlink3.mk
new file mode 100644
index 00000000000..7d7f1585540
--- /dev/null
+++ b/graphics/ftgl/buildlink3.mk
@@ -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 --git a/graphics/ftgl/distinfo b/graphics/ftgl/distinfo
new file mode 100644
index 00000000000..c4df1c8cf2a
--- /dev/null
+++ b/graphics/ftgl/distinfo
@@ -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 --git a/graphics/ftgl/patches/patch-src_FTFont_FTBufferFont.cpp b/graphics/ftgl/patches/patch-src_FTFont_FTBufferFont.cpp
new file mode 100644
index 00000000000..ba47fc800b0
--- /dev/null
+++ b/graphics/ftgl/patches/patch-src_FTFont_FTBufferFont.cpp
@@ -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);