summaryrefslogtreecommitdiffstats
path: root/lang/tinycobol/Makefile
blob: 03243fbb1458bb20c4b74004494f06c45b3a9972 (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
43
# New ports collection makefile for:	tinycobol
# Date created:		26 Oct 2000
# Whom:			Patrick Gardella <patrick@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=	tinycobol
PORTVERSION=	0.61
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	tiny-cobol

MAINTAINER=	ports@freebsd.org
COMMENT=	A tiny COBOL compiler for IA32 platforms

LIB_DEPENDS=	db2.0:${PORTSDIR}/databases/db2

INSTALLS_SHLIB=	yes
ONLY_FOR_ARCHS=	i386
USE_GETOPT_LONG=yes
HAS_CONFIGURE=	yes
USE_BISON=	yes
USE_GMAKE=	yes

CONFIGURE_ARGS=	--with-libdb=2
# --with-readline disabled because of CPP-clash between readline/chardefs.h
#   and htcobol.tab.h:PAGE/RETURN/ALPHABETIC
#CONFIGURE_ARGS+=	--with-readline
CPPFLAGS=	-I${LOCALBASE}/include
CFLAGS=		${CPPFGLAGS}
LDFLAGS=	-L${LOCALBASE}/lib
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"

MAN1=		htcobol.1 htcobf2f.1 htcobolpp.1

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/info/*.txt ${DOCSDIR}
.endif

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