Changeset View
Changeset View
Standalone View
Standalone View
lang/gnu-cobol/Makefile
Show All 18 Lines | |||||
USES= bdb gmake libtool ncurses tar:xz | USES= bdb gmake libtool ncurses tar:xz | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
INFO= gnucobol | INFO= gnucobol | ||||
DATADIR= ${PREFIX}/share/gnucobol | DATADIR= ${PREFIX}/share/gnucobol | ||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
SSP_CFLAGS?= -fstack-protector # XXX -strong fails to build | |||||
CPPFLAGS+= -I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include | CPPFLAGS+= -I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
OPTIONS_DEFINE= NLS | OPTIONS_DEFINE= NLS | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
NLS_USES= gettext | NLS_USES= gettext | ||||
CONFIGURE_ENABLE=nls | CONFIGURE_ENABLE=nls | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|__gmp_randinit|__gmpz_init|g ; \ | @${REINPLACE_CMD} -e 's|__gmp_randinit|__gmpz_init|g ; \ | ||||
s|db-4.[0-9]|${BDB_LIB_NAME}|g ; \ | s|db-4.[0-9]|${BDB_LIB_NAME}|g ; \ | ||||
s|-lcurses|-lncurses|g ; \ | s|-lcurses|-lncurses|g ; \ | ||||
s|-R$$found_dir|-Wl,-rpath,$$found_dir|g' ${WRKSRC}/configure | s|-R$$found_dir|-Wl,-rpath,$$found_dir|g' ${WRKSRC}/configure | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |