]> git.pld-linux.org Git - packages/storj-uplink-c.git/blob - storj-uplink-c-libdir.patch
- new
[packages/storj-uplink-c.git] / storj-uplink-c-libdir.patch
1 --- uplink-c-1.2.0/Makefile.orig        2020-12-04 17:39:34.000000000 +0100
2 +++ uplink-c-1.2.0/Makefile     2020-12-12 15:20:02.404070490 +0100
3 @@ -2,7 +2,9 @@
4  
5  SHELL ?= bash
6  
7 -DESTDIR ?= /usr/local
8 +DESTDIR ?=
9 +PREFIX ?= /usr/local
10 +LIBDIR ?= $(PREFIX)/lib
11  GPL2 ?= false
12  
13  ifeq (${GPL2},true)
14 @@ -62,10 +64,9 @@
15  .PHONY: install
16  install: build ## install library and headers
17         install -d \
18 -               ${DESTDIR}/include/uplink \
19 -               ${DESTDIR}/lib \
20 -               ${DESTDIR}/lib/pkgconfig
21 -       install .build/libuplink.so ${DESTDIR}/lib
22 -       install .build/libuplink.a ${DESTDIR}/lib
23 -       install -m 644 .build/uplink/* ${DESTDIR}/include/uplink
24 -       install -m 644 .build/libuplink.pc ${DESTDIR}/lib/pkgconfig
25 +               ${DESTDIR}${PREFIX}/include/uplink \
26 +               ${DESTDIR}${LIBDIR}/pkgconfig
27 +       install .build/libuplink.so ${DESTDIR}${LIBDIR}
28 +       install .build/libuplink.a ${DESTDIR}${LIBDIR}
29 +       install -m 644 .build/uplink/* ${DESTDIR}${PREFIX}/include/uplink
30 +       install -m 644 .build/libuplink.pc ${DESTDIR}${LIBDIR}/pkgconfig
This page took 0.071239 seconds and 3 git commands to generate.