| @@ -1,84 +1,83 @@ | | | @@ -1,84 +1,83 @@ |
1 | # $NetBSD: Makefile,v 1.121 2019/05/05 22:49:48 ryoon Exp $ | | 1 | # $NetBSD: Makefile,v 1.122 2019/05/23 10:55:07 jaapb Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= coq-8.9.0 | | 4 | DISTNAME= coq-8.9.1 |
5 | PKGREVISION= 3 | | | |
6 | CATEGORIES= lang math | | 5 | CATEGORIES= lang math |
7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=coq/} | | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=coq/} |
8 | GITHUB_TAG= V${PKGVERSION_NOREV:S/_/+/} | | 7 | GITHUB_TAG= V${PKGVERSION_NOREV:S/_/+/} |
9 | | | 8 | |
10 | MAINTAINER= jaapb@NetBSD.org | | 9 | MAINTAINER= jaapb@NetBSD.org |
11 | HOMEPAGE= http://coq.inria.fr/ | | 10 | HOMEPAGE= http://coq.inria.fr/ |
12 | COMMENT= Theorem prover which extracts programs from proofs | | 11 | COMMENT= Theorem prover which extracts programs from proofs |
13 | LICENSE= gnu-lgpl-v2.1 | | 12 | LICENSE= gnu-lgpl-v2.1 |
14 | | | 13 | |
15 | WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV:S/_/-/} | | 14 | WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV:S/_/-/} |
16 | | | 15 | |
17 | USE_TOOLS+= gmake | | 16 | USE_TOOLS+= gmake |
18 | HAS_CONFIGURE= yes | | 17 | HAS_CONFIGURE= yes |
19 | CONFIGURE_ARGS+= -prefix ${PREFIX} | | 18 | CONFIGURE_ARGS+= -prefix ${PREFIX} |
20 | #CONFIGURE_ARGS+= -emacslib ${PREFIX}/share/emacs/site-lisp | | 19 | #CONFIGURE_ARGS+= -emacslib ${PREFIX}/share/emacs/site-lisp |
21 | CONFIGURE_ARGS+= -mandir ${PREFIX}/${PKGMANDIR} | | 20 | CONFIGURE_ARGS+= -mandir ${PREFIX}/${PKGMANDIR} |
22 | CONFIGURE_ARGS+= -configdir ${PKG_SYSCONFDIR}/xdg/coq | | 21 | CONFIGURE_ARGS+= -configdir ${PKG_SYSCONFDIR}/xdg/coq |
23 | CONFIGURE_ARGS+= -docdir ${PREFIX}/share/doc/coq | | 22 | CONFIGURE_ARGS+= -docdir ${PREFIX}/share/doc/coq |
24 | CONFIGURE_ARGS+= -coqdocdir ${PREFIX}/share/texmf-dist/tex/latex/coq | | 23 | CONFIGURE_ARGS+= -coqdocdir ${PREFIX}/share/texmf-dist/tex/latex/coq |
25 | | | 24 | |
26 | BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.10 | | 25 | BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.10 |
27 | | | 26 | |
28 | .include "../../mk/bsd.prefs.mk" | | 27 | .include "../../mk/bsd.prefs.mk" |
29 | .include "../../mk/ocaml.mk" | | 28 | .include "../../mk/ocaml.mk" |
30 | | | 29 | |
31 | PLIST_VARS+= native | | 30 | PLIST_VARS+= native |
32 | .if ${OCAML_USE_OPT_COMPILER} == "yes" | | 31 | .if ${OCAML_USE_OPT_COMPILER} == "yes" |
33 | PLIST_SUBST+= COQIDE_TYPE="opt" | | 32 | PLIST_SUBST+= COQIDE_TYPE="opt" |
34 | PLIST.native= yes | | 33 | PLIST.native= yes |
35 | CONFIGURE_ARGS+= -native-compiler yes | | 34 | CONFIGURE_ARGS+= -native-compiler yes |
36 | UNLIMIT_RESOURCES+= stacksize # compilation of some files needs this | | 35 | UNLIMIT_RESOURCES+= stacksize # compilation of some files needs this |
37 | BUILD_TARGET= world | | 36 | BUILD_TARGET= world |
38 | .else | | 37 | .else |
39 | PLIST_SUBST+= COQIDE_TYPE="byte" | | 38 | PLIST_SUBST+= COQIDE_TYPE="byte" |
40 | CONFIGURE_ARGS+= -native-compiler no | | 39 | CONFIGURE_ARGS+= -native-compiler no |
41 | BUILD_TARGET= byte | | 40 | BUILD_TARGET= byte |
42 | INSTALL_TARGET= install-byte | | 41 | INSTALL_TARGET= install-byte |
43 | .endif | | 42 | .endif |
44 | | | 43 | |
45 | .if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64") | | 44 | .if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64") |
46 | . if !empty(MACHINE_PLATFORM:MLinux-*-*) || \ | | 45 | . if !empty(MACHINE_PLATFORM:MLinux-*-*) || \ |
47 | !empty(MACHINE_PLATFORM:MDragonFly-*-*) || \ | | 46 | !empty(MACHINE_PLATFORM:MDragonFly-*-*) || \ |
48 | !empty(MACHINE_PLATFORM:MFreeBSD-*-*) || \ | | 47 | !empty(MACHINE_PLATFORM:MFreeBSD-*-*) || \ |
49 | !empty(MACHINE_PLATFORM:MDarwin-*-*) || \ | | 48 | !empty(MACHINE_PLATFORM:MDarwin-*-*) || \ |
50 | !empty(MACHINE_PLATFORM:MNetBSD-*-*) | | 49 | !empty(MACHINE_PLATFORM:MNetBSD-*-*) |
51 | PLIST.natdynlink= yes | | 50 | PLIST.natdynlink= yes |
52 | . endif | | 51 | . endif |
53 | .endif | | 52 | .endif |
54 | | | 53 | |
55 | .include "../../lang/python/pyversion.mk" | | 54 | .include "../../lang/python/pyversion.mk" |
56 | | | 55 | |
57 | REPLACE_SH= configure install.sh | | 56 | REPLACE_SH= configure install.sh |
58 | REPLACE_INTERPRETER= python | | 57 | REPLACE_INTERPRETER= python |
59 | REPLACE.python.old= python | | 58 | REPLACE.python.old= python |
60 | REPLACE.python.new= ${PYTHONBIN} | | 59 | REPLACE.python.new= ${PYTHONBIN} |
61 | REPLACE_FILES.python= tools/TimeFileMaker.py \ | | 60 | REPLACE_FILES.python= tools/TimeFileMaker.py \ |
62 | tools/make-both-single-timing-files.py \ | | 61 | tools/make-both-single-timing-files.py \ |
63 | tools/make-both-time-files.py \ | | 62 | tools/make-both-time-files.py \ |
64 | tools/make-one-time-file.py | | 63 | tools/make-one-time-file.py |
65 | | | 64 | |
66 | INSTALL_ENV+= COQINSTALLPREFIX=${DESTDIR} | | 65 | INSTALL_ENV+= COQINSTALLPREFIX=${DESTDIR} |
67 | | | 66 | |
68 | PLIST_VARS+= coqide natdynlink doc | | 67 | PLIST_VARS+= coqide natdynlink doc |
69 | | | 68 | |
70 | .include "options.mk" | | 69 | .include "options.mk" |
71 | | | 70 | |
72 | EGDIR= ${PREFIX}/share/coq/examples | | 71 | EGDIR= ${PREFIX}/share/coq/examples |
73 | #CONF_FILES= {EGDIR}/coqide-gtk2rc ${PKG_SYSCONFDIR}/xdg/coq/coqide-gtk2rc | | 72 | #CONF_FILES= {EGDIR}/coqide-gtk2rc ${PKG_SYSCONFDIR}/xdg/coq/coqide-gtk2rc |
74 | | | 73 | |
75 | SUBST_CLASSES+= fix-paths | | 74 | SUBST_CLASSES+= fix-paths |
76 | SUBST_STAGE.fix-paths= post-configure | | 75 | SUBST_STAGE.fix-paths= post-configure |
77 | SUBST_MESSAGE.fix-paths= Remove buildlink references from Coq_config module | | 76 | SUBST_MESSAGE.fix-paths= Remove buildlink references from Coq_config module |
78 | SUBST_FILES.fix-paths= config/coq_config.ml | | 77 | SUBST_FILES.fix-paths= config/coq_config.ml |
79 | SUBST_SED.fix-paths= -e "s,${BUILDLINK_DIR},${PREFIX},g" | | 78 | SUBST_SED.fix-paths= -e "s,${BUILDLINK_DIR},${PREFIX},g" |
80 | | | 79 | |
81 | .include "../../lang/camlp5/buildlink3.mk" | | 80 | .include "../../lang/camlp5/buildlink3.mk" |
82 | .include "../../math/ocaml-num/buildlink3.mk" | | 81 | .include "../../math/ocaml-num/buildlink3.mk" |
83 | .include "../../mk/pthread.buildlink3.mk" | | 82 | .include "../../mk/pthread.buildlink3.mk" |
84 | .include "../../mk/bsd.pkg.mk" | | 83 | .include "../../mk/bsd.pkg.mk" |