1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/lang/gnu-cobol/Makefile
2021-04-06 16:31:07 +02:00

39 lines
815 B
Makefile

# Created by: ijliao
PORTNAME= gnu-cobol
PORTVERSION= 3.1.2
CATEGORIES= lang
MASTER_SITES= GNU/gnucobol
DISTNAME= gnucobol-${PORTVERSION}
MAINTAINER= wen@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
SSP_CFLAGS?= -fstack-protector # XXX -strong fails to build
CPPFLAGS+= -I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE=nls
post-patch:
@${REINPLACE_CMD} -e 's|-lcurses|-lncurses|g ; \
s|-R$$found_dir|-Wl,-rpath,$$found_dir|g' ${WRKSRC}/configure
.include <bsd.port.mk>