1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/lang/gnu-cobol/Makefile
Johan van Selst fa4464cdb1 - Update to 2.2
- Add LICENSE

PR:		ports/224494
Submitted by:	wen
2017-12-25 10:58:40 +00:00

41 lines
841 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= gnu-cobol
PORTVERSION= 2.2
CATEGORIES= lang
MASTER_SITES= GNU/gnucobol
DISTNAME= gnucobol-${PORTVERSION}
MAINTAINER= johans@FreeBSD.org
COMMENT= Open-source COBOL compiler
LICENSE= GPLv3 LGPL3
LICENSE_COMB= multi
LIB_DEPENDS= libgmp.so:math/gmp
USES= bdb gmake libtool ncurses tar:xz
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
INFO= gnucobol
DATADIR= ${PREFIX}/share/gnucobol
INSTALL_TARGET= install-strip
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>