mxe/src/exiv2.mk

36 lines
1.3 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2009-12-21 17:16:39 +00:00
PKG := exiv2
$(PKG)_IGNORE :=
2013-12-04 02:27:15 +00:00
$(PKG)_VERSION := 0.24
$(PKG)_CHECKSUM := f4a443e6c7fb9d9f5e787732f76969a64c72c4c04af69b10ed57f949c2dfef8e
2009-12-21 17:16:39 +00:00
$(PKG)_SUBDIR := exiv2-$($(PKG)_VERSION)
$(PKG)_FILE := exiv2-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://www.exiv2.org/$($(PKG)_FILE)
2015-09-23 08:41:16 +01:00
$(PKG)_DEPS := gcc expat gettext zlib
2009-12-21 17:16:39 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.exiv2.org/download.html' | \
2009-12-21 17:16:39 +00:00
grep 'href="exiv2-' | \
$(SED) -n 's,.*exiv2-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
2014-06-10 11:46:12 +01:00
# libtool looks for a pei* format when linking shared libs
# apparently there's no real difference b/w pei and pe
# so we set the libtool cache variables
# https://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/libpei.h?annotate=1.25&cvsroot=src
2009-12-21 17:16:39 +00:00
cd '$(1)' && ./configure \
2014-06-10 11:46:12 +01:00
$(MXE_CONFIGURE_OPTS) \
2009-12-21 17:16:39 +00:00
--disable-visibility \
--disable-nls \
2014-06-10 11:46:12 +01:00
--with-expat \
$(if $(BUILD_SHARED),\
lt_cv_deplibs_check_method='file_magic file format (pe-i386|pe-x86-64)' \
lt_cv_file_magic_cmd='$$OBJDUMP -f')
2009-12-21 17:16:39 +00:00
$(MAKE) -C '$(1)/xmpsdk/src' -j '$(JOBS)'
$(MAKE) -C '$(1)/src' -j '$(JOBS)' install-lib
endef