| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.138 2020/12/09 10:33:04 jaapb Exp $ | | 1 | # $NetBSD: Makefile,v 1.139 2020/12/10 16:17:55 wiz Exp $ |
2 | | | 2 | |
3 | .include "Makefile.common" | | 3 | .include "Makefile.common" |
4 | | | 4 | |
5 | #CONFIGURE_ENV+= disable_x11=yes | | 5 | #CONFIGURE_ENV+= disable_x11=yes |
6 | | | 6 | |
7 | BUILD_TARGET= world | | 7 | BUILD_TARGET= world |
8 | TEST_PROGRAM= ocamltest | | 8 | TEST_PROGRAM= ocamltest |
9 | MAKE_JOBS_SAFE= no | | 9 | MAKE_JOBS_SAFE= no |
10 | UNLIMIT_RESOURCES= stacksize | | 10 | UNLIMIT_RESOURCES= stacksize |
11 | | | 11 | |
12 | USE_TOOLS+= bash | | 12 | USE_TOOLS+= bash |
13 | USE_LANGUAGES+= c | | 13 | USE_LANGUAGES+= c |
14 | USE_LIBTOOL= yes | | 14 | USE_LIBTOOL= yes |
| @@ -83,31 +83,26 @@ PLIST.instrumented_runtime= yes | | | @@ -83,31 +83,26 @@ PLIST.instrumented_runtime= yes |
83 | # is what ${SH} is on SunOS, doesn't exhibit this behaviour. | | 83 | # is what ${SH} is on SunOS, doesn't exhibit this behaviour. |
84 | .if ${OPSYS} == "SunOS" | | 84 | .if ${OPSYS} == "SunOS" |
85 | INSTALL_MAKE_FLAGS+= SHELL=${SH:Q} | | 85 | INSTALL_MAKE_FLAGS+= SHELL=${SH:Q} |
86 | .endif | | 86 | .endif |
87 | | | 87 | |
88 | #INSTALLATION_DIRS= ${PKGMANDIR}/man1 | | 88 | #INSTALLATION_DIRS= ${PKGMANDIR}/man1 |
89 | | | 89 | |
90 | OPSYSVARS+= EXTRA_RT_LIBS | | 90 | OPSYSVARS+= EXTRA_RT_LIBS |
91 | EXTRA_RT_LIBS.NetBSD= -lcurses | | 91 | EXTRA_RT_LIBS.NetBSD= -lcurses |
92 | EXTRA_RT_LIBS.*= | | 92 | EXTRA_RT_LIBS.*= |
93 | | | 93 | |
94 | PRINT_PLIST_AWK+= { gsub(/lib\/ocaml\/${PKGMANDIR:S|/|\\/|}/, "lib/ocaml/$${PKGMANDIR}"); } | | 94 | PRINT_PLIST_AWK+= { gsub(/lib\/ocaml\/${PKGMANDIR:S|/|\\/|}/, "lib/ocaml/$${PKGMANDIR}"); } |
95 | | | 95 | |
96 | .if defined(PLIST.instrumented_runtime) | | | |
97 | REPLACE_BASH+= tools/ocaml-instr-graph | | | |
98 | REPLACE_AWK+= tools/ocaml-instr-report | | | |
99 | .endif | | | |
100 | | | | |
101 | do-test: | | 96 | do-test: |
102 | cd ${WRKSRC} && ${MAKE_PROGRAM} ${TEST_PROGRAM} | | 97 | cd ${WRKSRC} && ${MAKE_PROGRAM} ${TEST_PROGRAM} |
103 | cd ${WRKSRC}/testsuite && ${MAKE_PROGRAM} all | | 98 | cd ${WRKSRC}/testsuite && ${MAKE_PROGRAM} all |
104 | | | 99 | |
105 | .if ${OPSYS} == "Darwin" | | 100 | .if ${OPSYS} == "Darwin" |
106 | .PHONY: fix-darwin-install-name | | 101 | .PHONY: fix-darwin-install-name |
107 | post-install: fix-darwin-install-name | | 102 | post-install: fix-darwin-install-name |
108 | fix-darwin-install-name: | | 103 | fix-darwin-install-name: |
109 | for f in ${DESTDIR}${PREFIX}/lib/ocaml/*.so \ | | 104 | for f in ${DESTDIR}${PREFIX}/lib/ocaml/*.so \ |
110 | ${DESTDIR}${PREFIX}/lib/ocaml/stublibs/*.so; do \ | | 105 | ${DESTDIR}${PREFIX}/lib/ocaml/stublibs/*.so; do \ |
111 | install_name_tool -id `${ECHO} $$f | ${SED} -e 's,${DESTDIR},,g'` $$f; \ | | 106 | install_name_tool -id `${ECHO} $$f | ${SED} -e 's,${DESTDIR},,g'` $$f; \ |
112 | done | | 107 | done |
113 | .endif | | 108 | .endif |