summaryrefslogtreecommitdiff
path: root/devel/mercator/Makefile
blob: 7ee68f18a15e5f0c0785f27355c52c0969e8a423 (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
# Created by: Janni
# $FreeBSD$

PORTNAME=	mercator
PORTVERSION=	0.3.3
#PORTREVISION=	1
PORTREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	SF/worldforge/Mercator%20%28terrain%20lib%29/${PORTVERSION}

MAINTAINER=	oliver@FreeBSD.org
COMMENT=	A procedural terrain library

LIB_DEPENDS=	libwfmath-1.0.so:${PORTSDIR}/math/wfmath

CONFIGURE_ARGS=	--disable-silent-rules
USES=		pathfix pkgconfig
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
USE_GCC=	yes
USE_GCC=	4.7+

CXXFLAGS+=	-include wchar.h

post-patch:
	@${REINPLACE_CMD} -e 's|std::lround|lround|g' ${WRKSRC}/Mercator/iround.h

.include <bsd.port.mk>