--- /dev/null
+# $NetBSD$
+
+DISTNAME= freetype-20170609
+PKGNAME= go-${DISTNAME}
+GITHUB_PROJECT= freetype
+GITHUB_TAG= e2365dfdc4a05e4b8299a783240d4a7d5a65d4e4
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_GITHUB:=golang/}
+
+MAINTAINER= kamelderouiche@yahoo.com
+HOMEPAGE= https://github.com/golang/freetype/
+COMMENT= The Freetype font rasterizer in the Go programming language
+LICENSE= gnu-gpl-v2
+
+GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}
+GO_SRCPATH= github.com/golang/${GITHUB_PROJECT}
+
+USE_TOOLS+= bash
+
+REPLACE_BASH+= testdata/make-other-hinting-txts.sh
+
+.include "../../graphics/go-image/buildlink3.mk"
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
--- /dev/null
+@comment $NetBSD$
+gopkg/pkg/${GO_PLATFORM}/github.com/golang/freetype.a
+gopkg/pkg/${GO_PLATFORM}/github.com/golang/freetype/raster.a
+gopkg/pkg/${GO_PLATFORM}/github.com/golang/freetype/truetype.a
+gopkg/src/github.com/golang/freetype/AUTHORS
+gopkg/src/github.com/golang/freetype/CONTRIBUTORS
+gopkg/src/github.com/golang/freetype/LICENSE
+gopkg/src/github.com/golang/freetype/README
+gopkg/src/github.com/golang/freetype/cmd/print-glyph-points/main.c
+gopkg/src/github.com/golang/freetype/example/capjoin/main.go
+gopkg/src/github.com/golang/freetype/example/drawer/main.go
+gopkg/src/github.com/golang/freetype/example/freetype/main.go
+gopkg/src/github.com/golang/freetype/example/gamma/main.go
+gopkg/src/github.com/golang/freetype/example/genbasicfont/main.go
+gopkg/src/github.com/golang/freetype/example/raster/main.go
+gopkg/src/github.com/golang/freetype/example/round/main.go
+gopkg/src/github.com/golang/freetype/example/truetype/main.go
+gopkg/src/github.com/golang/freetype/freetype.go
+gopkg/src/github.com/golang/freetype/freetype_test.go
+gopkg/src/github.com/golang/freetype/licenses/ftl.txt
+gopkg/src/github.com/golang/freetype/licenses/gpl.txt
+gopkg/src/github.com/golang/freetype/raster/geom.go
+gopkg/src/github.com/golang/freetype/raster/paint.go
+gopkg/src/github.com/golang/freetype/raster/raster.go
+gopkg/src/github.com/golang/freetype/raster/stroke.go
+gopkg/src/github.com/golang/freetype/testdata/COPYING
+gopkg/src/github.com/golang/freetype/testdata/README
+gopkg/src/github.com/golang/freetype/testdata/luximr.ttf
+gopkg/src/github.com/golang/freetype/testdata/luximr.ttx
+gopkg/src/github.com/golang/freetype/testdata/luxirr.ttf
+gopkg/src/github.com/golang/freetype/testdata/luxirr.ttx
+gopkg/src/github.com/golang/freetype/testdata/luxisr-12pt-sans-hinting.txt
+gopkg/src/github.com/golang/freetype/testdata/luxisr-12pt-with-hinting.txt
+gopkg/src/github.com/golang/freetype/testdata/luxisr.ttf
+gopkg/src/github.com/golang/freetype/testdata/luxisr.ttx
+gopkg/src/github.com/golang/freetype/testdata/make-other-hinting-txts.sh
+gopkg/src/github.com/golang/freetype/truetype/face.go
+gopkg/src/github.com/golang/freetype/truetype/face_test.go
+gopkg/src/github.com/golang/freetype/truetype/glyph.go
+gopkg/src/github.com/golang/freetype/truetype/hint.go
+gopkg/src/github.com/golang/freetype/truetype/hint_test.go
+gopkg/src/github.com/golang/freetype/truetype/opcodes.go
+gopkg/src/github.com/golang/freetype/truetype/truetype.go
+gopkg/src/github.com/golang/freetype/truetype/truetype_test.go
--- /dev/null
+# $NetBSD$
+
+BUILDLINK_TREE+= go-freetype
+
+.if !defined(GO_FREETYPE_BUILDLINK3_MK)
+GO_FREETYPE_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-freetype= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-freetype?= build
+
+BUILDLINK_API_DEPENDS.go-freetype+= go-freetype>=20170609
+BUILDLINK_PKGSRCDIR.go-freetype?= ../../category/go-freetype
+
+
+.include "../../graphics/go-image/buildlink3.mk"
+.endif # GO_FREETYPE_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-freetype