From: Arun Isaac <arunisaac@systemreboot.net>
To: 27774@debbugs.gnu.org
Subject: [bug#27774] [PATCH 1/1] gnu: Add libgeotiff.
Date: Wed, 3 Jan 2018 22:26:00 +0530 [thread overview]
Message-ID: <20180103165600.662-2-arunisaac@systemreboot.net> (raw)
In-Reply-To: <20180103165600.662-1-arunisaac@systemreboot.net>
From: Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
* gnu/packages/geo.scm (libgeotiff): New variable.
Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
---
gnu/packages/geo.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 7bf1562ba..c3a62c641 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -25,9 +25,11 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix utils)
+ #:use-module (gnu packages compression)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
#:use-module (gnu packages gtk)
+ #:use-module (gnu packages image)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages webkit)
#:use-module (gnu packages xml))
@@ -137,6 +139,55 @@ and driving.")
(home-page "https://wiki.gnome.org/Apps/Maps")
(license license:gpl2+)))
+(define-public libgeotiff
+ (package
+ (name "libgeotiff")
+ (version "1.4.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0vjy3bwfhljjx66p9w999i4mdhsf7vjshx29yc3pn5livf5091xd"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Remove .csv files, distributed from EPSG under a restricted
+ ;; license. See LICENSE for full license text.
+ (for-each delete-file (find-files "." "\\.csv$"))
+ ;; Now that we have removed the csv files, we need to modify the Makefile.
+ (substitute* "Makefile.in"
+ (("^all-am: .*$")
+ "all-am: Makefile $(LTLIBRARIES) $(HEADERS) geo_config.h\n")
+ (("^install-data-am: .*$")
+ "install-data-am: install-includeHEADERS"))))))
+ (build-system gnu-build-system)
+ (inputs
+ `(("libjpeg-turbo" ,libjpeg-turbo)
+ ("libtiff" ,libtiff)
+ ("proj.4" ,proj.4)
+ ("zlib" ,zlib)))
+ (arguments
+ `(#:configure-flags
+ (list (string-append "--with-zlib")
+ (string-append "--with-jpeg")
+ (string-append "--with-libtiff=" (assoc-ref %build-inputs "libtiff")))))
+ (synopsis "Library for handling GeoTIFF (geographic enabled TIFF)")
+ (description "libgeotiff is a library on top of libtiff for reading and
+writing GeoTIFF information tags.")
+ (home-page "https://trac.osgeo.org/geotiff/")
+ ;; This is a mixture of various contributions under different licenses.
+ ;; Note that the EPSG database is NOT "free to use" as the LICENSE file
+ ;; states, as its commercial redistribution is restricted. Hence, we have
+ ;; removed it from the package.
+ (license (list license:public-domain
+ license:x11
+ license:bsd-3
+ (license:non-copyleft "file://LICENSE"
+ "See LICENSE in the distribution.")))))
+
(define-public proj.4
(package
(name "proj.4")
--
2.15.1
next prev parent reply other threads:[~2018-01-03 16:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-20 15:50 [bug#27774] [PATCH] gnu: add libgeotiff Björn Höfling
2017-07-22 12:46 ` Marius Bakke
2017-07-22 13:48 ` Arun Isaac
2017-07-23 11:22 ` Björn Höfling
[not found] ` <0c9f175f.AEQANc_cQw0AAAAAAAAAAAPYhrgAAAACwQwAAAAAAAW9WABZc1em@mailjet.com>
2017-07-23 11:27 ` Björn Höfling
2017-07-23 15:36 ` Arun Isaac
2017-09-08 15:53 ` Ludovic Courtès
2017-09-13 6:55 ` Björn Höfling
2017-10-18 21:20 ` Ricardo Wurmus
2017-07-25 6:58 ` Arun Isaac
2018-01-03 16:55 ` [bug#27774] [PATCH 0/1] Add libgeotiff Arun Isaac
2018-01-03 16:56 ` Arun Isaac [this message]
2018-01-27 20:07 ` [bug#27774] [PATCH 1/1] gnu: " Björn Höfling
2018-01-03 18:24 ` [bug#27774] [PATCH 0/1] " Leo Famulari
2018-01-04 6:55 ` bug#27774: " Arun Isaac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180103165600.662-2-arunisaac@systemreboot.net \
--to=arunisaac@systemreboot.net \
--cc=27774@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).