summaryrefslogtreecommitdiff
path: root/print/hpijs/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-27 13:33:02 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-27 13:33:02 +0000
commitdf9ef3d934241cd721456a3f242a26a8aaba67f6 (patch)
treee86910222647d76f5e2bd4897079074582eb18f7 /print/hpijs/Makefile
parent9310ccc9b6b5914e821612b4d25b89bfed98e72c (diff)
downloadpkgsrc-df9ef3d934241cd721456a3f242a26a8aaba67f6.tar.gz
DESTDIR support.
Diffstat (limited to 'print/hpijs/Makefile')
-rw-r--r--print/hpijs/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/print/hpijs/Makefile b/print/hpijs/Makefile
index 8231ef70bf6..80dcb3000f2 100644
--- a/print/hpijs/Makefile
+++ b/print/hpijs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2010/01/18 09:59:22 wiz Exp $
+# $NetBSD: Makefile,v 1.28 2010/01/27 13:42:20 joerg Exp $
DISTNAME= hpijs-2.1.4
PKGREVISION= 2
@@ -9,6 +9,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://hpinkjet.sourceforge.net/
COMMENT= HP inkjet printer driver server
+PKG_DESTDIR_SUPPORT= user-destdir
+
CONFLICTS= ghostscript<=6.01nb4 ghostscript-nox11<=6.01nb4
USE_LANGUAGES= c c++
@@ -17,16 +19,14 @@ CPPFLAGS+= -DAPDK_BUFFER_SEND
USE_TOOLS+= gzip
ONLY_FOR_COMPILER= gcc
-INSTALLATION_DIRS= bin
+INSTALLATION_DIRS= bin share/ppd share/doc/html/hpijs
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/ppd
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/hpijs
- cd ${WRKSRC} && ${CP} hpijs ${PREFIX}/bin/hpijs
- cd ${WRKSRC} && ${CP} hpijs_readme.html gs_hpijs.png \
- ${PREFIX}/share/doc/html/hpijs/
- cd ${WRKSRC} && ${CP} ppd/HP* ${PREFIX}/share/ppd/
- ${GZIP_CMD} ${PREFIX}/share/ppd/HP*.ppd
+ ${INSTALL_PROGRAM} ${WRKSRC}/hpijs ${DESTDIR}${PREFIX}/bin/hpijs
+ cd ${WRKSRC} && ${INSTALL_DATA} hpijs_readme.html gs_hpijs.png \
+ ${DESTDIR}${PREFIX}/share/doc/html/hpijs/
+ ${INSTALL_DATA} ${WRKSRC}/ppd/HP* ${DESTDIR}${PREFIX}/share/ppd/
+ ${GZIP_CMD} ${DESTDIR}${PREFIX}/share/ppd/HP*.ppd
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"