2002-08-06 15:09:46 +02:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: open-cobol
|
|
|
|
# Date created: Aug 6, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= open-cobol
|
2008-01-11 00:19:37 +01:00
|
|
|
PORTVERSION= 1.0
|
2009-05-13 11:46:02 +02:00
|
|
|
PORTREVISION= 2
|
2002-08-06 15:09:46 +02:00
|
|
|
CATEGORIES= lang
|
2008-01-11 00:19:37 +01:00
|
|
|
MASTER_SITES= SF
|
2002-08-06 15:09:46 +02:00
|
|
|
|
2009-02-13 02:49:12 +01:00
|
|
|
MAINTAINER= glen.j.barber@gmail.com
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= An open-source COBOL compiler
|
2002-08-06 15:09:46 +02:00
|
|
|
|
2009-05-13 11:46:02 +02:00
|
|
|
LIB_DEPENDS= gmp.8:${PORTSDIR}/math/libgmp4
|
2002-08-06 15:09:46 +02:00
|
|
|
|
2008-01-11 00:19:37 +01:00
|
|
|
USE_GNOME= gnometarget
|
|
|
|
USE_BDB= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_AUTOTOOLS= libtool:15
|
2004-04-06 23:02:44 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2006-08-15 02:29:13 +02:00
|
|
|
USE_LDCONFIG= yes
|
2002-08-06 15:09:46 +02:00
|
|
|
|
2003-08-27 20:42:30 +02:00
|
|
|
INFO= open-cobol
|
2004-04-06 23:02:44 +02:00
|
|
|
|
2008-01-11 00:19:37 +01:00
|
|
|
CPPFLAGS= -I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include
|
2004-04-06 23:02:44 +02:00
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
2004-02-04 05:36:30 +01:00
|
|
|
USE_GETTEXT= yes
|
2004-04-06 23:02:44 +02:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.endif
|
2003-08-27 20:42:30 +02:00
|
|
|
|
2004-11-23 19:58:35 +01:00
|
|
|
post-patch:
|
2008-01-11 00:19:37 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|__gmp_randinit|__gmpz_init|g ; \
|
|
|
|
s|db-4.[0-9]|${BDB_LIB_NAME}|g' ${WRKSRC}/configure
|
2004-11-23 19:58:35 +01:00
|
|
|
|
2005-05-14 20:23:48 +02:00
|
|
|
.if defined(MAINTAINER_MODE)
|
|
|
|
test: build
|
|
|
|
(cd ${WRKSRC}/tests; \
|
|
|
|
./syntax; \
|
|
|
|
./run)
|
|
|
|
.endif
|
|
|
|
|
2002-08-06 15:09:46 +02:00
|
|
|
.include <bsd.port.mk>
|