pkgsrc/lang/mercury/Makefile
fredb 71ca8f912f The host specific installation subdirectories are actually taken by configure
from its --host argument, which is exactly ${MACHINE_GNU_PLATFORM}. Use that
for the PLIST instead of ${MACHINE_ARCH}--${LOWER_OPSYS}, which may lack the
"elf" suffix on certain platforms.
2002-03-18 07:58:35 +00:00

39 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2002/03/18 07:58:35 fredb 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
DEPENDS+= boehm-gc>=5.3:../../devel/boehm-gc
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}
# 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_GNU_PLATFORM}
${LN} -sf ${PREFIX}/lib/libgc.a \
${PREFIX}/lib/mercury/lib/${MACHINE_GNU_PLATFORM}/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 && ${PAX} -rw . ${PREFIX}/share/examples/mercury
.include "../../mk/texinfo.mk"
.include "../../mk/bsd.pkg.mk"