Blame SOURCES/netpbm-jasper.patch

c6c7cd
diff -urNp a/config.mk.in b/config.mk.in
c6c7cd
--- a/config.mk.in	2018-11-21 12:46:22.044790058 +0100
c6c7cd
+++ b/config.mk.in	2018-11-22 13:13:10.260123268 +0100
c6c7cd
@@ -128,7 +128,7 @@ INSTALL = $(SRCDIR)/buildtools/install.s
c6c7cd
 
c6c7cd
 # STRIPFLAG is the option you pass to the above install program to make it
c6c7cd
 # strip unnecessary information out of binaries.
c6c7cd
-STRIPFLAG = -s
c6c7cd
+STRIPFLAG =
c6c7cd
 # If you don't want to strip the binaries, just leave it null:
c6c7cd
 #STRIPFLAG = 
c6c7cd
 
c6c7cd
@@ -482,12 +482,12 @@ JBIGLIB = $(INTERNAL_JBIGLIB)
c6c7cd
 JBIGHDR_DIR = $(INTERNAL_JBIGHDR_DIR)
c6c7cd
 
c6c7cd
 # The Jasper JPEG-2000 image compression library (aka JasPer):
c6c7cd
-JASPERLIB = $(INTERNAL_JASPERLIB)
c6c7cd
-JASPERHDR_DIR = $(INTERNAL_JASPERHDR_DIR)
c6c7cd
+JASPERLIB = "" 
c6c7cd
+JASPERHDR_DIR = "/usr/include/jasper"
c6c7cd
 # JASPERDEPLIBS is the libraries (-l options or file names) on which
c6c7cd
 # The Jasper library depends -- i.e. what you have to link into any
c6c7cd
 # executable that links in the Jasper library.
c6c7cd
-JASPERDEPLIBS =
c6c7cd
+JASPERDEPLIBS = -ljasper
c6c7cd
 #JASPERDEPLIBS = -ljpeg
c6c7cd
 
c6c7cd
 # And the Utah Raster Toolkit (aka URT aka RLE) library:
c6c7cd
diff -urNp a/converter/other/jbig/Makefile b/converter/other/jbig/Makefile
c6c7cd
--- a/converter/other/jbig/Makefile	2018-11-21 12:46:22.075789920 +0100
c6c7cd
+++ b/converter/other/jbig/Makefile	2018-11-22 13:13:40.837969056 +0100
c6c7cd
@@ -11,8 +11,9 @@ include $(BUILDDIR)/config.mk
c6c7cd
 
c6c7cd
 # INTERNAL_JBIGLIB must be relative to the current directory, because it
c6c7cd
 # may end up in MERGE_OBJECTS, which must be relative.
c6c7cd
-INTERNAL_JBIGLIB = libjbig/libjbig.a
c6c7cd
-INTERNAL_JBIGHDR_DIR = $(SRCDIR)/$(SUBDIR)/libjbig/include
c6c7cd
+INTERNAL_JBIGLIB = 
c6c7cd
+INTERNAL_JBIGHDR_DIR = /usr/include
c6c7cd
+#INTERNAL_JBIGHDR_DIR = $(SRCDIR)/$(SUBDIR)/libjbig/include
c6c7cd
 
c6c7cd
 EXTERN_INCLUDES =
c6c7cd
 ifneq ($(JBIGHDR_DIR),NONE)
c6c7cd
@@ -35,7 +36,6 @@ SCRIPTS =
c6c7cd
 
c6c7cd
 ifeq ($(JBIGLIB),$(INTERNAL_JBIGLIB))
c6c7cd
   JBIGLIB_DEP = $(JBIGLIB)
c6c7cd
-  SUBDIRS += libjbig
c6c7cd
 else
c6c7cd
   # It's not our internal version; user's on his own to make sure it's built
c6c7cd
 endif
c6c7cd
@@ -49,10 +49,3 @@ include $(SRCDIR)/common.mk
c6c7cd
 
c6c7cd
 $(BINARIES): %: %.o $(JBIGLIB_DEP) $(LIBOPT)
c6c7cd
 $(BINARIES): LDFLAGS_TARGET = $(shell $(LIBOPT) $(JBIGLIB))
c6c7cd
-
c6c7cd
-$(INTERNAL_JBIGLIB): $(BUILDDIR)/$(SUBDIR)/libjbig FORCE
c6c7cd
-	$(MAKE) -f $(SRCDIR)/$(SUBDIR)/libjbig/Makefile \
c6c7cd
-	  -C $(dir $@) $(notdir $@)
c6c7cd
-
c6c7cd
-.PHONY: FORCE
c6c7cd
-FORCE: