From 2feac47061d2a49881ff4cacc7a100e96208b604 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Sun, 16 May 2010 06:06:12 +0000 Subject: [PATCH] Fixed jgmod-0.99.bep to properly use DESTDIR --- media-libs/jgmod/jgmod-0.99.bep | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/media-libs/jgmod/jgmod-0.99.bep b/media-libs/jgmod/jgmod-0.99.bep index 8f3345de2..e1f28eddd 100644 --- a/media-libs/jgmod/jgmod-0.99.bep +++ b/media-libs/jgmod/jgmod-0.99.bep @@ -19,7 +19,15 @@ BUILD { INSTALL { cd jgmod/src - make install \ - CPLIBDEST=/boot/common/lib \ - CPINCDEST=/boot/common/include + if [ -n ${DESTDIR} ];then + mkdir -p ${DESTDIR}/boot/common/lib + mkdir -p ${DESTDIR}/boot/common/include + make install \ + CPLIBDEST=${DESTDIR}/boot/common/lib \ + CPINCDEST=${DESTDIR}/boot/common/include + else + make install \ + CPLIBDEST=/boot/common/lib \ + CPINCDEST=/boot/common/include + fi }