openbsd-ports/net/maradns/patches/patch-configure

25 lines
1.0 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-configure,v 1.5 2008/08/20 20:13:36 sturm Exp $
--- configure.orig Mon Aug 18 17:49:49 2008
+++ configure Mon Aug 18 17:54:04 2008
@@ -82,6 +82,9 @@ elif echo $UNAME | grep -i openbsd > /dev/null ; then
2007-01-08 14:18:05 -05:00
echo It looks like you are using OpenBSD\; this should compile
echo fine by typing in \'make\'.
2006-03-31 11:10:22 -05:00
EXITCODE=0
+elif echo $UNAME | grep -i openbsd > /dev/null ; then
+ cat $BUILDDIR/Makefile.freebsd >> Makefile
+ EXITCODE=0
elif echo $UNAME | grep -i mingw32 > /dev/null ; then
cat $BUILDDIR/Makefile.mingw32 >> Makefile
echo It looks like you are using MinGW32 \; this is only a partial
@@ -164,6 +167,10 @@ if [ -z "$AUTHONLY" ] ; then
# FreeBSD uses -pthread instead of -lpthread to compile a
# Pthread program
if echo $UNAME | grep -i freebsd > /dev/null ; then
+ cat server/Makefile.recursive | \
+ sed 's/lpthread/pthread/' > server/Makefile
+ fi
+ if echo $UNAME | grep -i openbsd > /dev/null ; then
cat server/Makefile.recursive | \
sed 's/lpthread/pthread/' > server/Makefile
fi