diff -x CVS -ruN pkgsrc-2017Q1/wip/gl2ps/buildlink3.mk pkgsrc/wip/gl2ps/buildlink3.mk
--- pkgsrc-2017Q1/wip/gl2ps/buildlink3.mk	1970-01-01 01:00:00.000000000 +0100
+++ pkgsrc/wip/gl2ps/buildlink3.mk	2017-04-14 21:33:33.759709595 +0200
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	gl2ps
+
+.if !defined(GL2PS_BUILDLINK3_MK)
+GL2PS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.gl2ps+=	gl2ps>=1.4.0
+BUILDLINK_PKGSRCDIR.gl2ps?=	../../wip/gl2ps
+
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/glut/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+
+.endif	# GL2PS_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-gl2ps
diff -x CVS -ruN pkgsrc-2017Q1/wip/gl2ps/DESCR pkgsrc/wip/gl2ps/DESCR
--- pkgsrc-2017Q1/wip/gl2ps/DESCR	1970-01-01 01:00:00.000000000 +0100
+++ pkgsrc/wip/gl2ps/DESCR	2017-04-14 21:37:24.831913094 +0200
@@ -0,0 +1,15 @@
+GL2PS is a C library providing high quality vector output for any OpenGL
+application. The main
+   difference between GL2PS and other similar libraries (see section 7)
+   is the use of sorting algorithms capable of handling intersecting and
+   stretched polygons, as well as non manifold objects. GL2PS provides
+   advanced smooth shading and text rendering, culling of invisible
+   primitives, mixed vector/bitmap output, and much more...  GL2PS can
+   currently create PostScript (PS), Encapsulated PostScript (EPS),
+   Portable Document Format (PDF) and Scalable Vector Graphics (SVG)
+   files, as well as L^AT[E]X files for the text fragments. GL2PS also
+   provides limited, experimental support for Portable LaTeX Graphics
+   (PGF).  Adding new vector output formats should be relatively easy;
+   you can also use the excellent pstoedit program to transform the
+   PostScript files generated by GL2PS into many other vector
+  formats such as xfig, cgm, wmf, etc.
diff -x CVS -ruN pkgsrc-2017Q1/wip/gl2ps/distinfo pkgsrc/wip/gl2ps/distinfo
--- pkgsrc-2017Q1/wip/gl2ps/distinfo	1970-01-01 01:00:00.000000000 +0100
+++ pkgsrc/wip/gl2ps/distinfo	2017-04-14 21:23:30.064167090 +0200
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (gl2ps-1.4.0.tgz) = a39a93d75050b9ee98bde4fc47bf6d9162bfc5cd
+RMD160 (gl2ps-1.4.0.tgz) = 44ce590b4dec6af77bc91c2fca2454d1495213e5
+SHA512 (gl2ps-1.4.0.tgz) = 420b21a5b4397c9a9a2323a8686b8635c2683354c94762d2d0172c661fc36c4298042498dd8ef2323adf32f45aa4e0a3dba146058ccde597e5a46c2027cbf7ce
+Size (gl2ps-1.4.0.tgz) = 300339 bytes
diff -x CVS -ruN pkgsrc-2017Q1/wip/gl2ps/Makefile pkgsrc/wip/gl2ps/Makefile
--- pkgsrc-2017Q1/wip/gl2ps/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ pkgsrc/wip/gl2ps/Makefile	2017-04-14 21:37:50.077935195 +0200
@@ -0,0 +1,23 @@
+# $NetBSD$
+
+DISTNAME=	gl2ps-1.4.0
+CATEGORIES=	graphics
+MASTER_SITES=	http://geuz.org/gl2ps/src/
+EXTRACT_SUFX=	.tgz
+
+MAINTAINER=	thomas.orgis@uni-hamburg.de
+HOMEPAGE=	http://geuz.org/gl2ps/
+COMMENT=	OpenGL to PostScript printing library
+LICENSE=	gnu-lgpl-v2
+
+WRKSRC=		${WRKDIR}/gl2ps-1.4.0-source
+USE_CMAKE=	yes
+
+DEPENDS+= tex-latex-bin-[0-9]*:../../print/tex-latex-bin
+
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/glut/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -x CVS -ruN pkgsrc-2017Q1/wip/gl2ps/PLIST pkgsrc/wip/gl2ps/PLIST
--- pkgsrc-2017Q1/wip/gl2ps/PLIST	1970-01-01 01:00:00.000000000 +0100
+++ pkgsrc/wip/gl2ps/PLIST	2017-04-14 21:26:21.997323295 +0200
@@ -0,0 +1,12 @@
+@comment $NetBSD$
+include/gl2ps.h
+lib/libgl2ps.a
+lib/libgl2ps.so
+lib/libgl2ps.so.1
+lib/libgl2ps.so.${PKGVERSION}
+share/doc/gl2ps/COPYING.GL2PS
+share/doc/gl2ps/COPYING.LGPL
+share/doc/gl2ps/README.txt
+share/doc/gl2ps/gl2ps.pdf
+share/doc/gl2ps/gl2psTest.c
+share/doc/gl2ps/gl2psTestSimple.c
