summaryrefslogtreecommitdiff
path: root/mail/metamail/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/metamail/files/patch-Makefile')
-rw-r--r--mail/metamail/files/patch-Makefile32
1 files changed, 20 insertions, 12 deletions
diff --git a/mail/metamail/files/patch-Makefile b/mail/metamail/files/patch-Makefile
index a3843f9f723b..92abf5010366 100644
--- a/mail/metamail/files/patch-Makefile
+++ b/mail/metamail/files/patch-Makefile
@@ -1,6 +1,6 @@
---- Makefile.orig 1994-01-26 18:32:33.000000000 +0100
-+++ Makefile 2014-06-04 12:42:07.532697759 +0200
-@@ -26,7 +26,7 @@
+--- Makefile.orig 1994-01-26 17:32:33 UTC
++++ Makefile
+@@ -26,7 +26,7 @@ MAKE = make
CP = cp
# How to compile C programs
@@ -9,7 +9,7 @@
# You may also want to change the CFLAGS variable, which will be passed on
# to all subdirectories. If you do that, the changes will only work right if you
-@@ -38,7 +38,7 @@
+@@ -38,7 +38,7 @@ FOOBAR-sun4=-Bstatic
STATICFLAG=FOOBAR${HOST_ARCH}
@@ -18,7 +18,7 @@
# The following is better if you want to make sure you run with SYSV defined
# CFLAGS = -g -I. ${$(STATICFLAG)} -DSYSV
# Also, for SGI Irix, compile in K&R mode
-@@ -49,9 +49,9 @@
+@@ -49,9 +49,9 @@ CFLAGS = -g -I. ${$(STATICFLAG)}
# LDLIBS variable.
#
# For Sun and BSD systems, the following should work...
@@ -30,7 +30,7 @@
# On SGI machines, we need -lsun for getpw...(), and -lc_s saves some space.
# LDLIBS = -lsun -lc_s
# ISC SysVr3.2.2 has a shared C library and requires libinet.a to resolve
-@@ -72,10 +72,10 @@
+@@ -72,10 +72,10 @@ CONFIGDIR = .
# install -s -c $(LOCALBINDIR) $$file
#
#INSTALL = cp
@@ -43,7 +43,7 @@
#
# This is where binaries should be copied
LOCALBINDIR = ${INSTROOT}/bin
-@@ -96,9 +96,9 @@
+@@ -96,9 +96,9 @@ MAILCAPDIR = ${INSTROOT}/etc
# This helps with the "for" constructs below on some platforms:
SHELL=/bin/sh
@@ -55,16 +55,17 @@
(cd metamail ; $(MAKE) CONFIGDIR=../${CONFIGDIR} CFLAGS="${CFLAGS}" CC="${CC}" LDLIBS="${LDLIBS}")
-${RM} bin/metamail
(cd bin; ${LN} ../metamail/metamail metamail)
-@@ -117,7 +117,7 @@
+@@ -117,38 +117,33 @@ basics::
(cd bin; ${LN} ../richmail/richtext richtext)
-${RM} bin/richtoatk
(cd bin; ${LN} ../richmail/richtoatk richtoatk)
- (cd fonts ; $(MAKE) CONFIGDIR=../${CONFIGDIR} CFLAGS="${CFLAGS}" CC="${CC}" LDLIBS="${LDLIBS}" FONTSUFFIX="${FONTSUFFIX}")
-+ (cd fonts ; $(MAKE) PREFIX=${PREFIX} CONFIGDIR=../${CONFIGDIR} CFLAGS="${CFLAGS}" CC="${CC}" LDLIBS="${LDLIBS}" FONTSUFFIX="${FONTSUFFIX}")
-${RM} bin/shownonascii
- (cd bin; ${LN} ../fonts/shownonascii shownonascii)
+- (cd bin; ${LN} ../fonts/shownonascii shownonascii)
-${RM} bin/mailto-hebrew
-@@ -127,28 +127,27 @@
+- (cd bin; ${LN} ../fonts/mailto-hebrew mailto-hebrew)
+
+ install-all: basics
@(cd bin; \
for file in *; \
do \
@@ -94,7 +95,14 @@
@echo "installing file $(MAILCAPDIR)/mailcap"
- ${CP} mailcap $(MAILCAPDIR)
+ ${CP} mailcap $(DESTDIR)$(MAILCAPDIR)
-+ (cd fonts ; $(MAKE) PREFIX=${DESTDIR}${PREFIX} CONFIGDIR=../${CONFIGDIR} CFLAGS="${CFLAGS}" CC="${CC}" LDLIBS="${LDLIBS}" FONTSUFFIX="${FONTSUFFIX}" install)
uninstall-all:
@(cd bin; \
+@@ -179,7 +174,6 @@ clean:
+ -${RM} -rf *.BAK
+ (cd metamail ; $(MAKE) clean)
+ (cd richmail ; $(MAKE) clean)
+- (cd fonts ; $(MAKE) FONTSUFFIX="${FONTSUFFIX}" clean)
+
+ cleanbin:
+ -${RM} bin/metamail