summaryrefslogtreecommitdiff
path: root/graphics/gimp2-wideangle
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-03 23:11:15 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-03 23:11:15 +0000
commitb51bce323aaaa2be0fc81b26c6cabe444edad096 (patch)
treeeb337fe1cfa07e4af9a22f748ee53fc3c96e10b3 /graphics/gimp2-wideangle
parentcd1681b8c6dd923a41087256f51f1913486ceb22 (diff)
downloadpkgsrc-b51bce323aaaa2be0fc81b26c6cabe444edad096.tar.gz
DESTDIR support
Diffstat (limited to 'graphics/gimp2-wideangle')
-rw-r--r--graphics/gimp2-wideangle/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/graphics/gimp2-wideangle/Makefile b/graphics/gimp2-wideangle/Makefile
index cd7e598cde2..f574019385b 100644
--- a/graphics/gimp2-wideangle/Makefile
+++ b/graphics/gimp2-wideangle/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2010/01/18 09:59:01 wiz Exp $
+# $NetBSD: Makefile,v 1.26 2010/02/03 23:19:10 joerg Exp $
#
DISTNAME= wideangle
@@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://members.ozemail.com.au/~hodsond/wideangle.html
COMMENT= GIMP plugin for wideangle lens distortions
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= pkg-config
DIST_SUBDIR= ${PKGNAME_NOREV}
@@ -23,7 +25,9 @@ do-build:
(cd ${WRKSRC} && LIBS=${LINK_PTHREAD:Q} gimptool-2.0 --build wideangle.c)
do-install:
- (cd ${WRKSRC} && gimptool-2.0 --install-admin-bin wideangle)
+ plugindir=`gimptool-2.0 --gimpplugindir` && \
+ ${INSTALL_DATA_DIR} ${DESTDIR}$${plugindir}/plug-ins && \
+ ${INSTALL_PROGRAM} ${WRKSRC}/wideangle ${DESTDIR}$${plugindir}/plug-ins
.include "../../graphics/gimp/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"