freebsd-ports/mail/kavmilter/files/patch-Makefile
FUJISHIMA Satsuki 6dd69bbdb1 get rid of libgnugetopt dependency for -CURRENT,
use USE_GETOPT_LONG instead.
respect CFLAGS.
2003-07-14 02:36:55 +00:00

36 lines
893 B
Text

--- Makefile.orig Thu Jun 12 19:19:59 2003
+++ Makefile Mon Jul 7 06:57:24 2003
@@ -38,11 +38,11 @@
VARDIR=/var
PIDDIR=$(VARDIR)/run
-LIBS=-lmilter -lgnugetopt -lconf
+LIBS=-lmilter -lconf
DEFS=-DCONFIG="\"$(PREFIX)/etc/kavmilter.conf\""
-CFLAGS += -Wall -pipe $(INCDIRS)
-LDFLAGS += -pthread
+CFLAGS += -Wall -pipe $(INCDIRS) $(CPPFLAGS)
+#LDFLAGS += ${PTHREAD_LIBS}
#
# Remove command
RMF = -/bin/rm -f
@@ -51,13 +51,16 @@
echo $(CFLAGS)
$(CC) -c $(DEFS) $(CFLAGS) $<
-CC=gcc
-
all: $(BINS)
$(OBJS): $(HEADERS)
install: kavmilter stop
+ install -d -m 755 $(INSTDIR)
+ install -d -m 755 $(RCDDIR)
+ install -d -m 755 $(ETCDIR)
+ install -d -m 755 $(MANDIR)/man5
+ install -d -m 755 $(MANDIR)/man8
install -m 755 kavmilter $(INSTDIR)/kavmilter
install -m 755 kavmilter.sh.sample $(RCDDIR)/kavmilter.sh.sample
install -m 644 kavmilter.8 $(MANDIR)/man8/kavmilter.8