1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/lang/bigloo/Makefile
Mathieu Arnold 21bc5c0345 Remove USE_SQLITE from bsd.databases.mk, replaced by USES=sqlite.
While there replace USE_SQLITE=x by USES=sqlite:x.

PR:		208971
Submitted by:	mat
Exp-run by:	antoine
With hat:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D5951
2016-04-25 16:13:38 +00:00

108 lines
3.0 KiB
Makefile

# Created by: Stanislav Grozev <tacho@daemonz.org>
# $FreeBSD$
PORTNAME= bigloo
PORTVERSION= 4.1a.2
PORTREVISION= 6
CATEGORIES= lang scheme
MASTER_SITES= ftp://ftp-sop.inria.fr/indes/fp/Bigloo/
DISTNAME= ${PORTNAME}${PORTVERSION:R}-${PORTVERSION:E}
DIST_SUBDIR= repacked
MAINTAINER= ports@FreeBSD.org
COMMENT= Scheme interpreter and native code compiler
LICENSE= GPLv2 LGPL20
LICENSE_COMB= multi
LIB_DEPENDS= libpcre.so:devel/pcre \
libgmp.so:math/gmp
USES= compiler:c++0x gmake
USE_EMACS= 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="${DOCSDIR}" \
--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:R}
MAKE_JOBS_UNSAFE=yes
CPPFLAGS+= -idirafter ${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_SUB= BIGLOO_VERSION="${PORTVERSION:R}"
INFO= bdb bigloo
OPTIONS_DEFINE= ALSA AVAHI CUSTOMGC DOCS FLAC GSTREAMER MPG123 \
OPENSSL SQLITE
OPTIONS_DEFAULT= OPENSSL
OPTIONS_SUB= yes
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
ALSA_CONFIGURE_OFF= --disable-alsa --disable-wav
AVAHI_LIB_DEPENDS= libavahi-client.so:net/avahi-app
AVAHI_CONFIGURE_OFF= --disable-avahi
CUSTOMGC_DESC= Build with custom garbage collector
CUSTOMGC_LIB_DEPENDS_OFF=\
libgc.so:devel/boehm-gc
CUSTOMGC_CONFIGURE_OFF= --customgc=no \
--gcincdir=${LOCALBASE}/include \
--gclibdir=${LOCALBASE}/lib
FLAC_LIB_DEPENDS= libFLAC.so:audio/flac
FLAC_CONFIGURE_OFF= --disable-flac
GSTREAMER_USE= GSTREAMER=yes
GSTREAMER_CONFIGURE_OFF=--disable-gstreamer
MPG123_LIB_DEPENDS= libmpg123.so:audio/mpg123
MPG123_CONFIGURE_OFF= --disable-mpg123
OPENSSL_USE= OPENSSL=yes
OPENSSL_CONFIGURE_OFF= --disable-ssl
SQLITE_USES= sqlite
SQLITE_CONFIGURE_OFF= --disable-pkglib --disable-sqlite
.include <bsd.port.options.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
post-patch:
@${REINPLACE_CMD} -e 's|"-lthr"|"-pthread"|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:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/bigloo/4.1a/*.so \
${STAGEDIR}${PREFIX}/lib/bigloo/4.1a/bmem/bmem.so
.for i in bglafile bgldepend bgljfile bglmake bglmco bglpp bglprof bgltags \
bigloo
(cd ${WRKSRC}/manuals && ${INSTALL_MAN} ${i}.man \
${STAGEDIR}${MANPREFIX}/man/man1/${i}.1)
.endfor
.for i in bdb bigloo
(cd ${WRKSRC}/manuals && ${INSTALL_DATA} ${i}.info \
${STAGEDIR}${PREFIX}/${INFO_PATH})
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/manuals && ${INSTALL_DATA} *.html *.sui \
${STAGEDIR}${DOCSDIR})
test: build
@(cd ${WRKSRC}; ${MAKE_CMD} test)
.include <bsd.port.mk>