Skip to contentSkip to conversation

exiv2: new package

PATCH Superseded Nicolas Serafini 3 participants 5 messages Nov 7, 2014 – Jun 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 exiv2: new package

Add support for Exiv2 library and utility to manage image metadata

Exiv2 can be built in GPLv2+ or commercial version. But in commercial version the Nikon lens name database and the NLS support has to be disabled for copyright reason.

---
Changes v2 -> v3:
- New Config.in option for Nikon lens name database
- Update/Add comments on copyright in commercial version
- Commercial licence removed when not selected (copy/paste bug)

Changes v1 -> v2:
- Make conditional GPLv2+/commercial license
- Wrap Config.in to 72 columns
- Leave default value for package source

---
 package/Config.in        |  1 +
 package/exiv2/Config.in  | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 package/exiv2/exiv2.hash |  4 ++++
 package/exiv2/exiv2.mk   | 39 +++++++++++++++++++++++++++++++++++++++
 4 files changed, 91 insertions(+)
 create mode 100644 package/exiv2/Config.in
 create mode 100644 package/exiv2/exiv2.hash
 create mode 100644 package/exiv2/exiv2.mk
package/Config.in +1 -0
index 28cf703..6abf344 100644
@@ -625,6 +625,7 @@ menu "Graphics"
 	source "package/adwaita-icon-theme/Config.in"
 	source "package/atk/Config.in"
 	source "package/cairo/Config.in"
+	source "package/exiv2/Config.in"
 	source "package/fltk/Config.in"
 	source "package/fontconfig/Config.in"
 	source "package/freetype/Config.in"
package/exiv2/Config.in new file +47 -0

47 lines not on this page · raw message

package/exiv2/exiv2.hash new file +4 -0
new file mode 100644
index 0000000..d4f8c60
@@ -0,0 +1,4 @@
+# From http://www.exiv2.org/download.html
+md5 b8a23dc56a98ede85c00718a97a8d6fc exiv2-0.24.tar.gz
+# Locally calculated
+sha256 f4a443e6c7fb9d9f5e787732f76969a64c72c4c04af69b10ed57f949c2dfef8e exiv2-0.24.tar.gz
package/exiv2/exiv2.mk new file +39 -0
new file mode 100644
index 0000000..39f713a
@@ -0,0 +1,39 @@
+################################################################################
+#
+# exiv2
+#
+################################################################################
+
+EXIV2_VERSION = 0.24
+EXIV2_SITE = http://www.exiv2.org
+EXIV2_INSTALL_STAGING = YES
+
+ifneq ($(BR2_PACKAGE_EXIV2_LENSDATA),y)
+EXIV2_CONF_OPTS += --disable-lensdata
+endif
+
+ifeq ($(BR2_PACKAGE_EXIV2_COMMERCIAL),y)
+EXIV2_LICENSE = commercial
+# NLS support is disabled in commercial version due to the copyright
+# of the translated texts.
+EXIV2_CONF_OPTS += --enable-commercial --disable-nls
+else
+EXIV2_LICENSE = GPLv2+
+EXIV2_LICENSE_FILES = COPYING
+endif
+
+ifeq ($(BR2_PACKAGE_EXIV2_PNG),y)
+EXIV2_CONF_OPTS += --with-zlib=$(STAGING_DIR)
+EXIV2_DEPENDENCIES += zlib
+else
+EXIV2_CONF_OPTS += --without-zlib
+endif
+
+ifeq ($(BR2_PACKAGE_EXIV2_XMP),y)
+EXIV2_CONF_OPTS += --enable-xmp --with-expat=$(STAGING_DIR)/usr/lib
+EXIV2_DEPENDENCIES += expat
+else
+EXIV2_CONF_OPTS += --disable-xmp
+endif
+
+$(eval $(autotools-package))
Signature · 1 line
2.1.3
#1 lore raw

PATCH v3 1/1 exiv2: new package

Dear Nicolas Serafini,

Quoted 7 lines · Nicolas Serafini

Add support for Exiv2 library and utility to manage image metadata

Exiv2 can be built in GPLv2+ or commercial version. But in commercial version the Nikon lens name database and the NLS support has to be disabled for copyright reason.

Thanks, I've applied your patch to the next branch. However, I've done a number of changes before applying your patch:

[Thomas:
- switch to using the CMake build system, which works better than the clunky autoconf + manual Makefile based build system.
- add missing toolchains dependencies: does not build in static library configuration, needs C++, etc.]

If you could test the next branch, and verify that it continues to work in your situation, it would be great.

Thanks a lot,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH v3 1/1 exiv2: new package

Dear Thomas Petazzoni,

Quoted 9 lines · On Sat, 22 Nov 2014 18:14:44 +0100 Thomas Petazzoni…

Dear Nicolas Serafini,

Quoted 6 lines · Nicolas Serafini

Add support for Exiv2 library and utility to manage image metadata

Exiv2 can be built in GPLv2+ or commercial version. But in commercial version the Nikon lens name database and the NLS support has to be disabled for copyright reason.

Quoted 8 lines
Quoted 1 line

Thanks, I've applied your patch to the next branch. However, I've done a number of changes before applying your patch:

[Thomas:
- switch to using the CMake build system, which works better
than the clunky autoconf + manual Makefile based build system.

I started using cmake for this package, but the functionality is marked as "work in progress" and is expected to be 100% functional for release 0.25. Still I just tested with several configurations and it works.

Quoted 2 lines

- add missing toolchains dependencies: does not build in static library configuration, needs C++, etc.]

Thank you for adding toolchains dependencies. I would be careful to add them next time.

Quoted 3 lines

If you could test the next branch, and verify that it continues to work in your situation, it would be great.

I tested it and it works as before.

Thanks for this commit

Regards,
Nicolas

Quoted 4 lines

Thanks a lot,

Thomas

Signature · 7 lines
Nicolas Serafini
R&D Embedded Software Engineer

www.sensefly.com
Route de Gen?ve 38
1033 Cheseaux-Lausanne
Switzerland
#3 lore raw

PATCH v3 1/1 exiv2: new package

In reply to Nicolas Serafini

Am Fri, 07 Nov 2014 11:48:14 +0100 schrieb Nicolas Serafini:

Quoted 1 line

+EXIV2_INSTALL_STAGING = YES

Hi,

afaics no other buildroot package uses exiv2 so I would to remove the staging install, any objections?

Regards, Bernd

#4 lore raw

PATCH v3 1/1 exiv2: new package

Hello,

Quoted 4 lines · Bernd Kuhls
Quoted 1 line

+EXIV2_INSTALL_STAGING = YES

afaics no other buildroot package uses exiv2 so I would to remove the staging install, any objections?

It is a library, so it makes sense to have it installed in staging. There are plenty of other libraries that are not used by other packages in Buildroot, but by people for their own custom/private applications. Removing the staging installation for all those libraries would not make sense.

So, I would say that we should keep the staging installation for exiv2.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com