summaryrefslogtreecommitdiff
path: root/sysutils/cdrtools
diff options
context:
space:
mode:
authortron <tron>2013-11-26 14:57:33 +0000
committertron <tron>2013-11-26 14:57:33 +0000
commit0c9342bf49eaf6d5732451f37cc4127db37da56d (patch)
tree3d5b3b823d31cfbe982ec2dc9644c550be3b71c3 /sysutils/cdrtools
parenteee23dc7ee94172251759abd13f9bb4bb46a4eab (diff)
downloadpkgsrc-0c9342bf49eaf6d5732451f37cc4127db37da56d.tar.gz
Fix build under NetBSD 6.0* and 6.1*.
Diffstat (limited to 'sysutils/cdrtools')
-rw-r--r--sysutils/cdrtools/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/sysutils/cdrtools/Makefile b/sysutils/cdrtools/Makefile
index eb34f21422c..7c7d8a67c4a 100644
--- a/sysutils/cdrtools/Makefile
+++ b/sysutils/cdrtools/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.100 2013/11/25 12:06:07 wiz Exp $
+# $NetBSD: Makefile,v 1.101 2013/11/26 14:57:33 tron Exp $
DISTNAME= cdrtools-3.01a19
PKGNAME= ${DISTNAME:S/a/alpha/:S/-pre/pre/}
@@ -27,6 +27,18 @@ USE_TOOLS+= gm4 gmake tbl
CFLAGS.NetBSD+= -DUSE_GETRAWPARTITION
LDFLAGS.NetBSD+= -lutil
+# NetBSD 6.0 (and update releases) have incomplete implemenations of the
+# "*at" system calls. Pretend that they aren't present at all to
+# avoid build failures.
+.if !empty(MACHINE_PLATFORM:MNetBSD-[5-6].*-*) && \
+ empty(MACHINE_PLATFORM:MNetBSD-6.99.*-*)
+. for FUNC in faccessat fchmodat fchownat fexecve fstatat linkat mkdirat \
+ mkfifoat mknodat openat readlinkat renameat symlinkat unlinkat \
+ utimensat
+CONFIGURE_ENV+= ac_cv_func_${FUNC}=no
+. endfor
+.endif
+
# avoid picking up a bad ${ARCH} during the build
MAKE_ENV+= ARCH=""
MAKE_ENV+= MAKEPROG="gmake"