6dc91d4950
- Add missing RUN_DEPENDS on ocaml - Pass maintainership to submitter PR: ports/101148 Submitted by: Stanislav Sedov <ssedov at mbsd.msk.ru>
53 lines
1.4 KiB
Text
53 lines
1.4 KiB
Text
--- Makefile.orig Thu Apr 18 16:39:26 2002
|
|
+++ Makefile Tue Aug 1 12:53:14 2006
|
|
@@ -1,10 +1,12 @@
|
|
#Adjust this directory for installation
|
|
-LIBDIR=`ocamlc -where`
|
|
+LIBDIR=$(LOCALBASE)/lib/ocaml/site-lib/classes
|
|
+DISTDIR=$(PREFIX)/lib/ocaml/site-lib/classes
|
|
COMPILER=ocamlc -c
|
|
LIBRARIAN=ocamlc -a
|
|
OPTCOMP=ocamlopt -c
|
|
OPTLIB=ocamlopt -a
|
|
-INSTALL=cp
|
|
+INSTALL=install -o root -g wheel -m 644
|
|
+INSTALLDIR=install -d -o root -g wheel -m 755
|
|
|
|
OBJECTS=obuffer.cmo ohashtbl.cmo oqueue.cmo ostack.cmo \
|
|
omap.cmo oset.cmo ostream.cmo omapping.cmo
|
|
@@ -16,13 +18,13 @@
|
|
.SUFFIXES: .ml .mli .cmo .cmi .cmx
|
|
|
|
.ml.cmo:
|
|
- $(COMPILER) $(INCLUDES) $<
|
|
+ $(COMPILER) -ccopt "${CFLAGS}" $(INCLUDES) $<
|
|
|
|
.ml.cmx:
|
|
- $(OPTCOMP) $(INCLUDES) $<
|
|
+ $(OPTCOMP) -ccopt "${CFLAGS}" $(INCLUDES) $<
|
|
|
|
.mli.cmi:
|
|
- $(COMPILER) $(INCLUDES) $<
|
|
+ $(COMPILER) -ccopt "${CFLAGS}" $(INCLUDES) $<
|
|
|
|
all: stdclass.cma
|
|
opt: stdclass.cmxa
|
|
@@ -43,12 +45,15 @@
|
|
@$(MAKE) real-install LIBDIR=$(LIBDIR)
|
|
|
|
real-install:
|
|
- $(INSTALL) stdclass.cma *.cmi *.mli $(LIBDIR)
|
|
+ $(INSTALLDIR) $(DISTDIR)
|
|
+ $(INSTALL) stdclass.cma *.cmi *.mli $(DISTDIR)
|
|
if test -f stdclass.cmxa; \
|
|
- then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(LIBDIR); fi
|
|
+ then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(DISTDIR); fi
|
|
+ if test -f META; \
|
|
+ then $(INSTALL) META $(DISTDIR); fi
|
|
|
|
clean:
|
|
- rm -f *.cm* *.o *.a *~ #*
|
|
+ rm -f *.cm* *.o *.a *~
|
|
|
|
depend:
|
|
ocamldep *.ml *.mli > .depend
|