summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-03-21 12:27:11 +0000
committerobache <obache@pkgsrc.org>2011-03-21 12:27:11 +0000
commit599280298893cad38819c284dcbf1c7973a85513 (patch)
tree604f53a31eeff449bcd2251082c1222abe964999 /devel
parentbc173bc0462a67e6790a021283c2c91dcd91f0d3 (diff)
downloadpkgsrc-599280298893cad38819c284dcbf1c7973a85513.tar.gz
Add destdir installation support.
Diffstat (limited to 'devel')
-rw-r--r--devel/pwlib/Makefile27
1 files changed, 17 insertions, 10 deletions
diff --git a/devel/pwlib/Makefile b/devel/pwlib/Makefile
index 3834171b3ba..2331d2a3602 100644
--- a/devel/pwlib/Makefile
+++ b/devel/pwlib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.63 2010/01/17 12:02:14 wiz Exp $
+# $NetBSD: Makefile,v 1.64 2011/03/21 12:27:11 obache Exp $
DISTNAME= pwlib-v1_8_3-src
PKGNAME= pwlib-1.8.3
@@ -14,6 +14,8 @@ COMMENT= Portable Windows Library
NOT_FOR_PLATFORM+= ${LP64PLATFORMS}
+PKG_DESTDIR_SUPPORT= destdir
+
WRKSRC= ${WRKDIR}/pwlib
USE_TOOLS+= bison gmake
USE_LANGUAGES= c c++
@@ -40,19 +42,24 @@ post-extract:
mkdir ${WRKSRC}/share
${LN} -s ../../pwlib ${WRKSRC}/share/pwlib
-do-install:
- cd ${WRKSRC}/src/ptlib/unix && ${MAKE_ENV} ${GMAKE} install
- ${INSTALL_DATA_DIR} ${PREFIX}/share/pwlib/make
- ${INSTALL_DATA_DIR} ${PREFIX}/include/ptclib
- ${INSTALL_DATA_DIR} ${PREFIX}/include/ptlib/unix/ptlib
- cd ${WRKSRC}/make; ${INSTALL_SCRIPT} ptlib-config ${PREFIX}/bin; \
+INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX}
+
+INSTALL_DIRS= src/ptlib/unix
+
+INSTALLATION_DIRS+= bin lib
+
+post-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/pwlib/make
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/ptclib
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/ptlib/unix/ptlib
+ cd ${WRKSRC}/make; ${INSTALL_SCRIPT} ptlib-config ${DESTDIR}${PREFIX}/bin; \
for f in *.mak; do \
- ${INSTALL_DATA} $$f ${PREFIX}/share/pwlib/make; \
+ ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/share/pwlib/make; \
done
- ${INSTALL_DATA} ${WRKSRC}/version.h ${PREFIX}/include/ptlib
+ ${INSTALL_DATA} ${WRKSRC}/version.h ${DESTDIR}${PREFIX}/include/ptlib
cd ${WRKSRC}; \
for f in `${FIND} include -name CVS -prune -o -name \*.orig -prune -o -name wince -prune -o -name msos -prune -o -type f -print`; do \
- ${INSTALL_DATA} $$f ${PREFIX}/$$f; \
+ ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/$$f; \
done
.include "../../security/openssl/buildlink3.mk"