summaryrefslogtreecommitdiff
path: root/x11/lablgtk
diff options
context:
space:
mode:
authortron <tron>2005-07-30 15:45:11 +0000
committertron <tron>2005-07-30 15:45:11 +0000
commit60b2b7cbfb6027c08b9fefad3f6933b2d9df28aa (patch)
treeec158040624b5f2fa9be96a855f44152b4cd1aa2 /x11/lablgtk
parentff24572b26a137bd6f4cefe84675d2cae3604d9b (diff)
downloadpkgsrc-60b2b7cbfb6027c08b9fefad3f6933b2d9df28aa.tar.gz
Update comment about architectures using "ocamlopt" and check the
architectures only once.
Diffstat (limited to 'x11/lablgtk')
-rw-r--r--x11/lablgtk/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/x11/lablgtk/Makefile b/x11/lablgtk/Makefile
index 7f809e58213..7e00983b117 100644
--- a/x11/lablgtk/Makefile
+++ b/x11/lablgtk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2005/07/30 13:48:26 tron Exp $
+# $NetBSD: Makefile,v 1.21 2005/07/30 15:45:11 tron Exp $
DISTNAME= lablgtk-1.2.7
PKGREVISION= 1
@@ -16,7 +16,7 @@ BUILDLINK_DEPENDS.ocaml+= ocaml>=3.0.5
.include "../../mk/bsd.prefs.mk"
-# currently ocamlopt is only available on i386
+# currently ocamlopt is only available on i386, sparc and powerpc.
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
(${MACHINE_ARCH} == "sparc")
USE_DOTOPT= YES
@@ -34,8 +34,7 @@ do-configure:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
configure USE_DOTOPT=${USE_DOTOPT} USE_CC=1 CC=${CC}
-.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
- (${MACHINE_ARCH} == "sparc")
+.if defined(USE_DOTOPT)
post-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
opt