1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00
freebsd-ports/lang/bigloo/Makefile
Ashish SHUKLA 7fc5bd70f3 GNU Emacs updates
editors/emacs:
 - Update to 24.3
 - Update CANNA patchset[1]
 - Unbreak ARM support by using the patch from emacs-devel port
 - Add missing INSTALLS_ICONS[2]
 - Remove a patch which is already integrated upstream
 - Fix Makefile header

editors/emacs-devel:
 - Update to bzr revision 112178
 - Fix Makefile header
 - Add missing INSTALLS_ICONS[2]

editors/emacs23:
 - Remove ABI versions from LIB_DEPENDS
 - Fix Makefile header
 - Add missing INSTALLS_ICONS[2]

Mk/bsd.emacs.mk:
 - Update major version for editors/emacs port

*:
 - Bump PORTREVISION to chase Emacs updates

PR:		ports/177428[2]
Submitted by:	Yuji TAKANO[1] (via private email), bdrewery[2]
2013-03-30 05:13:30 +00:00

136 lines
3.2 KiB
Makefile

# Created by: Stanislav Grozev <tacho@daemonz.org>
# $FreeBSD$
PORTNAME= bigloo
PORTVERSION= 4.0a
PORTREVISION= 1
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= 4.6+
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
.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>