941d1da4dc
Port changes: - the version 1.5.0 now recognizes clang for amd64 so the patch files/patch-EnginePl_machine.h reduced but it is still needed for i386 build; - this version correctly defines NO_MACHINE_REG_FOR_REG_BANK and adds -fcommon for clang, so CFLAGS reduced too; - the patch files/patch-Ma2Asm_x86__64__any.c rebuilt for new code, it is still needed as build fails with an error without the patch: Fatal Error: Segmentation Violation (bad address: 0x100ec814853)
42 lines
978 B
Makefile
42 lines
978 B
Makefile
# Created by: Douglas Anestad <yotta@dougdidit.com>
|
|
|
|
PORTNAME= gprolog
|
|
PORTVERSION= 1.5.0
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://www.gprolog.org/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Free Prolog compiler
|
|
|
|
LICENSE= GPLv2
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
|
|
BUILD_DEPENDS= as:devel/binutils
|
|
|
|
USES= gmake
|
|
CFLAGS+= -DUSE_LOCKS=1 -DUSE_RECURSIVE_LOCKS=1 -DUSE_SPIN_LOCKS=0 \
|
|
-DMMAP_CLEARS=0
|
|
|
|
PLIST_SUB= GPROLOG_VER=${PORTVERSION}
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-c-flags="${CFLAGS}" \
|
|
--with-doc-dir="${DOCSDIR}" \
|
|
--with-examples-dir="${EXAMPLESDIR}"
|
|
CONFIGURE_TARGET= ${ARCH:S/amd64/x86_64/}-portbld-${OPSYS:tl}${OSREL}
|
|
MAKE_JOBS_UNSAFE= yes
|
|
WRKSRC_SUBDIR= src
|
|
|
|
OPTIONS_DEFINE= FD DOCS EXAMPLES
|
|
OPTIONS_DEFAULT= FD
|
|
OPTIONS_SUB= yes
|
|
|
|
FD_DESC= Enable finite domain constraint solver
|
|
FD_CONFIGURE_OFF= --disable-fd-solver
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} \
|
|
'/LINKS_DIR/s|$$(INSTALL_DIR)|../${PORTNAME}-${PORTVERSION}|' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.include <bsd.port.mk>
|