2005-07-12 23:33:17 +02:00
|
|
|
# $NetBSD: Makefile,v 1.25 2005/07/12 21:33:17 kristerw Exp $
|
2001-05-15 23:09:44 +02:00
|
|
|
|
2003-05-02 19:48:28 +02:00
|
|
|
DISTNAME= mercury-compiler-0.11.0
|
|
|
|
PKGNAME= mercury-0.11.0
|
2005-07-12 23:33:17 +02:00
|
|
|
PKGREVISION= 3
|
2001-05-15 23:09:44 +02:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ftp://ftp.mercury.cs.mu.oz.au/pub/mercury/ \
|
|
|
|
${MASTER_SITE_SUNSITE:=devel/lang/mercury/}
|
|
|
|
|
2003-07-17 23:41:05 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2001-05-15 23:09:44 +02:00
|
|
|
HOMEPAGE= http://www.cs.mu.oz.au/mercury/
|
2003-07-21 18:45:54 +02:00
|
|
|
COMMENT= Modern logic/functional programming language
|
2001-05-15 23:09:44 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2003-05-02 19:48:28 +02:00
|
|
|
USE_GNU_READLINE= yes # rl_prep_term_function
|
2001-05-15 23:09:44 +02:00
|
|
|
|
2003-07-05 23:16:36 +02:00
|
|
|
INFO_FILES= mercury.info mercury_faq.info mercury_library.info
|
|
|
|
INFO_FILES+= mercury_ref.info mercury_trans_guide.info
|
2004-03-07 01:19:29 +01:00
|
|
|
INFO_FILES+= mercury_user_guide.info
|
2001-05-15 23:09:44 +02:00
|
|
|
|
2001-06-12 00:52:10 +02:00
|
|
|
# Some of the scripts test CC and use special settings for gcc.
|
2001-05-15 23:09:44 +02:00
|
|
|
CONFIGURE_ENV+= CC=gcc
|
|
|
|
|
2005-07-12 23:33:17 +02:00
|
|
|
CONFIGURE_ENV+= HOSTNAMECMD=${TOOLS_HOSTNAME_CMD}
|
|
|
|
USE_TOOLS+= hostname
|
|
|
|
|
2003-05-02 19:48:28 +02:00
|
|
|
MAKE_ENV+= READLINE_PREFIX=${BUILDLINK_PREFIX.readline}
|
|
|
|
|
2004-02-14 04:04:31 +01:00
|
|
|
post-patch:
|
|
|
|
${TOUCH} \
|
|
|
|
${WRKSRC}/library/table_builtin.date3 \
|
|
|
|
${WRKSRC}/library/table_builtin.date \
|
|
|
|
${WRKSRC}/library/table_builtin.optdate \
|
|
|
|
${WRKSRC}/library/table_builtin.trans_opt_date \
|
|
|
|
${WRKSRC}/library/table_builtin.c_date
|
|
|
|
|
2003-05-02 19:48:28 +02:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
|
|
${MAKE} INSTALL_PREFIX=${WRKSRC}/tmp \
|
|
|
|
MERCURY_COMPILER=${WRKSRC}/tmp/lib/mercury/bin/${MACHINE_GNU_PLATFORM}/mercury_compile \
|
|
|
|
install
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC}/tmp && ${PAX} -rw . ${PREFIX}
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mercury
|
2004-01-27 01:53:10 +01:00
|
|
|
${FIND} ${WRKSRC} -type d -name "CVS" -print | ${XARGS} ${RM} -fr
|
|
|
|
${FIND} ${WRKSRC} -type f -name ".cvsignore" -print | ${XARGS} ${RM} -f
|
2001-11-14 15:47:53 +01:00
|
|
|
cd ${WRKSRC}/samples && ${PAX} -rw . ${PREFIX}/share/examples/mercury
|
2001-05-15 23:09:44 +02:00
|
|
|
|
2004-05-02 06:59:23 +02:00
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
2001-05-15 23:09:44 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|