summaryrefslogtreecommitdiff
path: root/archivers/unrar
diff options
context:
space:
mode:
authorfredb <fredb@pkgsrc.org>2003-10-08 23:54:07 +0000
committerfredb <fredb@pkgsrc.org>2003-10-08 23:54:07 +0000
commit8520e945aad805766ee9b254a9a3264c674b1401 (patch)
treece107917325458cac000f5954ad5f0970f832899 /archivers/unrar
parent587719f3565eddfd4a6efe0596d921665f71ef02 (diff)
downloadpkgsrc-8520e945aad805766ee9b254a9a3264c674b1401.tar.gz
Conditionally override ${DEFINES}, which is normally set in the default
makefile, to unset -D_LARGEFILE_SOURCE in the least intrusive way for supported platforms which don't have ftello() and fseeko() -- currently only NetBSD-1.5*. Closes PR pkg/23085 by Markus Kurek.
Diffstat (limited to 'archivers/unrar')
-rw-r--r--archivers/unrar/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/archivers/unrar/Makefile b/archivers/unrar/Makefile
index 1a7e01f6eef..4ebba4fe10b 100644
--- a/archivers/unrar/Makefile
+++ b/archivers/unrar/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2003/09/12 12:41:47 grant Exp $
+# $NetBSD: Makefile,v 1.23 2003/10/08 23:54:07 fredb Exp $
#
DISTNAME= unrarsrc-3.2.2
@@ -26,4 +26,14 @@ do-install:
cd ${WRKSRC} && ${INSTALL_DATA} readme.txt license.txt \
${PREFIX}/share/doc/unrar
+.include "../../mk/bsd.prefs.mk"
+
+# Don't set _LARGEFILE_SOURCE for platforms w/o ftello() and fseeko().
+#
+.for __glob__ in NetBSD-1.5*
+.if ${MACHINE_PLATFORM:M${__glob__}} != ""
+.MAKEFLAGS+= DEFINES=""
+.endif
+.endfor
+
.include "../../mk/bsd.pkg.mk"