mupdf: build shared library and apps

* don't use builtin libs
* create devel package
This commit is contained in:
Sergei Reznikov
2015-04-02 14:10:31 +03:00
parent 34bb552088
commit c781aed645
3 changed files with 71 additions and 9 deletions

View File

@@ -0,0 +1,26 @@
diff -Naur mupdf-1.6-source.orig/source/fitz/load-jpx.c mupdf-1.6-source/source/fitz/load-jpx.c
--- mupdf-1.6-source.orig/source/fitz/load-jpx.c 2014-09-30 13:25:12.000000000 +0200
+++ mupdf-1.6-source/source/fitz/load-jpx.c 2014-11-17 18:45:27.202705119 +0100
@@ -1,13 +1,5 @@
#include "mupdf/fitz.h"
-/* Without the definition of OPJ_STATIC, compilation fails on windows
- * due to the use of __stdcall. We believe it is required on some
- * linux toolchains too. */
-#define OPJ_STATIC
-#ifndef _MSC_VER
-#define OPJ_HAVE_STDINT_H
-#endif
-
#include <openjpeg.h>
static void fz_opj_error_callback(const char *msg, void *client_data)
@@ -117,7 +109,7 @@
opj_stream_set_read_function(stream, fz_opj_stream_read);
opj_stream_set_skip_function(stream, fz_opj_stream_skip);
opj_stream_set_seek_function(stream, fz_opj_stream_seek);
- opj_stream_set_user_data(stream, &sb);
+ opj_stream_set_user_data(stream, &sb, NULL);
/* Set the length to avoid an assert */
opj_stream_set_user_data_length(stream, size);

View File

@@ -98,7 +98,7 @@ index 75573da..c6588be 100644
From 9a1e2d416be441c199f83239ec3fa0e336c4e0b6 Mon Sep 17 00:00:00 2001
From: Sergei Reznikov <diver@gelios.net>
From: Gerasim Troeglazov <3deyes@gmail.com>
Date: Tue, 31 Mar 2015 16:21:27 +0300
Subject: gcc2 fixes