summaryrefslogtreecommitdiffstats
path: root/lang/gnu-cobol/Makefile
blob: 4f54dd443de1218a3a65aa619f23d12339fe893a (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=	gnu-cobol
PORTVERSION=	1.1
PORTREVISION=	2
CATEGORIES=	lang
MASTER_SITES=	GNU/gnucobol

MAINTAINER=	johans@FreeBSD.org
COMMENT=	Open-source COBOL compiler

LIB_DEPENDS=	libgmp.so:math/gmp

USES=		bdb gmake libtool ncurses
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes

INFO=		gnu-cobol

CPPFLAGS+=	-I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=	yes
NLS_USES=	gettext
CONFIGURE_ENABLE=nls

post-patch:
	@${REINPLACE_CMD} -e 's|__gmp_randinit|__gmpz_init|g ; \
		 s|db-4.[0-9]|${BDB_LIB_NAME}|g ; \
		 s|-lcurses|-lncurses|g ; \
		 s|-R$$found_dir|-Wl,-rpath,$$found_dir|g' ${WRKSRC}/configure

.include <bsd.port.mk>
OpenPOWER on IntegriCloud