summaryrefslogtreecommitdiff
path: root/x11/lablgtk/Makefile
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2003-03-17 11:56:22 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2003-03-17 11:56:22 +0000
commit4bd5f5d5c20a1f5c7606650aa0e6d4eb4cb0c693 (patch)
treee6dd00749b49a9ec899d2465aed746f8e74de683 /x11/lablgtk/Makefile
parent2a7e8c59e8abca144743a1b204d9a8416942825c (diff)
downloadpkgsrc-4bd5f5d5c20a1f5c7606650aa0e6d4eb4cb0c693.tar.gz
Make this go on non-i386 systems. Currently ocamlopt is only available
on i386 so avoid using that on non-i386 systems. Compiles and seems to work on alpha.
Diffstat (limited to 'x11/lablgtk/Makefile')
-rw-r--r--x11/lablgtk/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/x11/lablgtk/Makefile b/x11/lablgtk/Makefile
index eb2640ab493..030c28f5850 100644
--- a/x11/lablgtk/Makefile
+++ b/x11/lablgtk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2003/01/19 10:59:00 salo Exp $
+# $NetBSD: Makefile,v 1.4 2003/03/17 11:56:22 dmcmahill Exp $
#
DISTNAME= lablgtk-1.2.5
@@ -12,13 +12,26 @@ COMMENT= GTK+ bindings for ocaml
USE_BUILDLINK2= YES
USE_GMAKE= YES
+.include "../../mk/bsd.prefs.mk"
+
+# currently ocamlopt is only available on i386
+.if (${MACHINE_ARCH} == "i386")
+USE_DOTOPT= YES
+.else
+CAMLOPT= ocamlc
+MAKE_ENV+= CAMLOPT=${CAMLOPT}
+PLIST_SRC= ${PKGDIR}/PLIST.noopt
+.endif
+
do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
- configure USE_DOTOPT=1 USE_CC=1 CC=${CC}
+ configure USE_DOTOPT=${USE_DOTOPT} USE_CC=1 CC=${CC}
+.if (${MACHINE_ARCH} == "i386")
post-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
opt
+.endif
.include "../../x11/gtk/buildlink2.mk"
.include "../../lang/ocaml/buildlink2.mk"