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. This is used in the debian packaging to install to $(CURDIR)debian/tmp/ before the files are split into the relevant packages. It's a simple patch:
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,8 +71,9 @@ export MASTER_LIB=$(CROSS_COMPILE)ar export INSTALL=install
# installation directory -INSTALL_LIB_DIR=/usr/lib/ -export INSTALL_INCLUDE_DIR=/usr/include/ +PREFIX ?=/usr +INSTALL_LIB_DIR=$(PREFIX)/lib/$(DEB_HOST_MULTIARCH) +export INSTALL_INCLUDE_DIR=$(PREFIX)/include
# compile flags MASTER_CC_FLAGS := -c -Wall -DLINUX
Wookey