openbsd-ports/security/botan/patches/patch-src_build-data_makefile_unix_in

41 lines
1.3 KiB
Plaintext

$OpenBSD: patch-src_build-data_makefile_unix_in,v 1.2 2011/11/26 10:55:17 ajacoutot Exp $
--- src/build-data/makefile/unix.in.orig Mon Jul 11 13:32:23 2011
+++ src/build-data/makefile/unix.in Sun Oct 9 19:18:48 2011
@@ -12,12 +12,13 @@ VERSION = %{version}
SERIES = %{version_major}.%{version_minor}
# Installation Settings
-DESTDIR = %{prefix}
+DESTDIR =
+PREFIX = %{prefix}
-BINDIR = $(DESTDIR)/bin
-LIBDIR = $(DESTDIR)/%{libdir}
-HEADERDIR = $(DESTDIR)/%{includedir}/botan-$(SERIES)/botan
-DOCDIR = $(DESTDIR)/%{docdir}/botan-$(VERSION)
+BINDIR = $(DESTDIR)$(PREFIX)/bin
+LIBDIR = $(DESTDIR)$(PREFIX)/%{libdir}
+HEADERDIR = $(DESTDIR)$(PREFIX)/%{includedir}/botan-$(SERIES)/botan
+DOCDIR = $(DESTDIR)$(PREFIX)/%{docdir}/botan
PKGCONF_DIR = $(LIBDIR)/pkgconfig
CONFIG_SCRIPT = %{botan_config}
@@ -81,7 +82,7 @@ docs:
clean:
$(RM_R) %{build_dir}/lib/* %{build_dir}/checks/*
- $(RM) $(LIBRARIES) $(SYMLINK) $(CHECK)
+ $(RM) $(LIBRARIES) $(CHECK)
distclean: clean
$(RM_R) %{build_dir}
@@ -89,7 +90,7 @@ distclean: clean
$(RM) botan_all.cpp botan_all.h
install: $(LIBRARIES) docs
- $(ECHO) "Installing Botan into $(DESTDIR)... "
+ $(ECHO) "Installing Botan into $(DESTDIR)$(PREFIX)... "
$(MKDIR_INSTALL) $(DOCDIR)
$(COPY_R) %{doc_output_dir}/* $(DOCDIR)