summaryrefslogtreecommitdiff
path: root/fonts/SDL2_ttf
diff options
context:
space:
mode:
authorrodent <rodent@pkgsrc.org>2014-02-02 16:06:19 +0000
committerrodent <rodent@pkgsrc.org>2014-02-02 16:06:19 +0000
commit32e2d507c9993aced0800893b7e952b3d2a98c9c (patch)
tree85f6d1ff6b5f1ceb3579df38c6c7d5e7b636597b /fonts/SDL2_ttf
parentee04a3e6e04fd58c6cc8c016dc43bdc6a8487f2e (diff)
downloadpkgsrc-32e2d507c9993aced0800893b7e952b3d2a98c9c.tar.gz
Import SDL2_ttf-2.0.12 as fonts/SDL2_ttf.
This is a sample library which allows you to use TrueType fonts in your SDL applications. It comes with an example program "showfont" which displays an example string for a given TrueType font file.
Diffstat (limited to 'fonts/SDL2_ttf')
-rw-r--r--fonts/SDL2_ttf/DESCR3
-rw-r--r--fonts/SDL2_ttf/Makefile22
-rw-r--r--fonts/SDL2_ttf/PLIST4
-rw-r--r--fonts/SDL2_ttf/buildlink3.mk15
-rw-r--r--fonts/SDL2_ttf/distinfo5
-rw-r--r--fonts/SDL2_ttf/options.mk22
6 files changed, 71 insertions, 0 deletions
diff --git a/fonts/SDL2_ttf/DESCR b/fonts/SDL2_ttf/DESCR
new file mode 100644
index 00000000000..50f29a00156
--- /dev/null
+++ b/fonts/SDL2_ttf/DESCR
@@ -0,0 +1,3 @@
+This is a sample library which allows you to use TrueType fonts in your SDL
+applications. It comes with an example program "showfont" which displays an
+example string for a given TrueType font file.
diff --git a/fonts/SDL2_ttf/Makefile b/fonts/SDL2_ttf/Makefile
new file mode 100644
index 00000000000..c2276d30a0e
--- /dev/null
+++ b/fonts/SDL2_ttf/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2014/02/02 16:06:19 rodent Exp $
+
+DISTNAME= SDL2_ttf-2.0.12
+CATEGORIES= fonts
+MASTER_SITES= http://www.libsdl.org/projects/SDL_ttf/release/
+
+MAINTAINER= rodent@NetBSD.org
+HOMEPAGE= http://www.libsdl.org/projects/SDL_ttf/
+COMMENT= Sample library allowing for using TrueType fonts in SDL applications
+LICENSE= zlib
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+
+PKGCONFIG_OVERRIDE+= SDL2_ttf.pc.in
+
+.include "options.mk"
+
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/fonts/SDL2_ttf/PLIST b/fonts/SDL2_ttf/PLIST
new file mode 100644
index 00000000000..0de8e139800
--- /dev/null
+++ b/fonts/SDL2_ttf/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2014/02/02 16:06:19 rodent Exp $
+include/SDL2/SDL_ttf.h
+lib/libSDL2_ttf.la
+lib/pkgconfig/SDL2_ttf.pc
diff --git a/fonts/SDL2_ttf/buildlink3.mk b/fonts/SDL2_ttf/buildlink3.mk
new file mode 100644
index 00000000000..284249b5c20
--- /dev/null
+++ b/fonts/SDL2_ttf/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/02/02 16:06:19 rodent Exp $
+
+BUILDLINK_TREE+= SDL2_ttf
+
+.if !defined(SDL2_TTF_BUILDLINK3_MK)
+SDL2_TTF_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.SDL2_ttf+= SDL2_ttf>=2.0.12
+BUILDLINK_PKGSRCDIR.SDL2_ttf?= ../../fonts/SDL2_ttf
+
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.endif # SDL2_TTF_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -SDL2_ttf
diff --git a/fonts/SDL2_ttf/distinfo b/fonts/SDL2_ttf/distinfo
new file mode 100644
index 00000000000..609ff29630c
--- /dev/null
+++ b/fonts/SDL2_ttf/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/02/02 16:06:19 rodent Exp $
+
+SHA1 (SDL2_ttf-2.0.12.tar.gz) = 542865c604fe92d2f26000428ef733381caa0e8e
+RMD160 (SDL2_ttf-2.0.12.tar.gz) = ac5dee6f8e6e1aaef36c1f070b8b07b6c4582ba1
+Size (SDL2_ttf-2.0.12.tar.gz) = 5517665 bytes
diff --git a/fonts/SDL2_ttf/options.mk b/fonts/SDL2_ttf/options.mk
new file mode 100644
index 00000000000..c9eba7afd65
--- /dev/null
+++ b/fonts/SDL2_ttf/options.mk
@@ -0,0 +1,22 @@
+# $NetBSD: options.mk,v 1.1 2014/02/02 16:06:19 rodent Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.SDL2_ttf
+PKG_SUPPORTED_OPTIONS= opengl static x11
+PKG_SUGGESTED_OPTIONS+= opengl static
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mopengl)
+.include "../../graphics/MesaLib/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mstatic)
+CONFIGURE_ARGS+= --enable-static=yes
+.else
+CONFIGURE_ARGS+= --enable-static=no
+.endif
+
+.if !empty(PKG_OPTIONS:Mx11)
+.include "../../x11/libICE/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.endif