1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
#!/bin/sh
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^CFLAGS = -ansi -O"`
do
patch -p << END_OF_PATCH
--- $f.orig
+++ $f
@@ -72,1 +72,1 @@
-CFLAGS = -ansi -O
+#CFLAGS = -ansi -O
END_OF_PATCH
done
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^ZLIB_LIB = "`
do
patch -p << END_OF_PATCH
--- $f.orig
+++ $f
@@ -72,1 +72,1 @@
-ZLIB_LIB = \$(TOP_SRCDIR)/hdf/zlib/libz.a
+#ZLIB_LIB = \$(TOP_SRCDIR)/hdf/zlib/libz.a
END_OF_PATCH
done
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^JPEG_LIB = "`
do
patch -p << END_OF_PATCH
--- $f.orig
+++ $f
@@ -72,1 +72,1 @@
-JPEG_LIB = \$(TOP_SRCDIR)/hdf/jpeg/libjpeg.a
+#JPEG_LIB = \$(TOP_SRCDIR)/hdf/jpeg/libjpeg.a
END_OF_PATCH
done
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^ZLIBLIB="`
do
patch -p << END_OF_PATCH
--- $f.orig
+++ $f
@@ -72,2 +72,2 @@
-ZLIBINC=\$(srcdir)/../zlib
-ZLIBLIB=\$(srcdir)/../zlib
+ZLIBINC=/usr/include
+ZLIBLIB=-lz \$(pwrkdir)
END_OF_PATCH
done
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^ZLIBLIB="`
do
patch -p << END_OF_PATCH
--- $f.orig
+++ $f
@@ -72,2 +72,2 @@
-ZLIBLIB=\$(srcdir)/../zlib
-ZLIBINC=\$(srcdir)/../zlib
+ZLIBLIB=-lz
+ZLIBINC=/usr/include
END_OF_PATCH
done
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^JPEGLIB="`
do
patch -p << END_OF_PATCH
--- $f.orig
+++ $f
@@ -72,2 +72,2 @@
-JPEGINC=\$(srcdir)/../jpeg
-JPEGLIB=\$(srcdir)/../jpeg
+JPEGINC=\$(prefix)/include
+JPEGLIB=\$(prefix)/lib
END_OF_PATCH
done
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^JPEGLIB="`
do
patch -p << END_OF_PATCH
--- $f.orig
+++ $f
@@ -72,2 +72,2 @@
-JPEGLIB=\$(srcdir)/../jpeg
-JPEGINC=\$(srcdir)/../jpeg
+JPEGLIB=\$(prefix)/lib
+JPEGINC=\$(prefix)/include
END_OF_PATCH
done
|