Files
pkgsrc-ng/security/polarssl/patches/patch-Makefile
2016-01-21 23:40:00 +01:00

63 lines
1.7 KiB
Plaintext

$NetBSD: patch-Makefile,v 1.3 2015/03/28 19:00:28 rodent Exp $
Fix DESTDIR for pkgsrc, and suppress building test programs.
--- Makefile.orig 2014-10-20 11:59:19.000000000 +0000
+++ Makefile
@@ -1,48 +1,28 @@
-DESTDIR=/usr/local
-PREFIX=polarssl_
+APPNAME_PRE=polarssl_
.SILENT:
all:
cd library && $(MAKE) all && cd ..
- cd programs && $(MAKE) all && cd ..
cd tests && $(MAKE) all && cd ..
no_test:
cd library && $(MAKE) all && cd ..
- cd programs && $(MAKE) all && cd ..
lib:
cd library && $(MAKE) all && cd ..
install:
- mkdir -p $(DESTDIR)/include/polarssl
- cp -r include/polarssl $(DESTDIR)/include
+ mkdir -p $(DESTDIR)${PREFIX}/include/polarssl
+ cp -r include/polarssl $(DESTDIR)${PREFIX}/include
- mkdir -p $(DESTDIR)/lib
- cp library/libpolarssl.* $(DESTDIR)/lib
-
- mkdir -p $(DESTDIR)/bin
- for p in programs/*/* ; do \
- if [ -x $$p ] && [ ! -d $$p ] ; \
- then \
- f=$(PREFIX)`basename $$p` ; \
- cp $$p $(DESTDIR)/bin/$$f ; \
- fi \
- done
+ mkdir -p $(DESTDIR)${PREFIX}/lib
+ cp library/libpolarssl.* $(DESTDIR)${PREFIX}/lib
uninstall:
- rm -rf $(DESTDIR)/include/polarssl
- rm -f $(DESTDIR)/lib/libpolarssl.*
-
- for p in programs/*/* ; do \
- if [ -x $$p ] && [ ! -d $$p ] ; \
- then \
- f=$(PREFIX)`basename $$p` ; \
- rm -f $(DESTDIR)/bin/$$f ; \
- fi \
- done
+ rm -rf $(DESTDIR)${PREFIX}/include/polarssl
+ rm -f $(DESTDIR)${PREFIX}/lib/libpolarssl.*
clean:
cd library && $(MAKE) clean && cd ..