[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / textproc / jade

File: [cvs.NetBSD.org] / pkgsrc / textproc / jade / Attic / Makefile (download)

Revision 1.52, Mon Apr 8 11:17:23 2013 UTC (11 years ago) by rodent
Branch: MAIN
CVS Tags: pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2
Changes since 1.51: +2 -2 lines

Remove "Trailing empty lines." and/or "Trailing white-space."

# $NetBSD: Makefile,v 1.52 2013/04/08 11:17:23 rodent Exp $

DISTNAME=	jade-1.2.1
PKGREVISION=	13
CATEGORIES=	textproc
MASTER_SITES=	ftp://ftp.jclark.com/pub/jade/ \
		ftp://ftp.funet.fi/pub/mirrors/ftp.jclark.com/pub/jade/

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

MAKE_JOBS_SAFE=		no

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

CONFLICTS+=	sp-[0-9]*

USE_LANGUAGES=		c c++
USE_TOOLS+=		gmake m4
GNU_CONFIGURE=		YES
USE_LIBTOOL=		YES

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

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

CXXFLAGS+=		${CFLAGS}

INSTALLATION_DIRS=	include/sp lib share/doc/jade share/sgml/jade

post-patch:
	chmod -R +w ${WRKSRC}
	find ${WRKSRC} -name '*.orig' -size 0c -type f -exec rm {} \;
	find ${WRKSRC} -name '*.orig_dist' -size 0c -type f -exec rm {} \;

post-install:
	set -e;								\
	for prog in jade nsgmls sgmlnorm spam spent sx; do		\
		${ECHO_MSG} "strip ${DESTDIR}${PREFIX}/bin/$${prog}";		\
		strip "${DESTDIR}${PREFIX}/bin/$${prog}";				\
	done
	${INSTALL_DATA} ${WRKSRC}/include/*.cxx ${WRKSRC}/include/*.h \
	  ${DESTDIR}${PREFIX}/include/sp
	${INSTALL_DATA} ${WRKSRC}/jadedoc/*.htm ${DESTDIR}${PREFIX}/share/doc/jade
	${INSTALL_DATA} ${WRKSRC}/dsssl/* ${DESTDIR}${PREFIX}/share/sgml/jade
# Installed by print/tex-jadetex
	rm ${DESTDIR}${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