1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/lang/bigloo/Makefile
Tijl Coosemans 60945f0277 Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla in
the 32 ports that still use it.  Bump PORTREVISION on their dependent
ports except the ones that depend on these:

audio/libogg
audio/libvorbis
devel/pcre
ftp/curl
graphics/jpeg
graphics/libart_lgpl
graphics/tiff
textproc/expat2
textproc/libxslt

In these cases the same trick as in the recent gettext update is used.
The ports install a symlink with the old library version.  When enough
of their dependent ports have had regular updates the remaining ones can
get a PORTREVISION bump and the links can be removed.

Also remove the devel/pcre dependency from USE_GNOME=glib20.  It causes
over 2200 packages to depend on devel/pcre while less than 200 actually
link with it.  The glib20 package still depends on devel/pcre so this
should not make a difference for ports with USE_GNOME=glib20.  Also,
libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so
USE_GNOME=glib20 should not propagate it.

PR:		195724
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-12-08 16:48:38 +00:00

106 lines
3.0 KiB
Makefile

# Created by: Stanislav Grozev <tacho@daemonz.org>
# $FreeBSD$
PORTNAME= bigloo
PORTVERSION= 4.1a.2
PORTREVISION= 4
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 <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:
.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>