summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorobache <obache>2011-02-22 08:16:00 +0000
committerobache <obache>2011-02-22 08:16:00 +0000
commit85420b6acb3118e4a8d8916a1ba89c0f6a4a6173 (patch)
tree1501ffee58c78f68b8377c754f8a6ab34c23d9a8 /chat
parenta1e6903d53614ac199912444d86a9be72e92c841 (diff)
downloadpkgsrc-85420b6acb3118e4a8d8916a1ba89c0f6a4a6173.tar.gz
Add user-destdir installation support.
Diffstat (limited to 'chat')
-rw-r--r--chat/ymessenger/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/chat/ymessenger/Makefile b/chat/ymessenger/Makefile
index f74006c42f5..4e9b6aa88e2 100644
--- a/chat/ymessenger/Makefile
+++ b/chat/ymessenger/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2009/05/19 08:59:05 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2011/02/22 08:16:00 obache Exp $
DISTNAME= rh9.ymessenger-1.0.4-1.i386
PKGNAME= ymessenger-1.0.4
@@ -17,6 +17,8 @@ NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
+PKG_DESTDIR_SUPPORT= user-destdir
+
EMUL_PLATFORMS= linux-i386
EMUL_MODULES.linux= compat gtk gdk-pixbuf
@@ -24,7 +26,7 @@ WRKSRC= ${WRKDIR}
BUILD_DIRS= # empty
EMUL_PKG_FMT= rpm
-RPM2PKG_PREFIX= ${PREFIX}
+RPM2PKG_PREFIX= ${DESTDIR}${PREFIX}
RPM2PKG_SUBPREFIX= ${EMULSUBDIR}
RPM2PKG_STAGE= do-install
RPMIGNOREFILES= ./usr
@@ -32,9 +34,11 @@ RPMIGNOREFILES= ./usr
EMUL_YMESSENGER= ${EMULDIR}/opt/ymessenger/bin/ymessenger
YMESSENGER= ${PREFIX}/bin/ymessenger
+INSTALLATION_DIRS+= bin
+
post-install:
${SED} '1 s,bin,${EMULSUBDIRSLASH}bin,' \
- ${EMUL_YMESSENGER} > ${YMESSENGER}
- ${CHMOD} 755 ${YMESSENGER}
+ ${DESTDIR}${EMUL_YMESSENGER} > ${DESTDIR}${YMESSENGER}
+ ${CHMOD} 755 ${DESTDIR}${YMESSENGER}
.include "../../mk/bsd.pkg.mk"