summaryrefslogtreecommitdiff
path: root/net/unison
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2001-02-03 09:07:21 +0000
committerdmcmahill <dmcmahill>2001-02-03 09:07:21 +0000
commit6cfc1c9fe38425800f209adb994c5233e16efe45 (patch)
treefaab814eb5731b8492806ab24ab3941ea482933a /net/unison
parentc617f59cb7b6870702084ab0ba1df8384ab8742d (diff)
downloadpkgsrc-6cfc1c9fe38425800f209adb994c5233e16efe45.tar.gz
we don't have ocamlopt on non-i386 so don't try and use it on non-i386,
use ocamlc in that case. Fixes recently noted compile problems on alpha.
Diffstat (limited to 'net/unison')
-rw-r--r--net/unison/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/net/unison/Makefile b/net/unison/Makefile
index c439f4d76cf..a1a114acf5f 100644
--- a/net/unison/Makefile
+++ b/net/unison/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2001/01/11 01:45:36 mjl Exp $
+# $NetBSD: Makefile,v 1.2 2001/02/03 09:07:21 dmcmahill Exp $
#
DISTNAME= src
@@ -16,6 +16,13 @@ DIST_SUBDIR= unison
# docs: unison-manual.pdf/html/ps/dvi
WRKSRC= ${WRKDIR}/${PKGNAME}
USE_GMAKE= yes
-MAKE_FLAGS= CFLAGS="" UISTYLE=text
+MAKE_FLAGS+= CFLAGS="" UISTYLE=text
+
+.include "../../mk/bsd.prefs.mk"
+
+.if (${MACHINE_ARCH} != "i386")
+# we don't have ocamlopt on non-i386 so don't try and use it
+MAKE_FLAGS+= NATIVE=false
+.endif
.include "../../mk/bsd.pkg.mk"