summaryrefslogtreecommitdiff
path: root/devel/pthread-stublib
diff options
context:
space:
mode:
authorjoerg <joerg>2008-01-12 12:35:39 +0000
committerjoerg <joerg>2008-01-12 12:35:39 +0000
commit321c4477475b7b682977f37ed4b383320ee0799f (patch)
treec798bf07d9dc7e723d2772dceee231c78512f50f /devel/pthread-stublib
parentdca4252c4ad3cc44f3cf85cdc634bf7fee580907 (diff)
downloadpkgsrc-321c4477475b7b682977f37ed4b383320ee0799f.tar.gz
Fix installation and add DESTDIR support.
Diffstat (limited to 'devel/pthread-stublib')
-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