| @@ -1,52 +1,52 @@ | | | @@ -1,52 +1,52 @@ |
1 | # $NetBSD: Makefile,v 1.18 2024/01/02 00:43:09 ryoon Exp $ | | 1 | # $NetBSD: Makefile,v 1.19 2024/05/08 11:37:51 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= ghdl-3.0.0 | | 3 | DISTNAME= ghdl-3.0.0 |
4 | PKGREVISION= 2 | | 4 | PKGREVISION= 2 |
5 | CATEGORIES= cad | | 5 | CATEGORIES= cad |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=ghdl/} | | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=ghdl/} |
7 | GITHUB_PROJECT= ghdl | | 7 | GITHUB_PROJECT= ghdl |
8 | GITHUB_TAG= v${PKGVERSION_NOREV} | | 8 | GITHUB_TAG= v${PKGVERSION_NOREV} |
9 | | | 9 | |
10 | MAINTAINER= ryoon@NetBSD.org | | 10 | MAINTAINER= ryoon@NetBSD.org |
11 | HOMEPAGE= https://ghdl.github.io/ghdl/ | | 11 | HOMEPAGE= https://ghdl.github.io/ghdl/ |
12 | COMMENT= Open-source simulator/compiler/analyzer for the VHDL | | 12 | COMMENT= Open-source simulator/compiler/analyzer for the VHDL |
13 | LICENSE= gnu-gpl-v2 | | 13 | LICENSE= gnu-gpl-v2 |
14 | | | 14 | |
15 | #BROKEN= "Does not support llvm 16." | | 15 | BROKEN= "Does not support llvm 17." |
16 | | | 16 | |
17 | USE_TOOLS+= bash:run gmake | | 17 | USE_TOOLS+= bash:run gmake |
18 | | | 18 | |
19 | USE_LANGUAGES+= c c++ # ada | | 19 | USE_LANGUAGES+= c c++ # ada |
20 | | | 20 | |
21 | # lang/gcc10-aux does not support RELRO | | 21 | # lang/gcc10-aux does not support RELRO |
22 | # and this package should use same condition. | | 22 | # and this package should use same condition. |
23 | RELRO_SUPPORTED= no | | 23 | RELRO_SUPPORTED= no |
24 | MKPIE_SUPPORTED= no | | 24 | MKPIE_SUPPORTED= no |
25 | | | 25 | |
26 | REPLACE_BASH= scripts/vendors/*.sh | | 26 | REPLACE_BASH= scripts/vendors/*.sh |
27 | ## This approach to use __time50() and __ctime50() is unavailable | | 27 | ## This approach to use __time50() and __ctime50() is unavailable |
28 | ## because Ada language would not accept symbols start with '_'. | | 28 | ## because Ada language would not accept symbols start with '_'. |
29 | #.include "../../mk/bsd.prefs.mk" | | 29 | #.include "../../mk/bsd.prefs.mk" |
30 | #.if ${OPSYS} == "NetBSD" | | 30 | #.if ${OPSYS} == "NetBSD" |
31 | #SUBST_CLASSES+= time | | 31 | #SUBST_CLASSES+= time |
32 | #SUBST_STAGE.time= pre-configure | | 32 | #SUBST_STAGE.time= pre-configure |
33 | #SUBST_MESSAGE.time= Use correct functions in time.h | | 33 | #SUBST_MESSAGE.time= Use correct functions in time.h |
34 | #SUBST_FILES.time+= src/grt/grt-vcd.adb | | 34 | #SUBST_FILES.time+= src/grt/grt-vcd.adb |
35 | #SUBST_SED.time+= -e 's/pragma Import (C, time);/pragma Import (C, __time50);/g' | | 35 | #SUBST_SED.time+= -e 's/pragma Import (C, time);/pragma Import (C, __time50);/g' |
36 | #SUBST_SED.time+= -e 's/pragma Import (C, ctime);/pragma Import (C, __ctime50);/g' | | 36 | #SUBST_SED.time+= -e 's/pragma Import (C, ctime);/pragma Import (C, __ctime50);/g' |
37 | #.endif | | 37 | #.endif |
38 | | | 38 | |
39 | HAS_CONFIGURE= yes | | 39 | HAS_CONFIGURE= yes |
40 | CONFIGURE_ENV+= GNATMAKE=${PREFIX}/gcc10-aux/bin/gnatmake | | 40 | CONFIGURE_ENV+= GNATMAKE=${PREFIX}/gcc10-aux/bin/gnatmake |
41 | CONFIGURE_ARGS+= --prefix=${PREFIX} | | 41 | CONFIGURE_ARGS+= --prefix=${PREFIX} |
42 | CONFIGURE_ARGS+= --enable-synth | | 42 | CONFIGURE_ARGS+= --enable-synth |
43 | CONFIGURE_ARGS+= --enable-libghdl | | 43 | CONFIGURE_ARGS+= --enable-libghdl |
44 | # Select LLVM backend | | 44 | # Select LLVM backend |
45 | CONFIGURE_ARGS+= --with-llvm-config=${PREFIX}/bin/llvm-config | | 45 | CONFIGURE_ARGS+= --with-llvm-config=${PREFIX}/bin/llvm-config |
46 | | | 46 | |
47 | BUILDLINK_DEPMETHOD.clang= build | | 47 | BUILDLINK_DEPMETHOD.clang= build |
48 | .include "../../lang/clang/buildlink3.mk" | | 48 | .include "../../lang/clang/buildlink3.mk" |
49 | .include "../../lang/llvm/buildlink3.mk" | | 49 | .include "../../lang/llvm/buildlink3.mk" |
50 | # GNAT 8.1 or later is required for --enable-synth. | | 50 | # GNAT 8.1 or later is required for --enable-synth. |
51 | .include "../../lang/gcc10-aux/buildlink3.mk" | | 51 | .include "../../lang/gcc10-aux/buildlink3.mk" |
52 | .include "../../mk/bsd.pkg.mk" | | 52 | .include "../../mk/bsd.pkg.mk" |