mitsu70x: default data path should be /usr/local instead.

This commit is contained in:
Solomon Peachy 2016-10-06 08:20:52 -04:00
parent 1e7d888c18
commit 741718b445
3 changed files with 21 additions and 6 deletions

View file

@ -6,7 +6,7 @@ EXEC_NAME ?= dyesub_backend
PREFIX ?=
CUPS_BACKEND_DIR ?= $(PREFIX)`cups-config --serverbin`/backend
CUPS_DATA_DIR ?= $(PREFIX)`cups-config --datadir`
BACKEND_DATA_DIR ?= $(PREFIX)/usr/share/gutenprint/backend_data
BACKEND_DATA_DIR ?= $(PREFIX)/usr/local/share/gutenprint/backend_data
# Tools
CC ?= $(CROSS_COMPILE)gcc
@ -38,13 +38,13 @@ LDFLAGS += -ldl
#CPPFLAGS += -DUSE_LTDL
#LDFLAGS += -lltdl
# For the mitsu70x backend
CPPFLAGS += -DCORRTABLE_PATH=\"$(BACKEND_DATA_DIR)\"
# Build stuff
DEPS += backend_common.h
SOURCES = backend_common.c $(addsuffix .c,$(addprefix backend_,$(BACKENDS)))
# Backend-specific joy:
backend_mitsu70x.o: CPPFLAGS += -DCORRTABLE_PATH=\"$(BACKEND_DATA_DIR)\" -include lib70x/libMitsuD70ImageReProcess.h
# And now the rules!
.PHONY: clean all install cppcheck

View file

@ -67,7 +67,22 @@
#include "backend_common.h"
#include "lib70x/libMitsuD70ImageReProcess.h"
// #include "lib70x/libMitsuD70ImageReProcess.h"
#ifndef LUT_LEN
#define COLORCONV_RGB 0
#define COLORCONV_BGR 1
#define LUT_LEN 14739
struct BandImage {
void *imgbuf;
int32_t bytes_per_row;
uint16_t origin_cols;
uint16_t origin_rows;
uint16_t cols;
uint16_t rows;
};
#endif
/* Image processing library function prototypes */
#define LIB_NAME_RE "libMitsuD70ImageReProcess.so" // Reimplemented library

View file

@ -4,7 +4,7 @@ LIBMITSUD70_NAME ?= MitsuD70ImageReProcess
# Destination directories
DESTDIR ?=
LIBDIR ?= $(DESTDIR)/usr/local/lib
BACKEND_DATA_DIR ?= $(PREFIX)/usr/share/gutenprint/backend_data
BACKEND_DATA_DIR ?= $(PREFIX)/usr/local/share/gutenprint/backend_data
# Tools
CC ?= $(CROSS_COMPILE)gcc