pkgsrc/mail/fdm/patches/patch-aa
2013-10-15 14:44:18 +00:00

49 lines
1.5 KiB
Text

$NetBSD: patch-aa,v 1.4 2013/10/15 14:44:18 joerg Exp $
--- Makefile.orig 2009-06-26 15:58:00.000000000 +0000
+++ Makefile
@@ -5,7 +5,7 @@
VERSION= 1.7
-FDEBUG= 1
+#FDEBUG= 1
CC?= cc
YACC= yacc -d
@@ -13,15 +13,7 @@ CFLAGS+= -DBUILD="\"$(VERSION)\""
LDFLAGS+= -L/usr/local/lib
LIBS+= -lssl -lcrypto -ltdb -lz
+CPPFLAGS+=-I.
-# This sort of sucks but gets rid of the stupid warning and should work on
-# most platforms...
-CCV!= (LC_ALL=C ${CC} -v 2>&1|awk '/gcc version 4/') || true
-.if empty(CCV)
-CPPFLAGS:= -I. -I- -I/usr/local/include ${CPPFLAGS}
-.else
-CPPFLAGS:= -iquote. -I/usr/local/include ${CPPFLAGS}
-.endif
-
.ifdef FDEBUG
LDFLAGS+= -Wl,-E
CFLAGS+= -g -ggdb -DDEBUG
@@ -76,12 +67,12 @@ regress: fdm
cd regress && ${MAKE}
install: all
- ${INSTALLDIR} ${DESTDIR}${PREFIX}/bin
- ${INSTALLBIN} fdm ${DESTDIR}${PREFIX}/bin/
- ${INSTALLDIR} ${DESTDIR}${PREFIX}/man/man1
- ${INSTALLMAN} fdm.1 ${DESTDIR}${PREFIX}/man/man1/
- ${INSTALLDIR} ${DESTDIR}${PREFIX}/man/man5
- ${INSTALLMAN} fdm.conf.5 ${DESTDIR}${PREFIX}/man/man5/
+ ${BSD_INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
+ ${BSD_INSTALL_PROGRAM} fdm ${DESTDIR}${PREFIX}/bin/
+ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${BSD_INSTALL_MAN} fdm.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+ ${BSD_INSTALL_MAN} fdm.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/fdm