mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
9ae290d701
- Trim Makefile header While here: - Remove indefinite article from COMMENT - Convert to new options framework PR: ports/172180 Submitted by: wen@ Approved by: maintainer timeout (25 days) makc, avilla (mentors, implicit) Feature safe: yes
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
# Created by: Douglas Anestad <yotta@dougdidit.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gprolog
|
|
PORTVERSION= 1.4.1
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://www.gprolog.org/
|
|
|
|
MAINTAINER= nsmoot@make.sh
|
|
COMMENT= Free Prolog compiler
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
|
|
|
|
USE_GMAKE= yes
|
|
USE_AUTOTOOLS= autoconf
|
|
CONFIGURE_ARGS= --with-c-flags="${CFLAGS}"
|
|
CONFIGURE_TARGET= ${ARCH:S/amd64/x86_64/}-portbld-freebsd${OSREL}
|
|
|
|
PLIST_SUB+= GPROLOG_VER=${PORTVERSION}
|
|
|
|
OPTIONS_DEFINE= FD
|
|
OPTIONS_DEFAULT=FD
|
|
FD_DESC= Enable finite domain constraint solver
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
PORTDOCS= *
|
|
CONFIGURE_ARGS+=--with-doc-dir="${DOCSDIR}"
|
|
.else
|
|
CONFIGURE_ARGS+=--with-doc-dir="${WRKDIR}/docs"
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
PORTEXAMPLES= *
|
|
CONFIGURE_ARGS+=--with-examples-dir="${EXAMPLESDIR}"
|
|
.else
|
|
CONFIGURE_ARGS+=--with-examples-dir="${WRKDIR}/examples"
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MFD)
|
|
CONFIGURE_ARGS+=--disable-fd-solver
|
|
PLIST_SUB+= FD="@comment "
|
|
PKGNAMESUFFIX= -nofd
|
|
.else
|
|
PLIST_SUB+= FD=""
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|