# Created by: Stanislav Grozev # $FreeBSD$ PORTNAME= bigloo PORTVERSION= 4.1a.2 PORTREVISION= 2 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:${PORTSDIR}/devel/pcre \ libgmp.so:${PORTSDIR}/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:${PORTSDIR}/audio/alsa-lib ALSA_CONFIGURE_OFF= --disable-alsa --disable-wav AVAHI_LIB_DEPENDS= libavahi-client.so:${PORTSDIR}/net/avahi-app AVAHI_CONFIGURE_OFF= --disable-avahi CUSTOMGC_DESC= Build with custom garbage collector CUSTOMGC_LIB_DEPENDS_OFF=\ libgc.so:${PORTSDIR}/devel/boehm-gc CUSTOMGC_CONFIGURE_OFF= --customgc=no \ --gcincdir=${LOCALBASE}/include \ --gclibdir=${LOCALBASE}/lib FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac FLAC_CONFIGURE_OFF= --disable-flac GSTREAMER_USE= GSTREAMER=yes GSTREAMER_CONFIGURE_OFF=--disable-gstreamer MPG123_LIB_DEPENDS= libmpg123.so:${PORTSDIR}/audio/mpg123 MPG123_CONFIGURE_OFF= --disable-mpg123 OPENSSL_USE= OPENSSL=yes OPENSSL_CONFIGURE_OFF= --disable-ssl SQLITE_USE= SQLITE=yes SQLITE_CONFIGURE_OFF= --disable-pkglib --disable-sqlite .include .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: .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