| @@ -1,17 +1,17 @@ | | | @@ -1,17 +1,17 @@ |
1 | # $NetBSD: Makefile,v 1.37 2020/03/20 11:58:28 nia Exp $ | | 1 | # $NetBSD: Makefile,v 1.38 2020/04/30 23:46:13 joerg Exp $ |
2 | | | 2 | |
3 | DISTNAME= openjade-1.3.2 | | 3 | DISTNAME= openjade-1.3.2 |
4 | PKGREVISION= 15 | | 4 | PKGREVISION= 16 |
5 | CATEGORIES= textproc | | 5 | CATEGORIES= textproc |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openjade/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openjade/} |
7 | | | 7 | |
8 | MAINTAINER= kogule@mars.dti.ne.jp | | 8 | MAINTAINER= kogule@mars.dti.ne.jp |
9 | HOMEPAGE= http://openjade.sourceforge.net/ | | 9 | HOMEPAGE= http://openjade.sourceforge.net/ |
10 | COMMENT= SGML/XML parser toolkit and DSSSL engine, successor to "jade" | | 10 | COMMENT= SGML/XML parser toolkit and DSSSL engine, successor to "jade" |
11 | LICENSE= mit | | 11 | LICENSE= mit |
12 | | | 12 | |
13 | MAKE_JOBS_SAFE= no | | 13 | MAKE_JOBS_SAFE= no |
14 | | | 14 | |
15 | USE_LANGUAGES= c c++03 | | 15 | USE_LANGUAGES= c c++03 |
16 | USE_LIBTOOL= yes | | 16 | USE_LIBTOOL= yes |
17 | USE_TOOLS+= gmake perl | | 17 | USE_TOOLS+= gmake perl |
| @@ -35,26 +35,29 @@ INSTALLATION_DIRS= ${OPENJADE_DATA_DIR}/ | | | @@ -35,26 +35,29 @@ INSTALLATION_DIRS= ${OPENJADE_DATA_DIR}/ |
35 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69534#c9 | | 35 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69534#c9 |
36 | # | | 36 | # |
37 | # Because of code in openjade that does not conform to standards, some | | 37 | # Because of code in openjade that does not conform to standards, some |
38 | # versions of gcc produce an openjade binary that segfaults. Examples | | 38 | # versions of gcc produce an openjade binary that segfaults. Examples |
39 | # are building postgresql95-docs (gcc version ?) and building the | | 39 | # are building postgresql95-docs (gcc version ?) and building the |
40 | # pkgsrc guide (gcc 7 and 8 on NetBSD/amd). | | 40 | # pkgsrc guide (gcc 7 and 8 on NetBSD/amd). |
41 | # | | 41 | # |
42 | # Bug report about openjade built with gcc crashing for postgresql | | 42 | # Bug report about openjade built with gcc crashing for postgresql |
43 | # https://bugzilla.redhat.com/show_bug.cgi?id=1306162 | | 43 | # https://bugzilla.redhat.com/show_bug.cgi?id=1306162 |
44 | # | | 44 | # |
45 | # Work around the openjade bug by asking gcc not to eliminate the dead | | 45 | # Work around the openjade bug by asking gcc not to eliminate the dead |
46 | # stores that openjade relies on. | | 46 | # stores that openjade relies on. |
47 | # | | 47 | # |
| | | 48 | # Similar problems are seen with clang, so also mark the variable as |
| | | 49 | # volatile. |
| | | 50 | # |
48 | .include "../../mk/compiler.mk" | | 51 | .include "../../mk/compiler.mk" |
49 | .if !empty(PKGSRC_COMPILER:Mgcc) | | 52 | .if !empty(PKGSRC_COMPILER:Mgcc) |
50 | CFLAGS+= -fno-tree-dse | | 53 | CFLAGS+= -fno-tree-dse |
51 | .endif | | 54 | .endif |
52 | | | 55 | |
53 | post-install: | | 56 | post-install: |
54 | ${INSTALL_DATA} ${WRKSRC}/dsssl/* ${DESTDIR}${OPENJADE_DATA_DIR} | | 57 | ${INSTALL_DATA} ${WRKSRC}/dsssl/* ${DESTDIR}${OPENJADE_DATA_DIR} |
55 | ${INSTALL_DATA} ${WRKSRC}/pubtext/* ${DESTDIR}${OPENJADE_DATA_DIR}/pubtext | | 58 | ${INSTALL_DATA} ${WRKSRC}/pubtext/* ${DESTDIR}${OPENJADE_DATA_DIR}/pubtext |
56 | ${INSTALL_DATA} ${WRKSRC}/doc/*.htm ${DESTDIR}${OPENJADE_DOC_DIR}/doc | | 59 | ${INSTALL_DATA} ${WRKSRC}/doc/*.htm ${DESTDIR}${OPENJADE_DOC_DIR}/doc |
57 | ${INSTALL_DATA} ${WRKSRC}/jadedoc/copying.txt ${DESTDIR}${OPENJADE_DOC_DIR}/jadedoc | | 60 | ${INSTALL_DATA} ${WRKSRC}/jadedoc/copying.txt ${DESTDIR}${OPENJADE_DOC_DIR}/jadedoc |
58 | ${INSTALL_DATA} ${WRKSRC}/jadedoc/*.htm ${DESTDIR}${OPENJADE_DOC_DIR}/jadedoc | | 61 | ${INSTALL_DATA} ${WRKSRC}/jadedoc/*.htm ${DESTDIR}${OPENJADE_DOC_DIR}/jadedoc |
59 | ${INSTALL_DATA} ${WRKSRC}/jadedoc/images/* ${DESTDIR}${OPENJADE_DOC_DIR}/jadedoc/images | | 62 | ${INSTALL_DATA} ${WRKSRC}/jadedoc/images/* ${DESTDIR}${OPENJADE_DOC_DIR}/jadedoc/images |
60 | | | 63 | |