summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-01-12 12:35:39 +0000
committerjoerg <joerg@pkgsrc.org>2008-01-12 12:35:39 +0000
commit904b4715271dad6946fc42bd9ce3d25a0ecfd5d9 (patch)
treec798bf07d9dc7e723d2772dceee231c78512f50f
parentf83ba07cf13dfc6e7af77b6517b9bad899d4d9a1 (diff)
downloadpkgsrc-904b4715271dad6946fc42bd9ce3d25a0ecfd5d9.tar.gz
Fix installation and add DESTDIR support.
-rw-r--r--devel/pthread-stublib/Makefile6
-rw-r--r--devel/pthread-stublib/files/Makefile4
2 files changed, 7 insertions, 3 deletions
diff --git a/devel/pthread-stublib/Makefile b/devel/pthread-stublib/Makefile
index 4f270a31b4f..fcebb622381 100644
--- a/devel/pthread-stublib/Makefile
+++ b/devel/pthread-stublib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/03/21 19:23:08 drochner Exp $
+# $NetBSD: Makefile,v 1.2 2008/01/12 12:35:39 joerg Exp $
DISTNAME= pthread-stublib-1.0
CATEGORIES= devel
@@ -13,6 +13,10 @@ USE_LIBTOOL= yes
ONLY_FOR_PLATFORM= NetBSD-[12].*-*
+PKG_DESTDIR_SUPPORT= user-destdir
+
+INSTALLATION_DIRS= lib
+
do-extract:
${CP} ${FILESDIR}/pthread-stubs.c ${FILESDIR}/Makefile ${WRKSRC}
diff --git a/devel/pthread-stublib/files/Makefile b/devel/pthread-stublib/files/Makefile
index ec4538a1a34..023abd19041 100644
--- a/devel/pthread-stublib/files/Makefile
+++ b/devel/pthread-stublib/files/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/03/21 19:23:08 drochner Exp $
+# $NetBSD: Makefile,v 1.2 2008/01/12 12:35:39 joerg Exp $
all: libpthstub.la
@@ -10,4 +10,4 @@ pthread-stubs.lo: pthread-stubs.c
install:
${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} libpthstub.la \
- ${PREFIX}/lib
+ ${DESTDIR}${PREFIX}/lib