summaryrefslogtreecommitdiff
path: root/textproc/hevea/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/hevea/patches/patch-aa')
-rw-r--r--textproc/hevea/patches/patch-aa58
1 files changed, 21 insertions, 37 deletions
diff --git a/textproc/hevea/patches/patch-aa b/textproc/hevea/patches/patch-aa
index 235f89f10f0..4d045d45956 100644
--- a/textproc/hevea/patches/patch-aa
+++ b/textproc/hevea/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.5 2004/05/03 23:45:56 danw Exp $
+$NetBSD: patch-aa,v 1.6 2005/02/04 22:23:23 adrianp Exp $
---- Makefile.orig Fri Feb 15 10:47:09 2002
-+++ Makefile
+--- Makefile.orig 2005-01-13 20:27:38.000000000 +0000
++++ Makefile 2005-01-13 20:39:04.000000000 +0000
@@ -1,12 +1,12 @@
################## Configuration parameters
# Compile using ocamlopt, to use ocamlc set TARGET=byte
@@ -13,42 +13,44 @@ $NetBSD: patch-aa,v 1.5 2004/05/03 23:45:56 danw Exp $
# Where to install programms
-BINDIR=/usr/local/bin
+BINDIR=${PREFIX}/bin
- # A replacement for /lib/cpp
--CPP=gcc -E -P -x c
+ # C preprocessor with proper options (don't ask)
+-CPP=cpp -E -P
+CPP=${M4}
- ############### End of configuration parameters
- SUF=
- #DIR=/usr/bin/
-@@ -18,7 +18,7 @@ OCAMLFLAGS=
- OCAMLCI=${DIR}ocamlc$(SUF)
+ #Some alternatives...
+ #CPP=/lib/cpp -E -P (Old fashioned Unix)
+ #CPP=gcc -E -P -x c (If you have gcc)
+@@ -21,8 +21,8 @@
+ OCAMLCI=$(OCAMLC)
OCAMLOPT=${DIR}ocamlopt$(SUF)
OCAMLLEX=${DIR}ocamllex$(SUF)
-INSTALL=cp
+-MKDIR=mkdir -p
+INSTALL=${BSD_INSTALL_DATA}
++MKDIR=${MKDIR}
ONLYESPONJA=emisc.cmo buff.cmo htmllex.cmo htmlparse.cmo htmltext.cmo pp.cmo util.cmo explode.cmo ultra.cmo esponja.cmo
-@@ -46,30 +46,30 @@ byte:
+@@ -50,30 +50,30 @@
$(MAKE) $(MFLAGS) TARGET=byte hevea.byte hacha.byte esponja.byte cutfoot-fra.html cutfoot-eng.html
install-lib:
-- -mkdir $(LIBDIR)
+- - $(MKDIR) $(LIBDIR)
- $(INSTALL) hevea.sty cutfoot-fra.html cutfoot-eng.html footer.tex ${LIBDIR}
- $(INSTALL) contents_motif.gif next_motif.gif previous_motif.gif ${LIBDIR}
- $(INSTALL) $(ALLLIB) $(LIBDIR)
-- -mkdir $(LIBDIR)/html
+- - $(MKDIR) $(LIBDIR)/html
- cd html ; $(INSTALL) $(HTMLLIB) $(LIBDIR)/html
-- -mkdir $(LIBDIR)/text
+- - $(MKDIR) $(LIBDIR)/text
- cd text ; $(INSTALL) $(TEXTLIB) $(LIBDIR)/text
-- -mkdir $(LIBDIR)/info
+- - $(MKDIR) $(LIBDIR)/info
- cd info ; $(INSTALL) $(INFOLIB) $(LIBDIR)/info
+ $(BSD_INSTALL_DATA_DIR) $(LIBDIR)
-+ $(BSD_INSTALL_DATA) hevea.sty cutfoot-fra.html cutfoot-eng.html footer.tex $(LIBDIR)
-+ $(BSD_INSTALL_DATA) contents_motif.gif next_motif.gif previous_motif.gif $(LIBDIR)
++ $(BSD_INSTALL_DATA) hevea.sty cutfoot-fra.html cutfoot-eng.html footer.tex ${LIBDIR}
++ $(BSD_INSTALL_DATA) contents_motif.gif next_motif.gif previous_motif.gif ${LIBDIR}
+ $(BSD_INSTALL_DATA) $(ALLLIB) $(LIBDIR)
-+ $(BSD_INSTALL_DATA_DIR) $(LIBDIR)/html
++ $(BSD_INSTALL_DATA_DIR) $(LIBDIR)/html
+ cd html ; $(BSD_INSTALL_DATA) $(HTMLLIB) $(LIBDIR)/html
-+ $(BSD_INSTALL_DATA_DIR) $(LIBDIR)/text
++ $(BSD_INSTALL_DATA_DIR) $(LIBDIR)/text
+ cd text ; $(BSD_INSTALL_DATA) $(TEXTLIB) $(LIBDIR)/text
+ $(BSD_INSTALL_DATA_DIR) $(LIBDIR)/info
+ cd info ; $(BSD_INSTALL_DATA) $(INFOLIB) $(LIBDIR)/info
@@ -77,21 +79,3 @@ $NetBSD: patch-aa,v 1.5 2004/05/03 23:45:56 danw Exp $
hevea.byte: ${OBJS}
-@@ -103,7 +103,7 @@ cutfoot-eng.html: cutfoot.tex html/hevea
- HEVEADIR=. ; export HEVEADIR ; ${HEVEA} < cutfoot.tex | ${ESPONJA}> $@
-
- .SUFFIXES:
--.SUFFIXES: .ml .cmo .mli .cmi .c .mll .cmx
-+.SUFFIXES: .ml .cmo .mli .cmi .c .mll .cmx
-
- .mll.ml:
- ${OCAMLLEX} $<
-@@ -128,7 +128,7 @@ clean: cleanbyte
- rm -f *.byte *.opt
- rm -f $(GENSRC)
- rm -f *.o *.cmi *.cmo *.cmx *.o *.ppo *.ppi
-- rm -f *~ #*# html/*~ html/#*# text/*~ text/#*# info/*~ info/#*#
-+ rm -f *~ #*# html/*~ html/#*# text/*~ text/#*# info/*~ info/#*#
- rm -f cutfoot-fra.html cutfoot-eng.html
-
- depend: $(GENSRC)