summaryrefslogtreecommitdiff
path: root/textproc/jade/Makefile
blob: a336d09fc0473ce63065ffcb0216c26e68a1713d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# $NetBSD: Makefile,v 1.34 2004/05/12 21:57:21 grant Exp $

DISTNAME=	jade-1.2.1
PKGREVISION=	8
CATEGORIES=	textproc
MASTER_SITES=	ftp://ftp.jclark.com/pub/jade/ \
		ftp://ftp.funet.fi/pub/mirrors/ftp.jclark.com/pub/jade/ \
		ftp://ftp.u-aizu.ac.jp/pub/lang/sgml/jade/

MAINTAINER=	rh@NetBSD.org
HOMEPAGE=	http://www.jclark.com/jade/
COMMENT=	Object-oriented SGML/XML parser toolkit and DSSSL engine

PATCH_SITES=		${MASTER_SITE_LOCAL}
PATCHFILES=		jade_1.2.1-18.diff.gz
PATCH_DIST_STRIP=	-p1

CONFLICTS+=	sp-[0-9]*

USE_BUILDLINK3=		yes
USE_LANGUAGES=		c c++
USE_GNU_TOOLS+=		make
GNU_CONFIGURE=		YES
USE_LIBTOOL=		YES
LTCONFIG_OVERRIDE=	${WRKSRC}/config/ltconfig

SGML_CATALOGS=		${PREFIX}/share/sgml/jade/catalog

CONFIGURE_ARGS=		--enable-default-catalog=${PREFIX}/share/sgml/jade/catalog
CONFIGURE_ARGS+=	--enable-mif

CXXFLAGS+=		${CFLAGS}

post-patch:
	@${CHMOD} -R +w ${WRKSRC}
	@${FIND} ${WRKSRC} -name '*.orig' -size 0c -type f -exec ${RM} {} \;

post-install:
	@for prog in jade nsgmls sgmlnorm spam spent sx; do		\
		${ECHO_MSG} "strip ${PREFIX}/bin/$${prog}";		\
		strip ${PREFIX}/bin/$${prog};				\
	done
	${INSTALL_DATA_DIR} ${PREFIX}/include/sp
	${INSTALL_DATA} ${WRKSRC}/include/*.cxx ${WRKSRC}/include/*.h \
	  ${PREFIX}/include/sp
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jade
	${INSTALL_DATA} ${WRKSRC}/jadedoc/*.htm ${PREFIX}/share/doc/jade
	${INSTALL_DATA_DIR} ${PREFIX}/share/sgml/jade
	${INSTALL_DATA} ${WRKSRC}/dsssl/* ${PREFIX}/share/sgml/jade
# Installed by print/tex-jadetex
	${RM} ${PREFIX}/share/sgml/jade/*jadetex.*

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../textproc/xmlcatmgr/catalogs.mk"
.include "../../mk/bsd.pkg.mk"

# Turn off C++ optimization as there seem to be problems with the generated
# code: jade dumps core on some files if compiled with -O2.  This might be
# a compiler bug, or something deep inside the code...
#
# This is placed after the inclusion of bsd.pkg.mk to force this option to
# be the last optimization flag specified.
#
CXXFLAGS+=		-O0