3be3e90f93
- Switched to automake 1.11.6, see CVE-2012-3386. - #14669: Fixed extraction of CC from gmp.h. - Fixed case of intermediate zero real or imaginary part in mpc_fma, found by hydra with GMP_CHECK_RANDOMIZE=1346362345. This is on top of the following changes from version 1.0 - Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no invariant sections) for the documentation. - 100% of all lines are covered by tests - Renamed functions . mpc_mul_2exp to mpc_mul_2ui . mpc_div_2exp to mpc_div_2ui - 0^0, which returned (NaN,NaN) previously, now returns (1,+0). - Removed compatibility with K&R compilers, which was untestable due to lack of such compilers. - New functions . mpc_log10 . mpc_mul_2si, mpc_div_2si - Speed-ups . mpc_fma - Bug fixes . mpc_div and mpc_norm now return a value indicating the effective rounding direction, as the other functions. . mpc_mul, mpc_sqr and mpc_norm now return correct results even if there are over- or underflows during the computation. . mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has infinite part and equals output variable is corrected. . mpc_fr_sub: Wrong return value for imaginary part is corrected. Convert to the new LIB_DEPENDS standard and remove hard-coded .so versions from a couple of dependent ports. Bump PORTREVISIONS of all dependent ports. PR: 183141 Approved by: portmgr (bdrewery)
136 lines
3.2 KiB
Makefile
136 lines
3.2 KiB
Makefile
# Created by: Stanislav Grozev <tacho@daemonz.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bigloo
|
|
PORTVERSION= 4.0a
|
|
PORTREVISION= 2
|
|
CATEGORIES= lang scheme
|
|
MASTER_SITES= ftp://ftp-sop.inria.fr/indes/fp/Bigloo/
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Scheme interpreter and native code compiler
|
|
|
|
LICENSE= GPLv2 LGPL20
|
|
LICENSE_COMB= multi
|
|
|
|
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre \
|
|
gmp:${PORTSDIR}/math/gmp
|
|
|
|
OPTIONS_DEFINE= AVAHI ALSA FLAC GSTREAMER MPG123 SQLITE OPENSSL DOCS
|
|
OPTIONS_DEFAULT=OPENSSL
|
|
|
|
USE_GCC= yes
|
|
USE_EMACS= yes
|
|
USE_GMAKE= yes
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ENV= pcrelib="-L${LOCALBASE}/lib -lpcre" \
|
|
gmplib="-L${LOCALBASE}/lib -lgmp"
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
--cflags="${CPPFLAGS}" \
|
|
--coflags="${CFLAGS}" \
|
|
--ldflags="${LDFLAGS}" \
|
|
--docdir=${WRKDIR}/fakeroot \
|
|
--lispdir=${LOCALBASE}/${EMACS_SITE_LISPDIR}/bigloo \
|
|
--emacs=${EMACS_NAME} \
|
|
--disable-phidget
|
|
ALL_TARGET= build compile-bee
|
|
INSTALL_TARGET= install-progs install-bee
|
|
USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/bigloo/${PORTVERSION}
|
|
PLIST_SUB= BIGLOO_VERSION="${PORTVERSION}"
|
|
MAKE_JOBS_UNSAFE=yes
|
|
|
|
CPPFLAGS+= -idirafter ${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
MAN1= bigloo.1
|
|
INFO= bigloo
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MAVAHI}
|
|
LIB_DEPENDS+= avahi-client:${PORTSDIR}/net/avahi-app
|
|
PLIST_SUB+= AVAHI=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-avahi
|
|
PLIST_SUB+= AVAHI="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MALSA}
|
|
LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib
|
|
PLIST_SUB+= ALSA=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-alsa
|
|
PLIST_SUB+= ALSA="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MFLAC}
|
|
LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac
|
|
PLIST_SUB+= FLAC=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-flac
|
|
PLIST_SUB+= FLAC="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGSTREAMER}
|
|
USE_GSTREAMER= yes
|
|
PLIST_SUB+= GSTREAMER=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-gstreamer
|
|
PLIST_SUB+= GSTREAMER="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMPG123}
|
|
LIB_DEPENDS+= mpg123:${PORTSDIR}/audio/mpg123
|
|
PLIST_SUB+= MPG123=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-mpg123
|
|
PLIST_SUB+= MPG123="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSQLITE}
|
|
USE_SQLITE= yes
|
|
PLIST_SUB+= SQLITE=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-pkglib --disable-sqlite
|
|
PLIST_SUB+= SQLITE="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MOPENSSL}
|
|
USE_OPENSSL= yes
|
|
PLIST_SUB+= OPENSSL=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-ssl
|
|
PLIST_SUB+= OPENSSL="@comment "
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
BROKEN= Does not compile on sparc64
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|"-lthr"|"${PTHREAD_LIBS}"|g' \
|
|
${WRKSRC}/autoconf/pthread
|
|
.for i in autoconf/mixer api/multimedia/src/Unix/bglmixer.c
|
|
@${REINPLACE_CMD} -e 's|machine/soundcard|sys/soundcard|g' \
|
|
${WRKSRC}/${i}
|
|
.endfor
|
|
@${FIND} ${WRKSRC}/gc -maxdepth 1 -type f | ${XARGS} \
|
|
${REINPLACE_CMD} -e '/LDFLAGS=/s|export|true|g'
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/manuals/bigloo.man ${MANPREFIX}/man/man1/${MAN1}
|
|
${INSTALL_DATA} ${WRKSRC}/manuals/bigloo.info ${PREFIX}/${INFO_PATH}
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/manuals/*.html ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/manuals/*.sui ${DOCSDIR}
|
|
.endif
|
|
|
|
test: build
|
|
@(cd ${WRKSRC}; ${GMAKE} test)
|
|
|
|
.include <bsd.port.post.mk>
|