updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / camllight / cl75.patch
bloba9fc67be6e3e00b52bdde56ded693e54deb144f2
1 Только в cl75w/: PKGBUILD
2 diff -ru cl75/src/Makefile cl75w/src/Makefile
3 --- cl75/src/Makefile 1999-03-03 05:25:57.000000000 -0800
4 +++ cl75w/src/Makefile 2008-08-20 02:20:02.000000000 -0700
5 @@ -18,8 +18,8 @@
6 LIBS=
8 # How to call the C preprocessor on a file that does not have the .c extension.
9 -# That's /lib/cpp on most machines, sometimes /usr/bin/cpp,
10 -# and /usr/ccs/lib/cpp under Solaris.
11 +# That's /lib/cpp on most machines, sometimes $(prefix)/bin/cpp,
12 +# and $(prefix)/ccs/lib/cpp under Solaris.
13 # The -P option suppresses the generation of "# linenum" directives,
14 # which are not understood by Caml Light.
15 # The -Dunix option ensures that the symbol "unix" is defined --
16 @@ -29,16 +29,16 @@
17 CPP=/lib/cpp -P -traditional -Dunix
19 # The directory where public executables will be installed
20 -BINDIR=/usr/local/bin
21 +BINDIR=$(prefix)/bin
23 # The directory where the Caml Light standard library will be installed
24 -LIBDIR=/usr/local/lib/caml-light
25 +LIBDIR=$(prefix)/lib/caml-light
27 # The manual section where the manual pages will be installed
28 MANEXT=1
30 # The directory where the manual pages will be installed
31 -MANDIR=/usr/local/man/man$(MANEXT)
32 +MANDIR=$(prefix)/man/man$(MANEXT)
34 # Some "make"s need this to ensure that they call the Bourne shell,
35 # not the C shell. Seems harmless on most other "make"s.
36 @@ -122,6 +122,7 @@
37 install:
38 if test -d $(BINDIR); then : ; else mkdir $(BINDIR); fi
39 if test -d $(LIBDIR); then : ; else mkdir $(LIBDIR); fi
40 + if test -d $(MANDIR); then : ; else mkdir $(MANDIR); fi
41 cd runtime; make BINDIR=$(BINDIR) LIBDIR=$(LIBDIR) install
42 cd launch; make BINDIR=$(BINDIR) LIBDIR=$(LIBDIR) install
43 cd lib; make BINDIR=$(BINDIR) LIBDIR=$(LIBDIR) install
44 @@ -139,6 +140,7 @@
45 rm -rf $(LIBDIR)
46 rm -f $(BINDIR)/camlrun $(BINDIR)/camlc $(BINDIR)/camllight
47 rm -f $(BINDIR)/camlyacc $(BINDIR)/camllex $(BINDIR)/camlmktop
48 + rm -f $(BINDIR)/camllibr
50 # Remove all generated files
51 clean:
52 diff -ru cl75/src/launch/Makefile cl75w/src/launch/Makefile
53 --- cl75/src/launch/Makefile 1995-02-22 01:33:26.000000000 -0800
54 +++ cl75w/src/launch/Makefile 2008-08-20 02:33:09.000000000 -0700
55 @@ -16,7 +16,7 @@
56 cat testprog) > /tmp/testscr
57 chmod a+x /tmp/testscr
58 sh -c 'if sh -c /tmp/testscr 2>/dev/null; \
59 - then echo "#!$(BINDIR)/camlrun" > $(LIBDIR)/header; \
60 + then echo "#!/usr/bin/camlrun" > $(LIBDIR)/header; \
61 else cp camlexec $(LIBDIR)/header; \
62 fi'
63 rm -f /tmp/testscr
64 @@ -26,7 +26,7 @@
65 done
67 SEDCOMMANDS=\
68 - -e 's|LIBDIR|$(LIBDIR)|' -e 's|CC|$(CC) $(OPTS)|' -e 's|LIBS|$(LIBS)|'
69 + -e 's|LIBDIR|/usr/lib/caml-light|' -e 's|CC|$(CC) $(OPTS)|' -e 's|LIBS|$(LIBS)|'
71 camlc: camlc.tpl ../version.h
72 sed $(SEDCOMMANDS) \
73 Только в cl75w/src: libtar