| @@ -1,124 +1,64 @@ | | | @@ -1,124 +1,64 @@ |
1 | # $NetBSD: Makefile,v 1.7 2017/03/17 22:38:17 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.8 2017/05/05 22:56:37 kamil Exp $ |
2 | | | 2 | |
3 | DISTNAME= lldb-4.0.0.src | | 3 | DISTNAME= lldb-4.0.0.src |
4 | PKGNAME= ${DISTNAME:S/.src//} | | 4 | PKGNAME= ${DISTNAME:S/.src//} |
5 | CATEGORIES= lang devel | | 5 | CATEGORIES= lang devel |
6 | MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/ | | 6 | MASTER_SITES= http://llvm.org/releases/${PKGVERSION_NOREV}/ |
7 | EXTRACT_SUFX= .tar.xz | | 7 | EXTRACT_SUFX= .tar.xz |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://lldb.org/ | | 10 | HOMEPAGE= http://lldb.org/ |
11 | COMMENT= Next generation, high-performance debugger | | 11 | COMMENT= Next generation, high-performance debugger |
12 | LICENSE= modified-bsd | | 12 | LICENSE= modified-bsd |
13 | | | 13 | |
14 | DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six | | 14 | DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six |
15 | | | 15 | |
16 | CONFIGURE_DIRS= ${WRKDIR}/build | | 16 | CONFIGURE_DIRS= ${WRKDIR}/build |
17 | CMAKE_ARG_PATH= ${WRKSRC} | | 17 | CMAKE_ARG_PATH= ${WRKSRC} |
18 | | | 18 | |
19 | USE_LANGUAGES= c c++ | | 19 | USE_LANGUAGES= c c++ |
20 | USE_CMAKE= yes | | 20 | USE_CMAKE= yes |
21 | GCC_REQD+= 4.8 | | 21 | GCC_REQD+= 4.8 |
22 | PY_PATCHPLIST= yes | | 22 | PY_PATCHPLIST= yes |
23 | | | 23 | |
24 | PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # compilation failure in 3.8.1 (3.8.0 worked) | | 24 | PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # compilation failure in 3.8.1 (3.8.0 worked) |
25 | | | 25 | |
26 | CMAKE_ARGS+= -DLLVM_CONFIG=${LLVM_CONFIG_PATH} | | 26 | CMAKE_ARGS+= -DLLVM_CONFIG=${LLVM_CONFIG_PATH} |
27 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release | | 27 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release |
28 | CMAKE_ARGS+= -DCMAKE_C_COMPILER=gcc | | 28 | CMAKE_ARGS+= -DCMAKE_C_COMPILER=${CC:Q} |
29 | CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=g++ | | 29 | CMAKE_ARGS+= -DCMAKE_CXX_COMPILER=${CXX:Q} |
30 | CMAKE_ARGS+= -DHAVE_CXX_ATOMICS64_WITHOUT_LIB=ON | | 30 | CMAKE_ARGS+= -DHAVE_CXX_ATOMICS64_WITHOUT_LIB=ON |
| | | 31 | CMAKE_ARGS+= -DLLDB_USE_SYSTEM_SIX:BOOL=TRUE |
31 | | | 32 | |
32 | CHECK_PORTABILITY_SKIP= utils/buildit/build_llvm | | 33 | CHECK_PORTABILITY_SKIP= utils/buildit/build_llvm |
33 | | | 34 | |
34 | REPLACE_PERL+= packages/Python/lldbsuite/test/attic/dotest.pl | | 35 | REPLACE_PERL+= *.pl |
35 | REPLACE_PERL+= scripts/build-llvm.pl | | 36 | REPLACE_PERL+= */*.pl |
36 | REPLACE_PERL+= scripts/checkpoint-llvm.pl | | 37 | REPLACE_PERL+= */*/*.pl |
37 | REPLACE_PERL+= scripts/disasm-gdb-remote.pl | | 38 | REPLACE_PERL+= */*/*/*.pl |
38 | REPLACE_PERL+= scripts/generate-vers.pl | | 39 | REPLACE_PERL+= */*/*/*/*.pl |
| | | 40 | REPLACE_PERL+= */*/*/*/*/*.pl |
39 | REPLACE_PERL+= scripts/sed-sources | | 41 | REPLACE_PERL+= scripts/sed-sources |
40 | | | 42 | |
41 | REPLACE_PYTHON+= examples/darwin/heap_find/heap.py | | 43 | REPLACE_PYTHON+= *.py |
42 | REPLACE_PYTHON+= examples/python/cmdtemplate.py | | 44 | REPLACE_PYTHON+= */*.py |
43 | REPLACE_PYTHON+= examples/python/crashlog.py | | 45 | REPLACE_PYTHON+= */*/*.py |
44 | REPLACE_PYTHON+= examples/python/delta.py | | 46 | REPLACE_PYTHON+= */*/*/*.py |
45 | REPLACE_PYTHON+= examples/python/disasm-stress-test.py | | 47 | REPLACE_PYTHON+= */*/*/*/*.py |
46 | REPLACE_PYTHON+= examples/python/disasm.py | | 48 | REPLACE_PYTHON+= */*/*/*/*/*.py |
47 | REPLACE_PYTHON+= examples/python/gdbremote.py | | 49 | REPLACE_PYTHON+= */*/*/*/*/*/*.py |
48 | REPLACE_PYTHON+= examples/python/globals.py | | 50 | REPLACE_PYTHON+= */*/*/*/*/*/*/*.py |
49 | REPLACE_PYTHON+= examples/python/lldb_module_utils.py | | | |
50 | REPLACE_PYTHON+= examples/python/lldbtk.py | | | |
51 | REPLACE_PYTHON+= examples/python/mach_o.py | | | |
52 | REPLACE_PYTHON+= examples/python/memory.py | | | |
53 | REPLACE_PYTHON+= examples/python/operating_system.py | | | |
54 | REPLACE_PYTHON+= examples/python/performance.py | | | |
55 | REPLACE_PYTHON+= examples/python/process_events.py | | | |
56 | REPLACE_PYTHON+= examples/python/sbvalue.py | | | |
57 | REPLACE_PYTHON+= examples/python/sources.py | | | |
58 | REPLACE_PYTHON+= examples/python/stacks.py | | | |
59 | REPLACE_PYTHON+= examples/python/symbolication.py | | | |
60 | REPLACE_PYTHON+= examples/python/types.py | | | |
61 | REPLACE_PYTHON+= examples/python/x86_64_linux_target_definition.py | | | |
62 | REPLACE_PYTHON+= examples/python/x86_64_qemu_target_definition.py | | | |
63 | REPLACE_PYTHON+= examples/python/x86_64_target_definition.py | | | |
64 | REPLACE_PYTHON+= packages/Python/lldbsuite/test/attic/tester.py | | | |
65 | REPLACE_PYTHON+= packages/Python/lldbsuite/test/bench.py | | | |
66 | REPLACE_PYTHON+= packages/Python/lldbsuite/test/curses_results.py | | | |
67 | REPLACE_PYTHON+= packages/Python/lldbsuite/test/dosep.py | | | |
68 | REPLACE_PYTHON+= packages/Python/lldbsuite/test/functionalities/plugins/python_os_plugin/operating_system.py | | | |
69 | REPLACE_PYTHON+= packages/Python/lldbsuite/test/functionalities/plugins/python_os_plugin/operating_system2.py | | | |
70 | REPLACE_PYTHON+= packages/Python/lldbsuite/test/redo.py | | | |
71 | REPLACE_PYTHON+= packages/Python/lldbsuite/test/test_runner/test/inferior.py | | | |
72 | REPLACE_PYTHON+= packages/Python/lldbsuite/test/test_runner/test/process_control_tests.py | | | |
73 | REPLACE_PYTHON+= scripts/Python/remote-build.py | | | |
74 | REPLACE_PYTHON+= scripts/buildbot.py | | | |
75 | REPLACE_PYTHON+= scripts/shush | | 51 | REPLACE_PYTHON+= scripts/shush |
76 | REPLACE_PYTHON+= scripts/verify_api.py | | | |
77 | REPLACE_PYTHON+= scripts/prepare_bindings.py | | | |
78 | REPLACE_PYTHON+= test/dotest.py | | | |
79 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/FSM.py | | | |
80 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/astat.py | | | |
81 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/bd_client.py | | | |
82 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/bd_serv.py | | | |
83 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/cgishell.cgi | | | |
84 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/chess.py | | | |
85 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/chess2.py | | | |
86 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/chess3.py | | | |
87 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/df.py | | | |
88 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/fix_cvs_files.py | | | |
89 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/ftp.py | | | |
90 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/hive.py | | | |
91 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/monitor.py | | | |
92 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/passmass.py | | | |
93 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/python.py | | | |
94 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/rippy.py | | | |
95 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/script.py | | | |
96 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/ssh_tunnel.py | | | |
97 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/sshls.py | | | |
98 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/topip.py | | | |
99 | REPLACE_PYTHON+= third_party/Python/module/pexpect-2.4/examples/uptime.py | | | |
100 | REPLACE_PYTHON+= third_party/Python/module/progress/progress.py | | | |
101 | REPLACE_PYTHON+= utils/git-svn/convert.py | | | |
102 | REPLACE_PYTHON+= utils/lui/lui.py | | | |
103 | REPLACE_PYTHON+= utils/lui/sandbox.py | | | |
104 | REPLACE_PYTHON+= utils/misc/grep-svn-log.py | | | |
105 | REPLACE_PYTHON+= utils/sync-source/syncsource.py | | | |
106 | REPLACE_PYTHON+= utils/test/disasm.py | | | |
107 | REPLACE_PYTHON+= utils/test/lldb-disasm.py | | | |
108 | REPLACE_PYTHON+= utils/test/llvm-mc-shell.py | | | |
109 | REPLACE_PYTHON+= utils/test/ras.py | | | |
110 | REPLACE_PYTHON+= utils/test/run-dis.py | | | |
111 | REPLACE_PYTHON+= utils/test/run-until-faulted.py | | | |
112 | | | 52 | |
113 | TEST_TARGET= check-lldb | | 53 | TEST_TARGET= check-lldb |
114 | TEST_ENV+= LD_LIBRARY_PATH=${WRKDIR}/build/lib | | 54 | TEST_ENV+= LD_LIBRARY_PATH=${WRKDIR}/build/lib |
115 | | | 55 | |
116 | .include "../../mk/bsd.prefs.mk" | | 56 | .include "../../mk/bsd.prefs.mk" |
117 | | | 57 | |
118 | PLIST_VARS+= posix | | 58 | PLIST_VARS+= posix |
119 | .if ${OPSYS} != "Darwin" | | 59 | .if ${OPSYS} != "Darwin" |
120 | PLIST.posix= yes | | 60 | PLIST.posix= yes |
121 | .endif | | 61 | .endif |
122 | | | 62 | |
123 | .if ${OPSYS} == "NetBSD" | | 63 | .if ${OPSYS} == "NetBSD" |
124 | . if exists(/usr/include/panel.h) | | 64 | . if exists(/usr/include/panel.h) |