1997-11-03 12:10:43 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
1997-11-04 07:55:12 +00:00
|
|
|
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^CFLAGS = -ansi -O"`
|
1997-11-03 12:10:43 +00:00
|
|
|
do
|
|
|
|
patch -p << END_OF_PATCH
|
|
|
|
--- $f.orig
|
|
|
|
+++ $f
|
|
|
|
@@ -72,1 +72,1 @@
|
|
|
|
-CFLAGS = -ansi -O
|
|
|
|
+#CFLAGS = -ansi -O
|
|
|
|
END_OF_PATCH
|
|
|
|
done
|
1997-11-04 07:55:12 +00:00
|
|
|
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^ZLIB_LIB = "`
|
1997-11-03 12:10:43 +00:00
|
|
|
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
|
1997-11-04 07:55:12 +00:00
|
|
|
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^JPEG_LIB = "`
|
1997-11-03 12:10:43 +00:00
|
|
|
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
|
1997-11-04 07:55:12 +00:00
|
|
|
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^ZLIBLIB="`
|
1997-11-03 12:10:43 +00:00
|
|
|
do
|
|
|
|
patch -p << END_OF_PATCH
|
|
|
|
--- $f.orig
|
|
|
|
+++ $f
|
|
|
|
@@ -72,2 +72,2 @@
|
|
|
|
-ZLIBINC=\$(srcdir)/../zlib
|
|
|
|
-ZLIBLIB=\$(srcdir)/../zlib
|
|
|
|
+ZLIBINC=/usr/include
|
1998-08-21 21:40:02 +00:00
|
|
|
+ZLIBLIB=-lz \$(pwrkdir)
|
1997-11-03 12:10:43 +00:00
|
|
|
END_OF_PATCH
|
|
|
|
done
|
|
|
|
|
1997-11-04 07:55:12 +00:00
|
|
|
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^ZLIBLIB="`
|
1997-11-03 12:10:43 +00:00
|
|
|
do
|
|
|
|
patch -p << END_OF_PATCH
|
|
|
|
--- $f.orig
|
|
|
|
+++ $f
|
|
|
|
@@ -72,2 +72,2 @@
|
|
|
|
-ZLIBLIB=\$(srcdir)/../zlib
|
|
|
|
-ZLIBINC=\$(srcdir)/../zlib
|
1998-08-21 21:40:02 +00:00
|
|
|
+ZLIBLIB=-lz \$(pwrkdir)
|
1997-11-03 12:10:43 +00:00
|
|
|
+ZLIBINC=/usr/include
|
|
|
|
END_OF_PATCH
|
|
|
|
done
|
|
|
|
|
1997-11-04 07:55:12 +00:00
|
|
|
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^JPEGLIB="`
|
1997-11-03 12:10:43 +00:00
|
|
|
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
|
|
|
|
|
1997-11-04 07:55:12 +00:00
|
|
|
for f in `find ${WRKSRC} -type f -name Makefile.in -print | xargs grep -l "^JPEGLIB="`
|
1997-11-03 12:10:43 +00:00
|
|
|
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
|