On 2018-03-20 04:27 +0000, Wookey wrote:
On 2018-03-08 05:18 +0000, Wookey wrote:
I'll post my issues/changes here for discussion so we can decide what is upstreamable.
It's conventional to be able to specify $PREFIX for where things get installed to.
A closely related matter is the need to specify the install path for libraries. This is particularly used in debian-dervied distros to support multiarch (the co-installability of libraries and headers to support cross-building and 32/64bit support, amongst other things).
It's a simple patch but it conflicts with this one rather so both are included.
This is used in the debian packaging to install librries into /usr/lib/<triplet>. (or more accurately $(PREFIX)/lib/<triplet>
Recognising that the upstream default remains just to put things in /usr/lib the easilest way to deal with this is just to make it simple to override the library install path at build time.
Index: libopencsd-0.8.1/decoder/build/linux/makefile =================================================================== --- libopencsd-0.8.1.orig/decoder/build/linux/makefile +++ libopencsd-0.8.1/decoder/build/linux/makefile @@ -71,7 +71,8 @@ export MASTER_LIB=$(CROSS_COMPILE)ar export INSTALL=install
# installation directory -INSTALL_LIB_DIR=/usr/lib/ +LIB_PATH ?= lib +INSTALL_LIB_DIR=/usr/$(LIB_PATH) export INSTALL_INCLUDE_DIR=/usr/include/
# compile flags
Wookey