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

File: [cvs.NetBSD.org] / pkgsrc / graphics / xdvipresent / Makefile (download)

Revision 1.18, Tue Mar 4 15:39:11 2008 UTC (11 years ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.17: +14 -11 lines

Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.

# $NetBSD: Makefile,v 1.18 2008/03/04 15:39:11 jlam Exp $
#

DISTNAME=	xdvipresent-0.6p14
PKGNAME=	xdvipresent-0.6.1.14
PKGREVISION=	5
CATEGORIES=	graphics textproc print x11
MASTER_SITES=	http://clip.dia.fi.upm.es/Software/

MAINTAINER=	jschauma@NetBSD.org
HOMEPAGE=	http://clip.dia.fi.upm.es/Software/
COMMENT=	Slide Presentations Using LaTeX/xdvi

DEPENDS+=	latex2html>=2002.2:../../textproc/latex2html

PKG_DESTDIR_SUPPORT=	user-destdir

WRKSRC=		${WRKDIR}/xdvipresent
NO_BUILD=	yes
NO_CONFIGURE=	yes
USE_DIRS+=	texmf-1.0

STYDIR=		${PKG_LOCALTEXMFPREFIX}/tex/latex/xdvipresent
EXAMPLES_DIR=	${PREFIX}/share/examples/xdvipresent
HTML_DIR=	${PREFIX}/share/doc/xdvipresent

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${STYDIR}
	${INSTALL_DATA} ${WRKSRC}/*.cls ${DESTDIR}${STYDIR}
	${INSTALL_DATA_DIR} ${DESTDIR}${STYDIR}/images
	${INSTALL_DATA} ${WRKSRC}/images/* ${DESTDIR}${STYDIR}/images
	${INSTALL_SCRIPT} ${WRKSRC}/xdvipresent ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/xdvipresent
	${INSTALL_DATA} ${WRKSRC}/example.tex ${DESTDIR}${EXAMPLES_DIR}
	${INSTALL_MAN} ${WRKSRC}/doc/xdvipresent.manl \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xdvipresent.1
	${INSTALL_DATA_DIR} ${DESTDIR}${HTML_DIR}
	${INSTALL_DATA} ${WRKSRC}/doc/xdvipresent_html/* ${DESTDIR}${HTML_DIR}

.include "../../print/teTeX/module.mk"
.include "../../mk/bsd.pkg.mk"