mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
libgeotiff: added a recipe for version 1.4.0
This commit is contained in:
93
sci-libs/libgeotiff/libgeotiff-1.4.0.recipe
Normal file
93
sci-libs/libgeotiff/libgeotiff-1.4.0.recipe
Normal file
@@ -0,0 +1,93 @@
|
||||
SUMMARY="Proj.4 cartographic projection software."
|
||||
DESCRIPTION="
|
||||
Proj.4 is a library for performing conversions between cartographic projections.
|
||||
"
|
||||
HOMEPAGE="http://trac.osgeo.org/geotiff/"
|
||||
COPYRIGHT="
|
||||
2000, Frank Warmerdam
|
||||
"
|
||||
LICENSE="GNU GPL v2"
|
||||
SRC_URI="http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="d0acb8d341fd6a8f2c673456e09fdb8f50f91e3166ac934719fe05b30d328329"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86 x86_64"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
if [ $targetArchitecture != x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PATCHES="libgeotiff-$portVersion.patchset"
|
||||
PROVIDES="
|
||||
libgeotiff$secondaryArchSuffix = $portVersion compat >= 1
|
||||
lib:libgeotiff$secondaryArchSuffix = 2.1.0 compat >= 2.1
|
||||
cmd:applygeo
|
||||
cmd:geotifcp
|
||||
cmd:listgeo
|
||||
cmd:makegeo
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libtiff$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libproj$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libproj$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:autoreconf
|
||||
cmd:aclocal
|
||||
cmd:libtoolize
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:awk
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
jpegDir=$portPackageLinks/lib~libjpeg
|
||||
projDir=$portPackageLinks/lib~libproj
|
||||
zlibDir=$portPackageLinks/lib~libz
|
||||
autoreconf -fi
|
||||
runConfigure ./configure --with-zlib=$zlibDir \
|
||||
--with-jpeg=$jpegDir --with-proj=$projDir
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libgeotiff
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$manDir/man1
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
libgeotiff${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
||||
devel:libgeotiff$secondaryArchSuffix = 2.1.0 compat >= 2.1
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libgeotiff$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
72
sci-libs/libgeotiff/patches/libgeotiff-1.4.0.patchset
Normal file
72
sci-libs/libgeotiff/patches/libgeotiff-1.4.0.patchset
Normal file
@@ -0,0 +1,72 @@
|
||||
From a1a4855588d674e61491802fc9d4f8131d3c377b Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Fri, 22 Aug 2014 16:28:23 +0000
|
||||
Subject: Haiku patch
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 7172bee..28e1906 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -125,7 +125,7 @@ if test "$with_zip" != "" -a "x$with_zip" != "xno" ; then
|
||||
AC_CHECK_HEADERS([zlib.h],, [AC_MSG_ERROR([cannot find zlib.h, bailing out])])
|
||||
AC_SEARCH_LIBS([inflateInit_], [z],
|
||||
[ZIP_CONFIG=yes], [ZIP_CONFIG=no],
|
||||
- [-L$with_zip/lib -lm])
|
||||
+ [-L$with_zip/lib])
|
||||
|
||||
else
|
||||
AC_MSG_CHECKING([for zlib])
|
||||
@@ -167,7 +167,7 @@ if test "$with_jpeg" = "no" -o "$with_jpeg" = "" ; then
|
||||
else
|
||||
AC_SEARCH_LIBS([jinit_compress_master], [jpeg],
|
||||
[JPEG_CONFIG=yes], [JPEG_CONFIG=no],
|
||||
- [-L$with_jpeg/lib -lm])
|
||||
+ [-L$with_jpeg/lib])
|
||||
fi
|
||||
|
||||
if test "${JPEG_CONFIG}" != "no" ; then
|
||||
@@ -208,19 +208,19 @@ if test "$with_libtiff" != "" ; then
|
||||
fi
|
||||
LIBS_SAVED="$LIBS"
|
||||
AC_CHECK_LIB(tiff,TIFFOpen,[TIFF_CONFIG=yes],
|
||||
- AC_MSG_ERROR([failed to link with -ltiff to find TIFFOpen]),-lm)
|
||||
+ AC_MSG_ERROR([failed to link with -ltiff to find TIFFOpen]),)
|
||||
AC_CHECK_LIB(tiff,TIFFMergeFieldInfo,[TIFF_CONFIG=yes],
|
||||
AC_MSG_ERROR([Libtiff 3.6.0 Beta or later required for this version of
|
||||
-libgeotiff. Please upgrade or use an older version of libgeotiff.]),-lm)
|
||||
+libgeotiff. Please upgrade or use an older version of libgeotiff.]),)
|
||||
LIBS="$LIBS_SAVED"
|
||||
else
|
||||
AC_CHECK_LIB(tiff,TIFFOpen,[TIFF_CONFIG=yes],
|
||||
AC_MSG_ERROR([You will need to substantially rewrite libxtiff to
|
||||
-build libgeotiff without libtiff]),-lm)
|
||||
+build libgeotiff without libtiff]),)
|
||||
LIBS_SAVED="$LIBS"
|
||||
AC_CHECK_LIB(tiff,TIFFMergeFieldInfo,[TIFF_CONFIG=yes],
|
||||
AC_MSG_ERROR([Libtiff 3.6.0 Beta or later required for this version of
|
||||
-libgeotiff. Please upgrade libtiff or use an older version of libgeotiff.]),-lm)
|
||||
+libgeotiff. Please upgrade libtiff or use an older version of libgeotiff.]),)
|
||||
LIBS="$LIBS -ltiff"
|
||||
TIFF_INC=
|
||||
TIFF_CONFIG="yes"
|
||||
@@ -280,13 +280,13 @@ elif test "$PROJ_LIB" != "" -a "$PROJ_INC" != "" ; then
|
||||
PROJ_INC=-I$PROJ_INC
|
||||
|
||||
AC_SUBST(PROJ_INC,$PROJ_INC)
|
||||
- AC_DEFINE(HAVE_PROJECTS_H)
|
||||
- AC_DEFINE(HAVE_LIBPROJ)
|
||||
+ AC_DEFINE([HAVE_PROJECTS_H], [], [Description])
|
||||
+ AC_DEFINE([HAVE_LIBPROJ], [], [Description])
|
||||
AC_SUBST([HAVE_LIBPROJ])
|
||||
PROJ_CONFIG="yes"
|
||||
|
||||
else
|
||||
- AC_CHECK_LIB(proj,pj_init,,,-lm)
|
||||
+ AC_CHECK_LIB(proj,pj_init,,,)
|
||||
AC_CHECK_HEADERS(proj_api.h,,)
|
||||
PROJ_CONFIG="yes"
|
||||
fi
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
Reference in New Issue
Block a user