| @@ -1,102 +1,103 @@ | | | @@ -1,102 +1,103 @@ |
1 | # $NetBSD: Makefile,v 1.86 2017/04/22 21:03:12 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.87 2017/08/19 00:23:58 jlam Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= parrot-${PARROT_VERSION} | | 4 | DISTNAME= parrot-${PARROT_VERSION} |
5 | PKGREVISION= 12 | | 5 | PKGREVISION= 12 |
6 | CATEGORIES= lang | | 6 | CATEGORIES= lang |
7 | MASTER_SITES= ftp://ftp.parrot.org/pub/parrot/releases/${PARROT_RTYPE}/${PARROT_VERSION}/ | | 7 | MASTER_SITES= ftp://ftp.parrot.org/pub/parrot/releases/${PARROT_RTYPE}/${PARROT_VERSION}/ |
8 | | | 8 | |
9 | MAINTAINER= he@NetBSD.org | | 9 | MAINTAINER= he@NetBSD.org |
10 | HOMEPAGE= http://www.parrotcode.org/ | | 10 | HOMEPAGE= http://www.parrotcode.org/ |
11 | COMMENT= Virtual machine made to run Perl 6 and other languages | | 11 | COMMENT= Virtual machine made to run Perl 6 and other languages |
12 | LICENSE= artistic-2.0 | | 12 | LICENSE= artistic-2.0 |
13 | | | 13 | |
14 | USE_LANGUAGES= c c++ | | 14 | USE_LANGUAGES= c c++ |
15 | USE_TOOLS+= perl gmake | | 15 | USE_TOOLS+= perl gmake |
16 | PTHREAD_OPTS+= require | | 16 | PTHREAD_OPTS+= require |
17 | BUILD_TARGET= world | | 17 | BUILD_TARGET= world |
18 | TEST_TARGET= test | | 18 | TEST_TARGET= test |
19 | HAS_CONFIGURE= yes | | 19 | HAS_CONFIGURE= yes |
20 | MAKE_JOBS_SAFE= no | | 20 | MAKE_JOBS_SAFE= no |
21 | | | 21 | |
22 | .include "../../mk/pthread.buildlink3.mk" | | 22 | .include "../../mk/pthread.buildlink3.mk" |
23 | .include "../../mk/bsd.prefs.mk" | | 23 | .include "../../mk/bsd.prefs.mk" |
24 | | | 24 | |
25 | CONFIG_SHELL= perl | | 25 | CONFIG_SHELL= perl |
26 | CONFIGURE_SCRIPT= Configure.pl | | 26 | CONFIGURE_SCRIPT= Configure.pl |
27 | CONFIGURE_ARGS+= --prefix=${PREFIX:Q} \ | | 27 | CONFIGURE_ARGS+= --prefix=${PREFIX:Q} \ |
| | | 28 | --mandir=${PREFIX:Q}/${PKGMANDIR:Q} \ |
28 | --icu-config=${PREFIX}/bin/icu-config \ | | 29 | --icu-config=${PREFIX}/bin/icu-config \ |
29 | --without-opengl --without-pcre \ | | 30 | --without-opengl --without-pcre \ |
30 | --without-zlib \ | | 31 | --without-zlib \ |
31 | --without-libffi \ | | 32 | --without-libffi \ |
32 | --optimize | | 33 | --optimize |
33 | # --without-llvm | | 34 | # --without-llvm |
34 | | | 35 | |
35 | SUBST_CLASSES+= pthread | | 36 | SUBST_CLASSES+= pthread |
36 | SUBST_STAGE.pthread= post-configure | | 37 | SUBST_STAGE.pthread= post-configure |
37 | SUBST_FILES.pthread= Makefile | | 38 | SUBST_FILES.pthread= Makefile |
38 | SUBST_SED.pthread= -e 's|-pthread||g' | | 39 | SUBST_SED.pthread= -e 's|-pthread||g' |
39 | SUBST_SED.pthread+= -e 's|-lpthread||g' | | 40 | SUBST_SED.pthread+= -e 's|-lpthread||g' |
40 | SUBST_SED.pthread+= -e 's|-lc_r||g' | | 41 | SUBST_SED.pthread+= -e 's|-lc_r||g' |
41 | SUBST_SED.pthread+= -e '/^CFLAGS /s|$$|${PTHREAD_CFLAGS:Q}|' | | 42 | SUBST_SED.pthread+= -e '/^CFLAGS /s|$$|${PTHREAD_CFLAGS:Q}|' |
42 | SUBST_SED.pthread+= -e '/^LINKFLAGS /s|$$|${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q}|' | | 43 | SUBST_SED.pthread+= -e '/^LINKFLAGS /s|$$|${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q}|' |
43 | SUBST_SED.pthread+= -e '/^LDFLAGS /s|$$|${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q}|' | | 44 | SUBST_SED.pthread+= -e '/^LDFLAGS /s|$$|${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q}|' |
44 | | | 45 | |
45 | PLIST_SUBST+= PARROT_VERSION=${PARROT_VERSION:Q} | | 46 | PLIST_SUBST+= PARROT_VERSION=${PARROT_VERSION:Q} |
46 | PRINT_PLIST_AWK+= { gsub(/${PARROT_VERSION}/, "$${PARROT_VERSION}") } | | 47 | PRINT_PLIST_AWK+= { gsub(/${PARROT_VERSION}/, "$${PARROT_VERSION}") } |
47 | PLIST_SRC+= ${PLIST_SRC_DFLT} | | 48 | PLIST_SRC+= ${PLIST_SRC_DFLT} |
48 | # Default this to ELF shared libs with .so, | | 49 | # Default this to ELF shared libs with .so, |
49 | # Darwin has PLIST.Darwin which gets included automatically. | | 50 | # Darwin has PLIST.Darwin which gets included automatically. |
50 | .if (${OPSYS} != "Darwin") | | 51 | .if (${OPSYS} != "Darwin") |
51 | PLIST_SRC+= PLIST.shared | | 52 | PLIST_SRC+= PLIST.shared |
52 | .endif | | 53 | .endif |
53 | | | 54 | |
54 | REPLACE_PERL+= tools/build/ops2c.pl | | 55 | REPLACE_PERL+= tools/build/ops2c.pl |
55 | REPLACE_PERL+= tools/build/pmc2c.pl | | 56 | REPLACE_PERL+= tools/build/pmc2c.pl |
56 | REPLACE_PERL+= tools/dev/create_language.pl | | 57 | REPLACE_PERL+= tools/dev/create_language.pl |
57 | REPLACE_PERL+= tools/dev/gen_makefile.pl | | 58 | REPLACE_PERL+= tools/dev/gen_makefile.pl |
58 | REPLACE_PERL+= tools/dev/mk_language_shell.in | | 59 | REPLACE_PERL+= tools/dev/mk_language_shell.in |
59 | REPLACE_PERL+= tools/dev/pprof2cg.pl | | 60 | REPLACE_PERL+= tools/dev/pprof2cg.pl |
60 | REPLACE_PERL+= tools/dev/reconfigure.pl | | 61 | REPLACE_PERL+= tools/dev/reconfigure.pl |
61 | | | 62 | |
62 | REPLACE_INTERPRETER+= parrot | | 63 | REPLACE_INTERPRETER+= parrot |
63 | REPLACE.parrot.old= .*parrot[^[:space:]]* | | 64 | REPLACE.parrot.old= .*parrot[^[:space:]]* |
64 | REPLACE.parrot.new= ${PREFIX}/bin/parrot | | 65 | REPLACE.parrot.new= ${PREFIX}/bin/parrot |
65 | REPLACE_FILES.parrot+= tools/dev/pbc_to_exe.pir | | 66 | REPLACE_FILES.parrot+= tools/dev/pbc_to_exe.pir |
66 | | | 67 | |
67 | REPLACE_INTERPRETER+= parrot-nqp | | 68 | REPLACE_INTERPRETER+= parrot-nqp |
68 | REPLACE.parrot-nqp.old= .*parrot-nqp[^[:space:]]* | | 69 | REPLACE.parrot-nqp.old= .*parrot-nqp[^[:space:]]* |
69 | REPLACE.parrot-nqp.new= ${PREFIX}/bin/parrot-nqp | | 70 | REPLACE.parrot-nqp.new= ${PREFIX}/bin/parrot-nqp |
70 | REPLACE_FILES.parrot-nqp+= compilers/data_json/JSON.nqp | | 71 | REPLACE_FILES.parrot-nqp+= compilers/data_json/JSON.nqp |
71 | | | 72 | |
72 | REPLACE_INTERPRETER+= nqp | | 73 | REPLACE_INTERPRETER+= nqp |
73 | REPLACE.nqp.old= .*nqp[^[:space:]]* | | 74 | REPLACE.nqp.old= .*nqp[^[:space:]]* |
74 | REPLACE.nqp.new= ${PREFIX}/bin/parrot-nqp | | 75 | REPLACE.nqp.new= ${PREFIX}/bin/parrot-nqp |
75 | REPLACE_FILES.nqp+= runtime/parrot/library/YAML/Tiny.pm | | 76 | REPLACE_FILES.nqp+= runtime/parrot/library/YAML/Tiny.pm |
76 | | | 77 | |
77 | # These have been reported to parrot, Git tracking issue #201 | | 78 | # These have been reported to parrot, Git tracking issue #201 |
78 | CHECK_WRKREF_SKIP+= bin/ops2c | | 79 | CHECK_WRKREF_SKIP+= bin/ops2c |
79 | CHECK_WRKREF_SKIP+= bin/parrot | | 80 | CHECK_WRKREF_SKIP+= bin/parrot |
80 | CHECK_WRKREF_SKIP+= bin/parrot-nqp | | 81 | CHECK_WRKREF_SKIP+= bin/parrot-nqp |
81 | CHECK_WRKREF_SKIP+= bin/parrot-prove | | 82 | CHECK_WRKREF_SKIP+= bin/parrot-prove |
82 | CHECK_WRKREF_SKIP+= bin/parrot_config | | 83 | CHECK_WRKREF_SKIP+= bin/parrot_config |
83 | CHECK_WRKREF_SKIP+= bin/parrot_nci_thunk_gen | | 84 | CHECK_WRKREF_SKIP+= bin/parrot_nci_thunk_gen |
84 | CHECK_WRKREF_SKIP+= bin/pbc_merge | | 85 | CHECK_WRKREF_SKIP+= bin/pbc_merge |
85 | CHECK_WRKREF_SKIP+= bin/pbc_to_exe | | 86 | CHECK_WRKREF_SKIP+= bin/pbc_to_exe |
86 | CHECK_WRKREF_SKIP+= bin/winxed | | 87 | CHECK_WRKREF_SKIP+= bin/winxed |
87 | CHECK_WRKREF_SKIP+= lib/parrot/${PARROT_VERSION}/include/config.fpmc | | 88 | CHECK_WRKREF_SKIP+= lib/parrot/${PARROT_VERSION}/include/config.fpmc |
88 | CHECK_WRKREF_SKIP+= lib/parrot/${PARROT_VERSION}/parrot_config.o | | 89 | CHECK_WRKREF_SKIP+= lib/parrot/${PARROT_VERSION}/parrot_config.o |
89 | CHECK_WRKREF_SKIP+= lib/parrot/${PARROT_VERSION}/tools/lib/Parrot/Config/Generated.pm | | 90 | CHECK_WRKREF_SKIP+= lib/parrot/${PARROT_VERSION}/tools/lib/Parrot/Config/Generated.pm |
90 | CHECK_WRKREF_SKIP+= src/parrot/${PARROT_VERSION}/config_lib.pir | | 91 | CHECK_WRKREF_SKIP+= src/parrot/${PARROT_VERSION}/config_lib.pir |
91 | | | 92 | |
92 | # Does relink internally, so allow local rpath entries | | 93 | # Does relink internally, so allow local rpath entries |
93 | BUILDLINK_PASSTHRU_RPATHDIRS+= ${WRKSRC} | | 94 | BUILDLINK_PASSTHRU_RPATHDIRS+= ${WRKSRC} |
94 | | | 95 | |
95 | pre-install: | | 96 | pre-install: |
96 | ${CHMOD} -R g-w ${WRKSRC} | | 97 | ${CHMOD} -R g-w ${WRKSRC} |
97 | | | 98 | |
98 | .include "../../lang/parrot/version.mk" | | 99 | .include "../../lang/parrot/version.mk" |
99 | .include "../../textproc/icu/buildlink3.mk" | | 100 | .include "../../textproc/icu/buildlink3.mk" |
100 | .include "../../devel/gmp/buildlink3.mk" | | 101 | .include "../../devel/gmp/buildlink3.mk" |
101 | .include "../../mk/readline.buildlink3.mk" | | 102 | .include "../../mk/readline.buildlink3.mk" |
102 | .include "../../mk/bsd.pkg.mk" | | 103 | .include "../../mk/bsd.pkg.mk" |