diff options
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/go-crc32/Makefile | 20 | ||||
-rw-r--r-- | devel/go-crc32/distinfo | 3 | ||||
-rw-r--r-- | devel/go-crc32/pkg-descr | 7 | ||||
-rw-r--r-- | devel/go-crc32/pkg-plist | 14 |
5 files changed, 45 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 8536ab94dbdd..a1e281a0fef4 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -752,6 +752,7 @@ SUBDIR += go-cobra SUBDIR += go-codec SUBDIR += go-cpuid + SUBDIR += go-crc32 SUBDIR += go-faker SUBDIR += go-form SUBDIR += go-glide diff --git a/devel/go-crc32/Makefile b/devel/go-crc32/Makefile new file mode 100644 index 000000000000..ea5b4b210b8c --- /dev/null +++ b/devel/go-crc32/Makefile @@ -0,0 +1,20 @@ +# $FreeBSD$ + +PORTNAME= crc32 +PORTVERSION= 1.1 +DISTVERSIONPREFIX= v +CATEGORIES= devel +PKGNAMEPREFIX= go- + +MAINTAINER= guy.tabrar@me.com +COMMENT= CRC32 hash with x64 optimizations for go + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= klauspost +USES= go +GO_PKGNAME= github.com/klauspost/crc32 + +.include <bsd.port.mk> diff --git a/devel/go-crc32/distinfo b/devel/go-crc32/distinfo new file mode 100644 index 000000000000..4a3d1d3c826a --- /dev/null +++ b/devel/go-crc32/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1487477094 +SHA256 (klauspost-crc32-v1.1_GH0.tar.gz) = 4f48f442a3d79e936dc558843d5bcbeb9f1081c4553cb24167d035dc35abd8e4 +SIZE (klauspost-crc32-v1.1_GH0.tar.gz) = 16086 diff --git a/devel/go-crc32/pkg-descr b/devel/go-crc32/pkg-descr new file mode 100644 index 000000000000..bb731899cb11 --- /dev/null +++ b/devel/go-crc32/pkg-descr @@ -0,0 +1,7 @@ +CRC32 hash with x64 optimizations + +This package is a drop-in replacement for the standard library +hash/crc32 package, that features SSE 4.2 optimizations on x64 +platforms, for a 10x speedup. + +WWW: https://github.com/klauspost/crc32 diff --git a/devel/go-crc32/pkg-plist b/devel/go-crc32/pkg-plist new file mode 100644 index 000000000000..c7852cb3446a --- /dev/null +++ b/devel/go-crc32/pkg-plist @@ -0,0 +1,14 @@ +%%GO_LIBDIR%%/%%GO_PKGNAME%%.a +%%GO_SRCDIR%%/%%GO_PKGNAME%%/LICENSE +%%GO_SRCDIR%%/%%GO_PKGNAME%%/README.md +%%GO_SRCDIR%%/%%GO_PKGNAME%%/crc32.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/crc32_amd64.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/crc32_amd64.s +%%GO_SRCDIR%%/%%GO_PKGNAME%%/crc32_amd64p32.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/crc32_amd64p32.s +%%GO_SRCDIR%%/%%GO_PKGNAME%%/crc32_generic.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/crc32_otherarch.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/crc32_s390x.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/crc32_s390x.s +%%GO_SRCDIR%%/%%GO_PKGNAME%%/crc32_test.go +%%GO_SRCDIR%%/%%GO_PKGNAME%%/example_test.go |