Sat Aug 19 00:23:58 2017 UTC ()
lang/parrot: Install manpages into ${PKGMANDIR}.

Pass "--mandir=<dir>" to the configure script to set the correct
location for installed manpages.


(jlam)
diff -r1.86 -r1.87 pkgsrc/lang/parrot/Makefile

cvs diff -r1.86 -r1.87 pkgsrc/lang/parrot/Makefile (switch to unified diff)

--- pkgsrc/lang/parrot/Makefile 2017/04/22 21:03:12 1.86
+++ pkgsrc/lang/parrot/Makefile 2017/08/19 00:23:58 1.87
@@ -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
4DISTNAME= parrot-${PARROT_VERSION} 4DISTNAME= parrot-${PARROT_VERSION}
5PKGREVISION= 12 5PKGREVISION= 12
6CATEGORIES= lang 6CATEGORIES= lang
7MASTER_SITES= ftp://ftp.parrot.org/pub/parrot/releases/${PARROT_RTYPE}/${PARROT_VERSION}/ 7MASTER_SITES= ftp://ftp.parrot.org/pub/parrot/releases/${PARROT_RTYPE}/${PARROT_VERSION}/
8 8
9MAINTAINER= he@NetBSD.org 9MAINTAINER= he@NetBSD.org
10HOMEPAGE= http://www.parrotcode.org/ 10HOMEPAGE= http://www.parrotcode.org/
11COMMENT= Virtual machine made to run Perl 6 and other languages 11COMMENT= Virtual machine made to run Perl 6 and other languages
12LICENSE= artistic-2.0 12LICENSE= artistic-2.0
13 13
14USE_LANGUAGES= c c++ 14USE_LANGUAGES= c c++
15USE_TOOLS+= perl gmake 15USE_TOOLS+= perl gmake
16PTHREAD_OPTS+= require 16PTHREAD_OPTS+= require
17BUILD_TARGET= world 17BUILD_TARGET= world
18TEST_TARGET= test 18TEST_TARGET= test
19HAS_CONFIGURE= yes 19HAS_CONFIGURE= yes
20MAKE_JOBS_SAFE= no 20MAKE_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
25CONFIG_SHELL= perl 25CONFIG_SHELL= perl
26CONFIGURE_SCRIPT= Configure.pl 26CONFIGURE_SCRIPT= Configure.pl
27CONFIGURE_ARGS+= --prefix=${PREFIX:Q} \ 27CONFIGURE_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
35SUBST_CLASSES+= pthread 36SUBST_CLASSES+= pthread
36SUBST_STAGE.pthread= post-configure 37SUBST_STAGE.pthread= post-configure
37SUBST_FILES.pthread= Makefile 38SUBST_FILES.pthread= Makefile
38SUBST_SED.pthread= -e 's|-pthread||g' 39SUBST_SED.pthread= -e 's|-pthread||g'
39SUBST_SED.pthread+= -e 's|-lpthread||g' 40SUBST_SED.pthread+= -e 's|-lpthread||g'
40SUBST_SED.pthread+= -e 's|-lc_r||g' 41SUBST_SED.pthread+= -e 's|-lc_r||g'
41SUBST_SED.pthread+= -e '/^CFLAGS /s|$$|${PTHREAD_CFLAGS:Q}|' 42SUBST_SED.pthread+= -e '/^CFLAGS /s|$$|${PTHREAD_CFLAGS:Q}|'
42SUBST_SED.pthread+= -e '/^LINKFLAGS /s|$$|${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q}|' 43SUBST_SED.pthread+= -e '/^LINKFLAGS /s|$$|${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q}|'
43SUBST_SED.pthread+= -e '/^LDFLAGS /s|$$|${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q}|' 44SUBST_SED.pthread+= -e '/^LDFLAGS /s|$$|${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q}|'
44 45
45PLIST_SUBST+= PARROT_VERSION=${PARROT_VERSION:Q} 46PLIST_SUBST+= PARROT_VERSION=${PARROT_VERSION:Q}
46PRINT_PLIST_AWK+= { gsub(/${PARROT_VERSION}/, "$${PARROT_VERSION}") } 47PRINT_PLIST_AWK+= { gsub(/${PARROT_VERSION}/, "$${PARROT_VERSION}") }
47PLIST_SRC+= ${PLIST_SRC_DFLT} 48PLIST_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")
51PLIST_SRC+= PLIST.shared 52PLIST_SRC+= PLIST.shared
52.endif 53.endif
53 54
54REPLACE_PERL+= tools/build/ops2c.pl 55REPLACE_PERL+= tools/build/ops2c.pl
55REPLACE_PERL+= tools/build/pmc2c.pl 56REPLACE_PERL+= tools/build/pmc2c.pl
56REPLACE_PERL+= tools/dev/create_language.pl 57REPLACE_PERL+= tools/dev/create_language.pl
57REPLACE_PERL+= tools/dev/gen_makefile.pl 58REPLACE_PERL+= tools/dev/gen_makefile.pl
58REPLACE_PERL+= tools/dev/mk_language_shell.in 59REPLACE_PERL+= tools/dev/mk_language_shell.in
59REPLACE_PERL+= tools/dev/pprof2cg.pl 60REPLACE_PERL+= tools/dev/pprof2cg.pl
60REPLACE_PERL+= tools/dev/reconfigure.pl 61REPLACE_PERL+= tools/dev/reconfigure.pl
61 62
62REPLACE_INTERPRETER+= parrot 63REPLACE_INTERPRETER+= parrot
63REPLACE.parrot.old= .*parrot[^[:space:]]* 64REPLACE.parrot.old= .*parrot[^[:space:]]*
64REPLACE.parrot.new= ${PREFIX}/bin/parrot 65REPLACE.parrot.new= ${PREFIX}/bin/parrot
65REPLACE_FILES.parrot+= tools/dev/pbc_to_exe.pir 66REPLACE_FILES.parrot+= tools/dev/pbc_to_exe.pir
66 67
67REPLACE_INTERPRETER+= parrot-nqp 68REPLACE_INTERPRETER+= parrot-nqp
68REPLACE.parrot-nqp.old= .*parrot-nqp[^[:space:]]* 69REPLACE.parrot-nqp.old= .*parrot-nqp[^[:space:]]*
69REPLACE.parrot-nqp.new= ${PREFIX}/bin/parrot-nqp 70REPLACE.parrot-nqp.new= ${PREFIX}/bin/parrot-nqp
70REPLACE_FILES.parrot-nqp+= compilers/data_json/JSON.nqp 71REPLACE_FILES.parrot-nqp+= compilers/data_json/JSON.nqp
71 72
72REPLACE_INTERPRETER+= nqp 73REPLACE_INTERPRETER+= nqp
73REPLACE.nqp.old= .*nqp[^[:space:]]* 74REPLACE.nqp.old= .*nqp[^[:space:]]*
74REPLACE.nqp.new= ${PREFIX}/bin/parrot-nqp 75REPLACE.nqp.new= ${PREFIX}/bin/parrot-nqp
75REPLACE_FILES.nqp+= runtime/parrot/library/YAML/Tiny.pm 76REPLACE_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
78CHECK_WRKREF_SKIP+= bin/ops2c 79CHECK_WRKREF_SKIP+= bin/ops2c
79CHECK_WRKREF_SKIP+= bin/parrot 80CHECK_WRKREF_SKIP+= bin/parrot
80CHECK_WRKREF_SKIP+= bin/parrot-nqp 81CHECK_WRKREF_SKIP+= bin/parrot-nqp
81CHECK_WRKREF_SKIP+= bin/parrot-prove 82CHECK_WRKREF_SKIP+= bin/parrot-prove
82CHECK_WRKREF_SKIP+= bin/parrot_config 83CHECK_WRKREF_SKIP+= bin/parrot_config
83CHECK_WRKREF_SKIP+= bin/parrot_nci_thunk_gen 84CHECK_WRKREF_SKIP+= bin/parrot_nci_thunk_gen
84CHECK_WRKREF_SKIP+= bin/pbc_merge 85CHECK_WRKREF_SKIP+= bin/pbc_merge
85CHECK_WRKREF_SKIP+= bin/pbc_to_exe 86CHECK_WRKREF_SKIP+= bin/pbc_to_exe
86CHECK_WRKREF_SKIP+= bin/winxed 87CHECK_WRKREF_SKIP+= bin/winxed
87CHECK_WRKREF_SKIP+= lib/parrot/${PARROT_VERSION}/include/config.fpmc 88CHECK_WRKREF_SKIP+= lib/parrot/${PARROT_VERSION}/include/config.fpmc
88CHECK_WRKREF_SKIP+= lib/parrot/${PARROT_VERSION}/parrot_config.o 89CHECK_WRKREF_SKIP+= lib/parrot/${PARROT_VERSION}/parrot_config.o
89CHECK_WRKREF_SKIP+= lib/parrot/${PARROT_VERSION}/tools/lib/Parrot/Config/Generated.pm 90CHECK_WRKREF_SKIP+= lib/parrot/${PARROT_VERSION}/tools/lib/Parrot/Config/Generated.pm
90CHECK_WRKREF_SKIP+= src/parrot/${PARROT_VERSION}/config_lib.pir 91CHECK_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
93BUILDLINK_PASSTHRU_RPATHDIRS+= ${WRKSRC} 94BUILDLINK_PASSTHRU_RPATHDIRS+= ${WRKSRC}
94 95
95pre-install: 96pre-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"