openbsd-ports/comms/hylafax/patches/patch-configure
naddy f94d27dbdd - allow building with tiff 3.7
- no regression tests available
2005-06-18 18:48:12 +00:00

71 lines
2.0 KiB
Plaintext

$OpenBSD: patch-configure,v 1.4 2005/06/18 18:48:12 naddy Exp $
--- configure.orig Tue Oct 1 16:05:55 2002
+++ configure Sat Jun 18 19:23:37 2005
@@ -37,10 +37,10 @@
#
# Setup general configuration parameters.
#
-DIR_BIN=/usr/local/bin
-DIR_SBIN=/usr/local/sbin
-DIR_LIBDATA=/usr/local/lib/fax
-DIR_LIB=/usr/local/lib
+DIR_BIN=${PREFIX}/bin
+DIR_SBIN=${PREFIX}/sbin
+DIR_LIBDATA=${PREFIX}/lib/fax
+DIR_LIB=${PREFIX}/lib
DIR_LIBEXEC=$DIR_SBIN
DIR_SPOOL=/var/spool/hylafax
DIR_HTML=/var/httpd/htdocs/hylafax
@@ -72,8 +72,8 @@ DPS=no
GS=no
IMP=no
UTMP=auto
-LIBTIFF="-L/usr/local/lib -ltiff"
-TIFFINC=/usr/local/include
+LIBTIFF="-L${LOCALBASE}/lib -ltiff -ljpeg -lz"
+TIFFINC=${LOCALBASE}/include
TIFFBIN=
LIBZ=
ZLIBINC=
@@ -81,8 +81,8 @@ REGEX=yes
LIBREGEX='-L${DEPTH}/regex -lregex'
REGEXINC='${DEPTH}/${TOPSRCDIR}/regex'
DBLIB=no
-LIBDB="-L/usr/local/lib -ldb"
-DBLIBINC=/usr/local/include
+LIBDB="-L${LOCALBASE}/lib -ldb"
+DBLIBINC=${LOCALBASE}/include
FAXD=
LIBFAXSERVER='libfaxserver.${DSO}'
LIBUTIL='${UTIL}/libfaxutil.${DSO}'
@@ -2312,11 +2312,10 @@ EOF
Note " Found tiffio.h version ${header_ver}"
Note " Found libtiff version ${lib_ver}"
if [ ${header_ver} -ge 19960307 ]; then
- if [ "${lib_ver}" = "3.4" ]; then
- tiff_runlen_t="uint16"
- elif [ "${lib_ver}" = "3.5" ]; then
- tiff_runlen_t="uint32"
- fi
+ case ${lib_ver} in
+ 3.4) tiff_runlen_t="uint16" ;;
+ 3.[567]) tiff_runlen_t="uint32" ;;
+ esac
fi
else
cat 1>&2 <<EOF
@@ -2351,9 +2350,10 @@ EOF
Incompatible TIFF Library.
-HylaFAX ${VERSION} requires TIFF software distribution ver 3.4 or 3.5.
-If you do not have up to date TIFF software on your system then you can
-retrieve it from the location where you obtained this software.
+HylaFAX ${VERSION} requires TIFF software distribution ver 3.4, 3.5, or
+3.6. If you do not have up to date TIFF software on your system then
+you can retrieve it from the location where you obtained this software.
+The Home Page for version 3.5 and later is http://www.libtiff.org
EOF
boom
return 1