mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-14 23:06:08 -04:00
63 lines
1.7 KiB
Plaintext
63 lines
1.7 KiB
Plaintext
$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 2013-06-21 13:11:10.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 ..
|