Changeset View
Changeset View
Standalone View
Standalone View
head/databases/gomdb/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= gomdb | PORTNAME= gomdb | ||||
PORTVERSION= 20140824 | PORTVERSION= 20140824 | ||||
CATEGORIES= databases | CATEGORIES= databases | ||||
MAINTAINER= cheffo@freebsd-bg.org | MAINTAINER= cheffo@freebsd-bg.org | ||||
COMMENT= Go wrapper for LMDB - OpenLDAP Lightning Memory-Mapped Database | COMMENT= Go wrapper for LMDB - OpenLDAP Lightning Memory-Mapped Database | ||||
LICENSE= BSD3CLAUSE | LICENSE= BSD3CLAUSE | ||||
BUILD_DEPENDS= go:lang/go | BUILD_DEPENDS= go:lang/go | ||||
ONLY_FOR_ARCHS= i386 amd64 | ONLY_FOR_ARCHS= i386 amd64 | ||||
USES= compiler | USES= compiler go | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= szferi | GH_ACCOUNT= szferi | ||||
GH_TAGNAME= 6bcb5a | GH_TAGNAME= 6bcb5a | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
#Build fails on FreeBSD10+ if value of "CC" is not set to "clang" (checked by configure) | #Build fails on FreeBSD10+ if value of "CC" is not set to "clang" (checked by configure) | ||||
.if ${COMPILER_TYPE} == clang | .if ${COMPILER_TYPE} == clang | ||||
CC= clang | CC= clang | ||||
.else | .else | ||||
USE_GCC= yes | USE_GCC= yes | ||||
.endif | .endif | ||||
CONFIGURE_ENV+= CC=${CC} | CONFIGURE_ENV+= CC=${CC} | ||||
GO_ENV+= ${CONFIGURE_ENV} | GO_ENV+= ${CONFIGURE_ENV} | ||||
.include "${PORTSDIR}/lang/go/files/bsd.go.mk" | |||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |