diff options
author | tg <tg@FreeBSD.org> | 1997-11-03 12:10:43 +0000 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 1997-11-03 12:10:43 +0000 |
commit | c6010d616542bed224ce112469e824d25c6e0f11 (patch) | |
tree | 01093759f786db45d52523d2e0b1ee525fb8eb8e /graphics/hdf/scripts | |
parent | e116acc8bf0a3f1cfae3d06c3f32746d4809f7de (diff) | |
download | FreeBSD-ports-c6010d616542bed224ce112469e824d25c6e0f11.zip FreeBSD-ports-c6010d616542bed224ce112469e824d25c6e0f11.tar.gz |
Import HDF port. HDF is yet another graphics format.
PR: 4546
Submitted by: Mikhail Teterin <mi@aldan.ziplink.net>
Diffstat (limited to 'graphics/hdf/scripts')
-rw-r--r-- | graphics/hdf/scripts/post-patch | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/graphics/hdf/scripts/post-patch b/graphics/hdf/scripts/post-patch new file mode 100644 index 0000000..d0c121f --- /dev/null +++ b/graphics/hdf/scripts/post-patch @@ -0,0 +1,83 @@ +#!/bin/sh + +for f in `find $1 -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 $1 -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 $1 -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 $1 -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=/usr/lib +END_OF_PATCH +done + +for f in `find $1 -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=/usr/lib ++ZLIBINC=/usr/include +END_OF_PATCH +done + +for f in `find $1 -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 $1 -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 |