summaryrefslogtreecommitdiff
path: root/databases/gomdb/Makefile
blob: 2fe4d651c61c482b04b5a6ecf5e7bbb215a1be64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $FreeBSD$

PORTNAME=	gomdb
PORTVERSION=	20140824
CATEGORIES=	databases

MAINTAINER=	cheffo@freebsd-bg.org
COMMENT=	Go wrapper for LMDB - OpenLDAP Lightning Memory-Mapped Database

LICENSE=	BSD3CLAUSE

BUILD_DEPENDS=	go:lang/go

ONLY_FOR_ARCHS=	i386 amd64

USES=		compiler

USE_GITHUB=	yes
GH_ACCOUNT=	szferi
GH_TAGNAME=	6bcb5a

.include <bsd.port.pre.mk>

#Build fails on FreeBSD10+ if value of "CC" is not set to "clang" (checked by configure)

.if ${COMPILER_TYPE} == clang
CC=		clang
.else
USE_GCC=	yes
.endif

CONFIGURE_ENV+=	CC=${CC}
GO_ENV+=	${CONFIGURE_ENV}

.include "${PORTSDIR}/lang/go/files/bsd.go.mk"
.include <bsd.port.post.mk>