summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-07-06 23:36:51 +0000
committerobache <obache@pkgsrc.org>2010-07-06 23:36:51 +0000
commitbc8d28f0e83a26f406d6b9044b6c8890a25b1bfd (patch)
tree73e3b3a02720a59517335ee80aaa5fa4aaf19369 /archivers
parent2cffc9fc5d80072e9970c4aa0134cc24b1232dd0 (diff)
downloadpkgsrc-bc8d28f0e83a26f406d6b9044b6c8890a25b1bfd.tar.gz
Add workaround of lack of hard link support on BFS of Haiku.
Use symbolic link instead.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/pax/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/archivers/pax/Makefile b/archivers/pax/Makefile
index 0727ce0249b..542d1d88479 100644
--- a/archivers/pax/Makefile
+++ b/archivers/pax/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2010/03/21 16:50:41 joerg Exp $
+# $NetBSD: Makefile,v 1.43 2010/07/06 23:36:51 obache Exp $
DISTNAME= pax-20080110
CATEGORIES= archivers
@@ -41,4 +41,12 @@ GNU_CONFIGURE= yes
do-extract:
${CP} -R ${FILESDIR} ${WRKSRC}
+# Haiku (BeFS) cannot support hard link
+.if ${OPSYS} == "Haiku"
+SUBST_CLASSES+= symlink
+SUBST_STAGE.symlink= pre-configure
+SUBST_FILES.symlink= Makefile.in
+SUBST_SED.symlink= -e 's,ln -f ,ln -sf ,g'
+.endif
+
.include "../../mk/bsd.pkg.mk"