Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / mercury / Makefile
blobafed9027b675d1a9f5ce493a59f99b87294c41de
1 # $NetBSD: Makefile,v 1.41 2012/10/03 21:56:19 wiz Exp $
3 DISTNAME= mercury-compiler-11.07
4 PKGNAME= mercury-11.07
5 PKGREVISION= 1
6 CATEGORIES= lang
7 MASTER_SITES= ftp://ftp.mercury.cs.mu.oz.au/pub/mercury/ \
8 http://www.mercury.cs.mu.oz.au/download/files/ \
9 ${MASTER_SITE_SUNSITE:=devel/lang/mercury/}
11 MAINTAINER= pkgsrc-users@NetBSD.org
12 HOMEPAGE= http://www.cs.mu.oz.au/research/mercury/
13 COMMENT= Modern logic/functional programming language
15 GNU_CONFIGURE= yes
16 USE_TOOLS+= gmake pax bison flex
17 USE_TOOLS+= perl # ?
18 USE_GNU_READLINE= yes # rl_prep_term_function
19 INFO_FILES= yes
21 # Some of the scripts test CC and use special settings for gcc.
22 CONFIGURE_ENV+= CC=gcc
24 CONFIGURE_ENV+= HOSTNAMECMD=${TOOLS_HOSTNAME_CMD:Q}
25 USE_TOOLS+= hostname
27 MAKE_ENV+= READLINE_PREFIX=${BUILDLINK_PREFIX.readline}
29 INSTALL_PREFIX= ${WRKSRC}/tmp
30 BUILD_MAKE_FLAGS= ${MAKE_FLAGS}
31 BUILD_MAKE_FLAGS+= INSTALL_PREFIX=${INSTALL_PREFIX:Q}
32 BUILD_MAKE_FLAGS+= INSTALL_INFO_DIR=${INSTALL_PREFIX:Q}/${PKGINFODIR:Q}
33 BUILD_MAKE_FLAGS+= INSTALL_MAN_DIR=${INSTALL_PREFIX:Q}/${PKGMANDIR:Q}
34 BUILD_MAKE_FLAGS+= MERCURY_COMPILER=${INSTALL_PREFIX:Q}/bin/mercury_compile
35 #BUILD_MAKE_FLAGS+= PARALLEL=$(MAKE_JOBS:D-j$(MAKE_JOBS))
37 CHECK_INTERPRETER_SKIP+= lib/mercury/reconf/scripts/mtags.in
39 post-patch:
40 ${TOUCH} \
41 ${WRKSRC}/library/table_builtin.date3 \
42 ${WRKSRC}/library/table_builtin.date \
43 ${WRKSRC}/library/table_builtin.optdate \
44 ${WRKSRC}/library/table_builtin.trans_opt_date \
45 ${WRKSRC}/library/table_builtin.c_date
47 do-build:
48 cd ${WRKSRC} && ${BUILD_MAKE_CMD} install
50 do-install:
51 cd ${WRKSRC}/tmp && pax -rw . ${DESTDIR}${PREFIX}
52 ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/mercury
53 ${FIND} ${WRKSRC} -type d -name "CVS" -print | ${XARGS} ${RM} -fr
54 ${FIND} ${WRKSRC} -type f -name ".cvsignore" -print | ${XARGS} ${RM} -f
55 cd ${WRKSRC}/samples && \
56 pax -rw . ${DESTDIR}${PREFIX}/share/examples/mercury
58 .include "../../devel/readline/buildlink3.mk"
59 .include "../../devel/ncurses/buildlink3.mk"
60 .include "../../mk/bsd.pkg.mk"