[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-ports
Subject:    textproc/hevea better update
From:       Nikolay Sturm <sturm () sec ! informatik ! tu-darmstadt ! de>
Date:       2002-09-30 8:44:01
[Download RAW message or body]

> Modified files:
>	textproc/hevea : Makefile 
> Added files:
>	textproc/hevea/patches: patch-Makefile 
>
> Log message:
> Fix breakage -- ocaml does not supply "ocamlopt", therefore the hevea
> build is using an incorrect target.
>
> Tested on macppc and i386 - ok pvalchev@

I beg to differ. I submitted the attached diff (sort of) to espie@. This
one produces the compiled binary on archs supporting ocamlopt (i386,
sparc and alpha) and a byte code version for other archs. This is
coherent with the ocaml port itself and tested on i386.

bye,

Nikolay

-- 
OpenPGP: 0x5C0878D2 - BB55 EDCF A1F6 8057 B953  4C66 EFBD BA73 5C08 78D2

["hevea.diff" (text/plain)]

--- Makefile.orig	Sun Sep 29 13:25:20 2002
+++ Makefile	Sun Sep 29 13:38:03 2002
@@ -24,6 +24,13 @@
 MAKE_FLAGS=LIBDIR='${PREFIX}/lib/hevea' BINDIR='${PREFIX}/bin'
 FAKE_FLAGS=LIBDIR='${WRKINST}${PREFIX}/lib/hevea' BINDIR='${WRKINST}${PREFIX}/bin'
 
+.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "sparc" && \
+	${MACHINE_ARCH} != "alpha"
+RUN_DEPENDS=	:ocaml-*:lang/ocaml
+MAKE_FLAGS+=	TARGET='byte'
+FAKE_FLAGS+=	TARGET='byte'
+.endif
+
 # Beware! this works only because the manual is flat
 post-install:
 	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/hevea


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic