ports/mail/mls/files/patch-Makefile
Robert Clausecker 342a19d2da mail/mls: improve and unbreak with -fno-common
- liberally sprinkle extern all over the place
 - define LICENSE
 - take over maintainership of this unmaintained port
 - ship examples and html files
 - define DOCS and EXAMPLES options
 - pacify portlint and portclippy
 - add a pkg-message as the author intended
 - remove dead MASTER_SITES entry

PR:		259586
Approved by:	flo (mentor)
Differential Revision: https://reviews.freebsd.org/D38516
2023-02-14 21:18:57 +01:00

30 lines
989 B
Text

--- Makefile.orig 2003-06-10 20:26:51 UTC
+++ Makefile
@@ -5,13 +5,13 @@
# -m386 (486,pentium,pentiumpro)
#OPTIMIZE=-O7 -mpentiumpro
-OPTIMIZE=-O3
+#OPTIMIZE=-O3
# debug symbols will be stripped anyway during 'make install'
DEBUG=-g
#### DON'T CHANGE ANYTHING BELOW ####
-DESTDIR=/usr/local
+DESTDIR?=/usr/local
CFLAGS=-Wall $(OPTIMIZE) $(DEBUG)
LIBS=-lm
CC=gcc
@@ -37,9 +37,8 @@ mls_text.o: mls_text.c mls_text.h mls_lang.h Makefile
$(CC) $(CFLAGS) -c mls_text.c -o mls_text.o
install: mls
- install -m 755 -g root -o root -s mls $(DESTDIR)/bin
- install -m 644 -g root -o root mls.1 $(DESTDIR)/man/man1
- gzip -9f $(DESTDIR)/man/man1/mls.1
+ $(BSD_INSTALL_PROGRAM) mls $(DESTDIR)$(PREFIX)/bin
+ $(BSD_INSTALL_MAN) mls.1 $(DESTDIR)$(PREFIX)/man/man1
@echo "**************************************************************"
@echo "*** To use HTML feature or PHP wrapper, copy contents of ***"
@echo "*** 'html' subdirectory to location accessible by your ***"