freebsd-ports/mail/poppassd/files/patch-aa
Pav Lucistnik a509683ac7 - Fix build on 5.x (varargs)
- Respect ${CC}
- Quiet portlint

PR:		ports/59973
Submitted by:	Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Approved by:	maintainer timeout (9 days)
2003-12-14 18:22:16 +00:00

29 lines
655 B
Text

--- Makefile.orig Fri Dec 5 13:12:35 2003
+++ Makefile Fri Dec 5 13:13:13 2003
@@ -1,14 +1,14 @@
-BINDIR = /usr/etc
+BINDIR = ${PREFIX}/libexec
LIBDIR =
-CFLAGS = -g
-LFLAGS = -g
-CCM = cc -Em
+CFLAGS?= -O
+LFLAGS?= ${LDFLAGS}
+CCM = $(CC) -Em
OBJECTS = poppassd.o
-LIBS =
+LIBS = -lcrypt -lutil
poppassd: $(OBJECTS)
- cc -o poppassd $(LFLAGS) $(OBJECTS) $(LIBS)
+ $(CC) -o poppassd $(LFLAGS) $(OBJECTS) $(LIBS)
install: poppassd
install -g bin -o root -m 500 poppassd $(BINDIR)
@@ -17,4 +17,4 @@
rm -f *.o *~* core Makefile.new Makefile.bak poppassd
poppassd.o: poppassd.c
- cc -c $(CFLAGS) poppassd.c
+ $(CC) -c $(CFLAGS) poppassd.c