2008-03-04 17:38:11 +01:00
|
|
|
# $NetBSD: Makefile,v 1.33 2008/03/04 16:38:12 jlam 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
|
2007-02-20 20:04:10 +01:00
|
|
|
PKGREVISION= 5
|
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/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-10-04 23:46:12 +02:00
|
|
|
HOMEPAGE= http://www.cs.mu.oz.au/research/mercury/
|
2003-07-21 18:45:54 +02:00
|
|
|
COMMENT= Modern logic/functional programming language
|
2001-05-15 23:09:44 +02:00
|
|
|
|
2008-03-04 17:38:11 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
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
|
2006-04-05 08:27:41 +02:00
|
|
|
INFO_FILES= # PLIST
|
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-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= HOSTNAMECMD=${TOOLS_HOSTNAME_CMD:Q}
|
2005-07-12 23:33:17 +02:00
|
|
|
USE_TOOLS+= hostname
|
|
|
|
|
2003-05-02 19:48:28 +02:00
|
|
|
MAKE_ENV+= READLINE_PREFIX=${BUILDLINK_PREFIX.readline}
|
|
|
|
|
2006-04-05 08:27:41 +02:00
|
|
|
INSTALL_PREFIX= ${WRKSRC}/tmp
|
|
|
|
BUILD_MAKE_FLAGS= ${MAKE_FLAGS}
|
|
|
|
BUILD_MAKE_FLAGS+= INSTALL_PREFIX=${INSTALL_PREFIX:Q}
|
|
|
|
BUILD_MAKE_FLAGS+= INSTALL_INFO_DIR=${INSTALL_PREFIX:Q}/${PKGINFODIR:Q}
|
|
|
|
BUILD_MAKE_FLAGS+= INSTALL_MAN_DIR=${INSTALL_PREFIX:Q}/${PKGMANDIR:Q}
|
|
|
|
BUILD_MAKE_FLAGS+= MERCURY_COMPILER=${INSTALL_PREFIX:Q}/lib/mercury/bin/${MACHINE_GNU_PLATFORM}/mercury_compile
|
|
|
|
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
|
|
|
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:
|
2007-02-15 15:36:39 +01:00
|
|
|
cd ${WRKSRC} && ${BUILD_MAKE_CMD} install
|
2003-05-02 19:48:28 +02:00
|
|
|
|
|
|
|
do-install:
|
2008-03-04 17:38:11 +01:00
|
|
|
cd ${WRKSRC}/tmp && ${PAX} -rw . ${DESTDIR}${PREFIX}
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${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
|
2008-03-04 17:38:11 +01:00
|
|
|
cd ${WRKSRC}/samples && \
|
|
|
|
${PAX} -rw . ${DESTDIR}${PREFIX}/share/examples/mercury
|
2001-05-15 23:09:44 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|