diff options
Diffstat (limited to 'security/polarssl/patches/patch-Makefile')
-rw-r--r-- | security/polarssl/patches/patch-Makefile | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/security/polarssl/patches/patch-Makefile b/security/polarssl/patches/patch-Makefile index 1ff853ef8d3..ef7a3031547 100644 --- a/security/polarssl/patches/patch-Makefile +++ b/security/polarssl/patches/patch-Makefile @@ -1,10 +1,11 @@ -$NetBSD: patch-Makefile,v 1.1 2012/12/11 23:29:28 gdt Exp $ +$NetBSD: patch-Makefile,v 1.2 2013/09/11 13:17:26 obache Exp $ Fix DESTDIR for pkgsrc, and suppress building test programs. ---- Makefile.orig 2012-04-05 07:07:50.000000000 -0500 -+++ Makefile 2012-11-14 23:27:47.000000000 -0600 -@@ -1,37 +1,24 @@ -- + +--- Makefile.orig 2013-06-21 13:11:10.000000000 +0000 ++++ Makefile +@@ -1,48 +1,28 @@ + -DESTDIR=/usr/local -PREFIX=polarssl_ +APPNAME_PRE=polarssl_ @@ -26,14 +27,12 @@ Fix DESTDIR for pkgsrc, and suppress building test programs. 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)${PREFIX}/include/polarssl ++ cp -r include/polarssl $(DESTDIR)${PREFIX}/include - mkdir -p $(DESTDIR)/lib - cp library/libpolarssl.* $(DESTDIR)/lib -+ mkdir -p ${DESTDIR}${PREFIX}/lib -+ cp library/libpolarssl.* ${DESTDIR}${PREFIX}/lib - +- - mkdir -p $(DESTDIR)/bin - for p in programs/*/* ; do \ - if [ -x $$p ] && [ ! -d $$p ] ; \ @@ -42,7 +41,22 @@ Fix DESTDIR for pkgsrc, and suppress building test programs. - 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 .. - cd programs && $(MAKE) clean && cd .. |