summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubertf <hubertf>2000-09-25 12:47:44 +0000
committerhubertf <hubertf>2000-09-25 12:47:44 +0000
commit1b40e9dec4fc0ad05a529dc8b2998326bc9c6f55 (patch)
treeef7b7b852c24dcfa331224d2f9e538dfeeee5776
parentf30ba02644bd556636d5a6b8598b0dc9c20c33de (diff)
downloadpkgsrc-1b40e9dec4fc0ad05a529dc8b2998326bc9c6f55.tar.gz
Make this compile on alpha, but keep backward compatibility for systems that
don't have strtoll, strtoull. Discussed with Kazuki Sakamoto <sakamoto@splhack.org>
-rw-r--r--devel/libsmi/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/devel/libsmi/Makefile b/devel/libsmi/Makefile
index e127597b910..8a425afaa6f 100644
--- a/devel/libsmi/Makefile
+++ b/devel/libsmi/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2000/08/14 17:51:20 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2000/09/25 12:47:44 hubertf Exp $
#
DISTNAME= libsmi-0.1.6
@@ -13,11 +13,16 @@ MIBDIR= ${PREFIX}/share/libsmi/mibs
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE=${WRKSRC}/ltconfig
GNU_CONFIGURE= YES
-CPPFLAGS+= -Dstrtoll=strtoq -Dstrtoull=strtouq
-CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
CONFIGURE_ARGS+=--with-mibdir="${MIBDIR}"
# this might make it easier to use scotty's and ucd-snmp's mibs,
# and local ones too
CONFIGURE_ARGS+=--with-smipath="${MIBDIR}:${PREFIX}/share/snmp/mibs:${PREFIX}/lib/tnm2.1.8/mibs:/usr/local/share/snmp/mibs"
+# Only for systems that don't have these:
+.include "../../mk/bsd.prefs.mk"
+.if ${OS_VERSION:M1.4} || ${OS_VERSION:M1.3} || ${OS_VERSION:M1.2}
+CPPFLAGS+= -Dstrtoll=strtoq -Dstrtoull=strtouq
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
+.endif
+
.include "../../mk/bsd.pkg.mk"