2009-07-24 04:17:56 +02:00
|
|
|
# Ports collection makefile for: open-cobol-devel
|
|
|
|
# Date created: 23 July 2009
|
|
|
|
# Whom: Glen Barber <glen.j.barber@gmail.com>
|
2002-08-06 15:09:46 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= open-cobol
|
2009-07-24 04:17:56 +02:00
|
|
|
PORTVERSION= 1.1
|
2010-05-31 04:01:56 +02:00
|
|
|
PORTREVISION= 3
|
2002-08-06 15:09:46 +02:00
|
|
|
CATEGORIES= lang
|
2009-07-24 04:17:56 +02:00
|
|
|
MASTER_SITES= http://freebsd.dev-urandom.com/open-cobol/
|
2002-08-06 15:09:46 +02:00
|
|
|
|
2010-09-04 17:32:58 +02:00
|
|
|
MAINTAINER= gjb@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= An open-source COBOL compiler
|
2002-08-06 15:09:46 +02:00
|
|
|
|
2010-04-19 12:43:42 +02:00
|
|
|
LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
|
2002-08-06 15:09:46 +02:00
|
|
|
|
2009-07-25 12:05:16 +02:00
|
|
|
CONFLICTS= open-cobol-1.[0]*
|
2009-07-24 04:17:56 +02:00
|
|
|
|
2009-07-25 12:05:16 +02:00
|
|
|
LATEST_LINK= open-cobol-devel
|
2008-01-11 00:19:37 +01:00
|
|
|
USE_GNOME= gnometarget
|
|
|
|
USE_BDB= yes
|
|
|
|
USE_GMAKE= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
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>
|