pkgsrc/lang/mercury/Makefile
jtb 94b79d79d1 Initial import of mercury-0.10.1.
Mercury is a modern logic/functional programming language, which
combines the clarity and expressiveness of declarative programming
with advanced static analysis and error detection features.  Its
highly optimized execution algorithm delivers efficiency far in excess
of existing logic programming systems, and close to conventional
programming systems. Mercury addresses the problems of large-scale
program development, allowing modularity, separate compilation, and
numerous optimization/time trade-offs.

This package includes the compiler, profiler, debugger, documentation,
etc.  It does NOT include the "extras" distribution; that is available
from <http://www.cs.mu.oz.au/mercury/download/release.html>.
2001-05-15 21:09:44 +00:00

37 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2001/05/15 21:09:44 jtb Exp $
DISTNAME= mercury-compiler-0.10.1
PKGNAME= mercury-0.10.1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.mercury.cs.mu.oz.au/pub/mercury/ \
${MASTER_SITE_SUNSITE:=devel/lang/mercury/}
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.cs.mu.oz.au/mercury/
COMMENT= modern logic/functional programming language
GNU_CONFIGURE= yes
USE_GMAKE= yes
INFO_FILES= mercury.info
BOEHM_GC_DIR_DEFAULT= ${LOCALBASE}
EVAL_PREFIX= BOEHM_GC_DIR=boehm-gc
CONFIGURE_ENV+= BOEHM_GC_DIR=${BOEHM_GC_DIR}
# We need this. Some of the scripts test CC and use special settings for gcc.
CONFIGURE_ENV+= CC=gcc
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/mercury/lib/${MACHINE_ARCH}--${LOWER_OPSYS}
${LN} -sf ${PREFIX}/lib/libgc.a \
${PREFIX}/lib/mercury/lib/${MACHINE_ARCH}--${LOWER_OPSYS}/libgc.a
${LN} -sf ${PREFIX}/include/gc.h ${PREFIX}/lib/mercury/inc/gc.h
${FIND} ${WRKSRC} -type d -name "CVS" | xargs ${RM} -fr
${FIND} ${WRKSRC} -type f -name ".cvsignore" | xargs ${RM} -f
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mercury
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${WRKSRC}/samples
(cd ${WRKSRC}/samples; ${GTAR} cpf - . ) | \
(cd ${PREFIX}/share/examples/mercury; ${GTAR} xpf -)
.include "../../mk/bsd.pkg.mk"