summaryrefslogtreecommitdiff
path: root/chat/aim
diff options
context:
space:
mode:
authorjoerg <joerg>2010-06-25 21:05:57 +0000
committerjoerg <joerg>2010-06-25 21:05:57 +0000
commit0beaa3a399547ec03bcde70d4c1d505bc22dd77e (patch)
treed6b0dd7caecc116eb3f0db71e3b7f6697b562dc5 /chat/aim
parenta2ec844dfc8d0fca68ff32f2c2432441f58221fd (diff)
downloadpkgsrc-0beaa3a399547ec03bcde70d4c1d505bc22dd77e.tar.gz
DESTDIR support
Diffstat (limited to 'chat/aim')
-rw-r--r--chat/aim/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/chat/aim/Makefile b/chat/aim/Makefile
index a4f92c270d1..27e26ea4ea7 100644
--- a/chat/aim/Makefile
+++ b/chat/aim/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2007/12/12 20:42:28 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2010/06/25 21:11:42 joerg Exp $
DISTNAME= aim-1.5.286-1.i386
PKGNAME= aim-1.5.286
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.aim.com/
COMMENT= AOL Instant Messenger (SM)
+PKG_DESTDIR_SUPPORT= user-destdir
+
EMUL_PLATFORMS= linux-i386
EMUL_MODULES.linux= base compat x11 gtk
@@ -27,7 +29,7 @@ WRKSRC= ${WRKDIR}
BUILD_DIRS= # empty
EMUL_PKG_FMT= rpm
-RPM2PKG_PREFIX= ${PREFIX}
+RPM2PKG_PREFIX= ${DESTDIR}${PREFIX}
RPM2PKG_SUBPREFIX= ${EMULSUBDIR}
.if (${OPSYS} == "Linux") && (${LOCALBASE} == "/usr")
RPM2PKG_STRIP= 1
@@ -40,7 +42,7 @@ INSTALLATION_DIRS= bin
.if ${OPSYS} != "Linux"
post-install:
- ${LN} -fs ${EMULDIR}/usr/bin/aim ${PREFIX}/bin/aim
+ ${LN} -fs ${EMULDIR}/usr/bin/aim ${DESTDIR}${PREFIX}/bin/aim
${ECHO} "bin/aim" >> ${RPM2PKG_PLIST}
.endif