pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/unrar Conditionally override ${DEFINES}, whi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d1e3133d1c73
branches:  trunk
changeset: 462687:d1e3133d1c73
user:      fredb <fredb%pkgsrc.org@localhost>
date:      Wed Oct 08 23:54:07 2003 +0000

description:
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:

 archivers/unrar/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 938cceee5156 -r d1e3133d1c73 archivers/unrar/Makefile
--- a/archivers/unrar/Makefile  Wed Oct 08 22:40:42 2003 +0000
+++ b/archivers/unrar/Makefile  Wed Oct 08 23:54:07 2003 +0000
@@ -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 @@
        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"



Home | Main Index | Thread Index | Old Index