diff options
author | joerg <joerg> | 2010-02-12 00:00:45 +0000 |
---|---|---|
committer | joerg <joerg> | 2010-02-12 00:00:45 +0000 |
commit | 3d4c71250b880c01783e2483fae54e13801533b0 (patch) | |
tree | 51698fe5fbb0ecf940c83f4f9bb9332a4c5999df /print/rtf2latex | |
parent | 75db0a8d4d8c1b10e90f51a0827f26c0c9eabfac (diff) | |
download | pkgsrc-3d4c71250b880c01783e2483fae54e13801533b0.tar.gz |
DESTDIR support
Diffstat (limited to 'print/rtf2latex')
-rw-r--r-- | print/rtf2latex/Makefile | 6 | ||||
-rw-r--r-- | print/rtf2latex/files/Makefile | 12 |
2 files changed, 11 insertions, 7 deletions
diff --git a/print/rtf2latex/Makefile b/print/rtf2latex/Makefile index 74a9383d709..e177dec8c08 100644 --- a/print/rtf2latex/Makefile +++ b/print/rtf2latex/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2006/03/04 21:30:31 jlam Exp $ +# $NetBSD: Makefile,v 1.14 2010/02/12 00:08:35 joerg Exp $ DISTNAME= rtf2LaTeX.1.5 PKGNAME= rtf2latex-1.5 @@ -8,6 +8,8 @@ MASTER_SITES= ftp://ftp.dante.de/pub/tex/support/rtf2latex/ MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Filter that converts RTF (MS's Rich Text Format) into LaTeX +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR}/rtf2LaTeX NO_CONFIGURE= yes @@ -20,4 +22,6 @@ post-extract: MAKE_ENV+= XCFLAGS="${CPPFLAGS} -DSYSV" CC=${CC:Q} .endif +INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 + .include "../../mk/bsd.pkg.mk" diff --git a/print/rtf2latex/files/Makefile b/print/rtf2latex/files/Makefile index c437b2da429..748d2ea7c0a 100644 --- a/print/rtf2latex/files/Makefile +++ b/print/rtf2latex/files/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 1998/12/30 18:00:03 tron Exp $ +# $NetBSD: Makefile,v 1.3 2010/02/12 00:08:35 joerg Exp $ SHELL=/bin/sh INSTALL_PROGRAM=${BSD_INSTALL_PROGRAM} @@ -25,7 +25,7 @@ LD=cc -s # This is where executables, man-pages and support files are installed BINDIR = ${PREFIX}/bin -MANDIR = ${PREFIX}/man/man1 +MANDIR = ${PREFIX}/${PKGMANDIR}/man1 RTFDIR = ${PREFIX}/share/rtf ############### No configuration parameters below this line ############### @@ -45,10 +45,10 @@ all: rtf2LaTeX rtf2LaTeX: $(LATEXOBJS) $(LD) $(LDFLAGS) -o $@ $(LATEXOBJS) install: rtf2LaTeX $(DOCFILS) $(SUPPORT) - $(INSTALL_PROGRAM) rtf2LaTeX $(BINDIR) - $(INSTALL_MAN) rtf2LaTeX.man $(MANDIR)/rtf2LaTeX.1 - -mkdir $(RTFDIR) - $(INSTALL_DATA) ansi.code mac.code german.land english.land $(RTFDIR) + $(INSTALL_PROGRAM) rtf2LaTeX ${DESTDIR}$(BINDIR) + $(INSTALL_MAN) rtf2LaTeX.man ${DESTDIR}$(MANDIR)/rtf2LaTeX.1 + -mkdir ${DESTDIR}$(RTFDIR) + $(INSTALL_DATA) ansi.code mac.code german.land english.land ${DESTDIR}$(RTFDIR) tags: etags -et *.[ch] clean:: |