pkgsrc/security/validns/patches/patch-Makefile
pettai 8ececb7260 validns 0.8
Miscellaneous bug fixes.
        Miscellaneous portability fixes.
        Support ECDSA and SHA-256 in SSHFP.
        Add support for SHA-384 digests in DS (RFC 6605).
        Support multiple -t options.
2014-02-17 08:18:07 +00:00

27 lines
1 KiB
Text

$NetBSD: patch-Makefile,v 1.6 2014/02/17 08:18:08 pettai Exp $
Add (PKG_)PREFIX support
--- Makefile.orig 2014-02-11 20:08:39.000000000 +0000
+++ Makefile
@@ -1,7 +1,7 @@
# The following options seem to work fine on Linux, FreeBSD, and Darwin
OPTIMIZE=-O2 -g
-CFLAGS=-Wall -Werror -pthread -fno-strict-aliasing
-INCPATH=-I/usr/local/include -I/opt/local/include -I/usr/local/ssl/include
+CFLAGS=-Wall -pthread -fno-strict-aliasing
+INCPATH=-I/usr/include -I${PREFIX}/include
CC?=cc
# These additional options work on Solaris/gcc to which I have an access
@@ -39,8 +39,8 @@ validns: main.o carp.o mempool.o textpar
ipseckey.o cbtree.o mb.o mg.o mr.o minfo.o \
afsdb.o x25.o isdn.o rt.o px.o kx.o \
dlv.o dhcid.o nsap.o \
- -L/usr/local/lib -L/opt/local/lib $(EXTRALPATH) \
- -lJudy -lcrypto $(EXTRALIBS) $(EXTRALINKING)
+ -L/usr/lib -L${PREFIX}/lib $(EXTRALPATH) \
+ -lJudy -lcrypto -Wl,-R${PREFIX}/lib $(EXTRALIBS) $(EXTRALINKING)
clean:
-rm -f validns main.o carp.o mempool.o textparse.o