pkgsrc-wip/amap/patches/patch-aa
Adrian Portelli 9b839a16eb Version bump from 2.1 to 4.5.
Lots of changes, see the CHANGELOG for full details:

Recent changes include:

v4.5	November 2003 (THC public release)
	* Added portability fixes for openbsd (thanks to tony@libpcap.net)
	* Added portability fixes for cygwin (thanks to
	  nexus@patrol.i-way.co.uk)
	* Added 6 responses (thanks to jrdepriest@ftb.com, indole@bu.edu and
	  t.veronesi@inwind.it)
2003-11-21 13:20:51 +00:00

49 lines
1.6 KiB
Text

$NetBSD: patch-aa,v 1.2 2003/11/21 13:20:51 adrian_p Exp $
--- configure.orig Wed Oct 29 22:50:05 2003
+++ configure Fri Nov 21 12:30:32 2003
@@ -33,7 +33,7 @@
echo
echo "Checking for openssl ..."
-for i in $LIBDIRS /lib /usr/lib /usr/local/lib /opt/local/lib \
+for i in ${BUILDLINK_DIR}/lib $LIBDIRS /lib /usr/lib /usr/local/lib /opt/local/lib \
/*ssl /usr/*ssl /opt/*ssl /usr/local/*ssl /opt/local/*ssl \
/*ssl/lib /usr/*ssl/lib /opt/*ssl/lib /usr/local/*ssl/lib /opt/local/*ssl/lib
do
@@ -61,7 +61,7 @@
fi
done
-for i in /usr/local/include /*ssl/include /usr/include \
+for i in ${BUILDLINK_DIR}/include /usr/local/include /*ssl/include /usr/include \
/opt/*ssl/include /usr/*ssl/include /usr/local/*ssl/include
do
if [ "X" = "X$SSL_IPATH" ]; then
@@ -152,7 +152,7 @@
XLIBS="$XLIBS -lresolv"
fi
-for i in /usr/man /usr/share/man /usr/local/man /usr/local/share/man ; do
+for i in /usr/man /usr/share/man /usr/local/man /usr/local/share/man @MANDIR@; do
if [ -d $i ]; then
MANDIR=$i
fi
@@ -170,7 +170,7 @@
if [ -n "$PREFIX" ]; then
XDEFINES="$XDEFINES -DAMAP_PREFIX=$PREFIX"
else
- PREFIX="/usr/local"
+ PREFIX="@PREFIX@"
fi
echo "Amap will be installed into .../bin of: $PREFIX"
echo " (change this by running ./configure --prefix=path)"
@@ -178,7 +178,7 @@
echo "Writing Makefile.in ..."
echo "XDEFINES=$XDEFINES" >> Makefile.in
-echo "XLIBS=$XLIBS" >> Makefile.in
+echo "XLIBS=$XLIBS -Wl,-R@PREFIX@/lib -L@PREFIX@/lib" >> Makefile.in
echo "XLIBPATHS=$XLIBPATHS" >> Makefile.in
echo "XIPATHS=$XIPATHS" >> Makefile.in
echo "MANDIR=$MANDIR/man1/" >> Makefile.in