aboutsummaryrefslogtreecommitdiffstats
path: root/lang/open-cobol-devel/Makefile
blob: 408c0c81a4f2a69bf833b277b8d54ced5c970b81 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Ports collection makefile for:        open-cobol-devel
# Date created:                 23 July 2009
# Whom:                         Glen Barber <glen.j.barber@gmail.com>
#
# $FreeBSD$

PORTNAME=   open-cobol
PORTVERSION=    1.1
PORTREVISION=   3
CATEGORIES= lang
MASTER_SITES=   http://freebsd.dev-urandom.com/open-cobol/

MAINTAINER= glen.j.barber@gmail.com
COMMENT=    An open-source COBOL compiler

LIB_DEPENDS=    gmp.10:${PORTSDIR}/math/gmp

CONFLICTS=  open-cobol-1.[0]*

LATEST_LINK=    open-cobol-devel
USE_GNOME=  gnometarget
USE_BDB=    yes
USE_GMAKE=  yes
USE_AUTOTOOLS=  libtool:22
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
USE_LDCONFIG=   yes

INFO=       open-cobol

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

.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.endif

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

.if defined(MAINTAINER_MODE)
test:   build
    (cd ${WRKSRC}/tests;    \
    ./syntax;       \
    ./run)
.endif

.include <bsd.port.mk>