1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/print/mp-letter/files/patch-aa
David E. O'Brien af00fa4959 Doesn't require GMAKE anymore.
Respect CXX and CFLAGS.

Submitted by:	Mikhail Teterin <mi@aldan.algebra.com>
1998-07-30 04:36:46 +00:00

59 lines
1.7 KiB
Plaintext

--- Makefile.orig Wed Jul 29 21:33:32 1998
+++ Makefile Wed Jul 29 21:35:09 1998
@@ -45,11 +45,14 @@
# Default locations where mp files will be installed.
# You might wish to alter these values.
#
-MPPATH = /usr/local
+#MPPATH = /usr/local
+MPPATH = $(PREFIX)
MPBINDIR = $(MPPATH)/bin
-MPLIBDIR = $(MPPATH)/lib
+#MPLIBDIR = $(MPPATH)/lib
+MPLIBDIR = $(MPPATH)/share/mp
MPMANDIR = $(MPPATH)/man/man$(MPMANSECT)
-MPMANSECT = l
+#MPMANSECT = l
+MPMANSECT = 1
#---------------------------------------------------------------------
# Alternate names for the mailp frontend
#
@@ -58,11 +61,13 @@
# Compilation flags and standard macro definitions.
#
CDEFS = $(GECOSFIELDS) $(GECOSLENGTH) $(PROLOGUE)
-CCOMP = -O
+#CCOMP = -l
+CCOMP = $(CFLAGS)
CCFLAGS = $(CCOMP) $(CDEFS)
LDFLAGS =
-CCC = g++
+CXXFLAGS = $(CCFLAGS) # needed for gmake's implicit rule
+CCC = $(CXX)
#=================================================================
.KEEPSTATE:
@@ -107,10 +112,10 @@
@echo "**IMPORTANT NOTE**"
@echo
@echo "Mp is setup by default to work with US Letter sized paper."
- @echo "If you are using A4 sized paper, you should reinstall, by
+ @echo "If you are using A4 sized paper, you should reinstall, by"
@echo "doing a:"
@echo
- @echo "make install-a4"
+ @echo "make PAPERSIZE=a4 reinstall"
@echo
common-install: $(BINARIES)
@@ -122,6 +127,8 @@
-cp mp.1 $(MPMANDIR)/mp.$(MPMANSECT)
-chmod 644 $(MPMANDIR)/mp.$(MPMANSECT)
# mp.common.ps
+ -mkdir $(MPLIBDIR)
+#
-cp mp.common.ps $(MPLIBDIR)
-chmod 644 $(MPLIBDIR)/mp.common.ps
# mp.pro.ps