]> git.pld-linux.org Git - packages/openjpeg.git/blame - openjpeg-opt.patch
- g++ nor sed 4 not needed
[packages/openjpeg.git] / openjpeg-opt.patch
CommitLineData
4a454e17
JB
1--- openjpeg_v1_4_sources_r697/libopenjpeg/Makefile.am.orig 2011-01-02 19:14:45.000000000 +0100
2+++ openjpeg_v1_4_sources_r697/libopenjpeg/Makefile.am 2012-01-21 11:28:33.590467246 +0100
3@@ -5,7 +5,7 @@
4
5 lib_LTLIBRARIES = libopenjpeg.la
6
7-INCLUDES = -I.. -I.
8+AM_CPPFLAGS = -I.. -I.
9
10 libopenjpeg_la_LDFLAGS = -no-undefined \
11 -version-info $(CURRENT):$(BUILD):$(MINOR)
12@@ -28,17 +28,15 @@
13 dos2unix:
14 @$(DOS2UNIX) $(SRCS) $(INCLS)
15
16-COMPILERFLAGS = -Wall -O3 -ffast-math -std=c99
17+AM_CFLAGS = -Wall -ffast-math -std=c99
18
19 if with_sharedlibs
20-COMPILERFLAGS += -DOPJ_EXPORTS
21+AM_CFLAGS += -DOPJ_EXPORTS
22 else
23-COMPILERFLAGS += -DOPJ_STATIC
24+AM_CFLAGS += -DOPJ_STATIC
25 libopenjpeg_la_LDFLAGS += -static
26 endif
27
28-CFLAGS = $(COMPILERFLAGS) $(INCLUDES)
29-
30 headerdir = openjpeg-$(MAJOR).$(MINOR)
31
32 all-local:
33--- openjpeg_v1_4_sources_r697/jp3d/libjp3dvm/Makefile.am.orig 2011-01-02 19:14:46.000000000 +0100
34+++ openjpeg_v1_4_sources_r697/jp3d/libjp3dvm/Makefile.am 2012-01-21 11:30:00.757136830 +0100
35@@ -27,18 +27,16 @@
36 dos2unix:
37 @$(DOS2UNIX) $(SRCS) $(INCLS)
38
39-INCLUDES = -I../.. -I.
40-COMPILERFLAGS = -Wall -O3 -ffast-math -std=c99
41+AM_CPPFLAGS = -I../.. -I.
42+AM_CFLAGS = -Wall -ffast-math -std=c99
43
44 if with_sharedlibs
45-COMPILERFLAGS += -DOPJ_EXPORTS
46+AM_CFLAGS += -DOPJ_EXPORTS
47 else
48-COMPILERFLAGS += -DOPJ_STATIC
49+AM_CFLAGS += -DOPJ_STATIC
50 libopenjp3dvm_la_LDFLAGS += -static
51 endif
52
53-CFLAGS = $(COMPILERFLAGS) $(INCLUDES)
54-#CFLAGS += -DJP3D_VERSION="\"$(MAJOR).$(MINOR).$(BUILD)\""
55
56 headerdir = openjpeg3d-$(MAJOR).$(MINOR)
57
58--- openjpeg_v1_4_sources_r697/jpwl/Makefile.am.orig 2011-01-02 19:14:48.000000000 +0100
59+++ openjpeg_v1_4_sources_r697/jpwl/Makefile.am 2012-01-21 11:45:58.817168910 +0100
60@@ -37,28 +37,28 @@
61 dos2unix:
62 @$(DOS2UNIX) $(SRCS) $(INCLS)
63
64-COMPILERFLAGS = -Wall -ffast-math -std=c99
65+AM_CFLAGS = -Wall -ffast-math -std=c99
66
67 USERLIBS =
68-INCLUDES = -I.. -I. -I../libopenjpeg -I../common
69+AM_CPPFLAGS = -I.. -I. -I../libopenjpeg -I../common
70
71 if with_libtiff
72-INCLUDES += @tiffincludes@
73+AM_CPPFLAGS += @tiffincludes@
74 USERLIBS += @tifflibs@
75 endif
76
77 if with_libpng
78-INCLUDES += @pngincludes@
79+AM_CPPFLAGS += @pngincludes@
80 USERLIBS += @pnglibs@
81 endif
82
83 if with_liblcms2
84-INCLUDES += @lcms2includes@
85+AM_CPPFLAGS += @lcms2includes@
86 USERLIBS += @lcms2libs@
87 endif
88
89 if with_liblcms1
90-INCLUDES += @lcms1includes@
91+AM_CPPFLAGS += @lcms1includes@
92 USERLIBS += @lcms1libs@
93 endif
94
95@@ -70,13 +70,13 @@
96 JPWL_image_to_j2k_CFLAGS = $(COMPILERFLAGS) $(INCLUDES) -DUSE_JPWL
97
98 if with_sharedlibs
99-COMPILERFLAGS += -DOPJ_EXPORTS
100+AM_CPPFLAGS += -DOPJ_EXPORTS
101 else
102-COMPILERFLAGS += -DOPJ_STATIC
103+AM_CPPFLAGS += -DOPJ_STATIC
104 libopenjpeg_JPWL_la_LDFLAGS += -static
105 endif
106
107-CFLAGS = $(COMPILERFLAGS) $(INCLUDES) -DUSE_JPWL
108+AM_CPPFLAGS += -DUSE_JPWL
109 LDADD = ./libopenjpeg_JPWL.la $(USERLIBS)
110
111 JPWL_j2k_to_image_SOURCES = ../common/getopt.c ../codec/index.c \
This page took 0.064782 seconds and 4 git commands to generate.