Mercurial > mxe-octave
comparison src/exiv2.mk @ 616:3b62d2016275
new package: exiv2
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Mon, 21 Dec 2009 18:16:39 +0100 |
parents | |
children | 915f601c3da7 |
comparison
equal
deleted
inserted
replaced
615:483207bb0000 | 616:3b62d2016275 |
---|---|
1 # Copyright (C) 2009 Volker Grabsch | |
2 # | |
3 # Permission is hereby granted, free of charge, to any person obtaining | |
4 # a copy of this software and associated documentation files (the | |
5 # "Software"), to deal in the Software without restriction, including | |
6 # without limitation the rights to use, copy, modify, merge, publish, | |
7 # distribute, sublicense, and/or sell copies of the Software, and to | |
8 # permit persons to whom the Software is furnished to do so, subject | |
9 # to the following conditions: | |
10 # | |
11 # The above copyright notice and this permission notice shall be | |
12 # included in all copies or substantial portions of the Software. | |
13 # | |
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
15 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
16 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
17 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | |
18 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | |
19 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | |
20 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
21 | |
22 # Exiv2 | |
23 PKG := exiv2 | |
24 $(PKG)_IGNORE := | |
25 $(PKG)_VERSION := 0.18.2 | |
26 $(PKG)_CHECKSUM := 452c824a780843a568eeef68f30785ee4141b0a8 | |
27 $(PKG)_SUBDIR := exiv2-$($(PKG)_VERSION) | |
28 $(PKG)_FILE := exiv2-$($(PKG)_VERSION).tar.gz | |
29 $(PKG)_WEBSITE := http://www.exiv2.org/ | |
30 $(PKG)_URL := http://www.exiv2.org/$($(PKG)_FILE) | |
31 $(PKG)_DEPS := gcc libiconv zlib expat | |
32 | |
33 define $(PKG)_UPDATE | |
34 wget -q -O- 'http://www.exiv2.org/download.html' | \ | |
35 grep 'href="exiv2-' | \ | |
36 $(SED) -n 's,.*exiv2-\([0-9][^>]*\)\.tar.*,\1,p' | \ | |
37 head -1 | |
38 endef | |
39 | |
40 define $(PKG)_BUILD | |
41 # workaround for the missing snprintf() in the <cstdio> of GCC-4.4.0 | |
42 $(SED) 's,#include <cstdio>,#include <stdio.h>,' -i '$(1)/xmpsdk/src/XMPMeta.cpp' | |
43 # wine confuses the cross-compiling detection, so set it explicitly | |
44 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure' | |
45 cd '$(1)' && ./configure \ | |
46 --host='$(TARGET)' \ | |
47 --disable-shared \ | |
48 --prefix='$(PREFIX)/$(TARGET)' \ | |
49 --disable-visibility \ | |
50 --disable-nls \ | |
51 --with-expat | |
52 $(MAKE) -C '$(1)/xmpsdk/src' -j '$(JOBS)' | |
53 $(MAKE) -C '$(1)/src' -j '$(JOBS)' install-lib | |
54 endef |