diff options
Diffstat (limited to 'mail/metamail/files/patch-Makefile')
-rw-r--r-- | mail/metamail/files/patch-Makefile | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/mail/metamail/files/patch-Makefile b/mail/metamail/files/patch-Makefile new file mode 100644 index 000000000000..7d820f8f668b --- /dev/null +++ b/mail/metamail/files/patch-Makefile @@ -0,0 +1,74 @@ +--- Makefile.orig Wed Jan 26 18:32:33 1994 ++++ Makefile Mon Dec 18 11:46:21 2006 +@@ -26,7 +26,7 @@ + CP = cp + + # How to compile C programs +-CC = cc ++#CC = cc + + # 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 @@ + + STATICFLAG=FOOBAR${HOST_ARCH} + +-CFLAGS = -g -I. ${$(STATICFLAG)} ++CFLAGS += -I. ${$(STATICFLAG)} + # 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 @@ + # LDLIBS variable. + # + # For Sun and BSD systems, the following should work... +-LDLIBS = ++# LDLIBS = + # On BSD 4.4 systems, you will need the following +-# LDLIBS = -lcompat ++LDLIBS = -s -lcompat + # 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 @@ + # install -s -c $(LOCALBINDIR) $$file + # + #INSTALL = cp +-INSTALL = install -c -s ++INSTALL = install -c + + # Root of installation tree +-INSTROOT = /usr/local ++INSTROOT = ${PREFIX} + # + # This is where binaries should be copied + LOCALBINDIR = ${INSTROOT}/bin +@@ -96,9 +96,9 @@ + # This helps with the "for" constructs below on some platforms: + SHELL=/bin/sh + +-install: basics ++install: install-all + +-basics:: ++all basics:: + (cd metamail ; $(MAKE) CONFIGDIR=../${CONFIGDIR} CFLAGS="${CFLAGS}" CC="${CC}" LDLIBS="${LDLIBS}") + -${RM} bin/metamail + (cd bin; ${LN} ../metamail/metamail metamail) +@@ -117,7 +117,7 @@ + (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) + -${RM} bin/mailto-hebrew +@@ -149,6 +149,7 @@ + -mv $(MAILCAPDIR)/mailcap $(MAILCAPDIR)/mailcap.old + @echo "installing file $(MAILCAPDIR)/mailcap" + ${CP} mailcap $(MAILCAPDIR) ++ (cd fonts ; $(MAKE) PREFIX=${PREFIX} CONFIGDIR=../${CONFIGDIR} CFLAGS="${CFLAGS}" CC="${CC}" LDLIBS="${LDLIBS}" FONTSUFFIX="${FONTSUFFIX}" install) + + uninstall-all: + @(cd bin; \ |