# Interface to Perl from OCaml.
# Copyright (C) 2003 Merjis Ltd.
-# $Id: Makefile,v 1.13 2003-10-26 10:20:19 rich Exp $
+# $Id: Makefile,v 1.14 2003-11-02 13:28:38 rich Exp $
include Makefile.config
# XXX Hack required by ocamlopt, and sometimes ocamlc.
# To work out what this should be, try:
-# `shell perl -MExtUtils::Embed -e ldopts'
+# `perl -MExtUtils::Embed -e ldopts'
DYNALOADER_HACK := /usr/lib/perl/5.8.1/auto/DynaLoader/DynaLoader.a
OCAMLDOCFLAGS := -html -stars -sort $(OCAMLCINCS)
# Install.
install:
- rm -rf $(OCAMLLIBDIR)/perl
- install -c -m 0755 -d $(OCAMLLIBDIR)/perl
- install -c -m 0755 -d $(OCAMLLIBDIR)/stublibs
+ rm -rf $(DESTDIR)$(OCAMLLIBDIR)/perl
+ install -c -m 0755 -d $(DESTDIR)$(OCAMLLIBDIR)/perl
+ install -c -m 0755 -d $(DESTDIR)$(OCAMLLIBDIR)/stublibs
install -c -m 0644 perl.cmi perl.mli perl4caml.cma perl4caml.cmxa \
perl4caml.a libperl4caml.a META \
- $(WRAPPERS:.cmo=.ml) $(WRAPPERS:.cmo=.cmi) $(OCAMLLIBDIR)/perl
- install -c -m 0644 dllperl4caml.so $(OCAMLLIBDIR)/stublibs
+ $(WRAPPERS:.cmo=.ml) $(WRAPPERS:.cmo=.cmi) \
+ $(DESTDIR)$(OCAMLLIBDIR)/perl
+ install -c -m 0644 dllperl4caml.so $(DESTDIR)$(OCAMLLIBDIR)/stublibs
# Distribution.
Package: libperl-ocaml
Section: libs
Architecture: any
-Depends: libperl, ocaml-base-3.07
+Depends: libperl5.8, ocaml-base-3.07
Description: allows you to use Perl code within Objective CAML (OCaml)
perl4caml allows you to use Perl code within Objective CAML (OCaml),
thus neatly side-stepping the old problem with OCaml which was that it
dh_clean -k
dh_installdirs
- $(MAKE) install DESTDIR=$(CURDIR)/debian/libapache-ocaml
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/libperl-ocaml
# Move the remaining development files across.
dh_movefiles -plibperl-ocaml-dev --sourcedir=debian/libperl-ocaml
# dh_installinfo
dh_installman
dh_link
- dh_strip
+# dh_strip # XXX fails - why?
dh_compress
dh_fixperms
# dh_perl