summaryrefslogtreecommitdiffstats
path: root/databases/levigo/Makefile
blob: b144a716d01d3a1d2ac5a4ebfe8e5c8ad545cda8 (plain)
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
37
38
39
40
41
42
# $FreeBSD$

PORTNAME=	levigo
PORTVERSION=	20150216
CATEGORIES=	databases

MAINTAINER=	cheffo@freebsd-bg.org
COMMENT=	Levigo is a Go wrapper for LevelDB

LICENSE=	MIT

BUILD_DEPENDS=	go:${PORTSDIR}/lang/go
LIB_DEPENDS=	libleveldb.so:${PORTSDIR}/databases/leveldb

ONLY_FOR_ARCHS=	i386 amd64

USES=		compiler

USE_GITHUB=	yes
GH_ACCOUNT=	jmhodges
GH_PROJECT=	levigo
GH_TAGNAME=	1ddad808d4

BROKEN_FreeBSD_8=	Build has leftover /readelf.core, PR 194986

.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} \
		CXX=${CXX}
GO_ENV+=	${CONFIGURE_ENV}

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