2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2013-03-23 18:00:16 +00:00
|
|
|
|
|
|
|
PKG := lensfun
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_WEBSITE := http://lensfun.sourceforge.net/
|
2013-03-23 18:00:16 +00:00
|
|
|
$(PKG)_IGNORE :=
|
2014-10-22 03:34:01 +01:00
|
|
|
$(PKG)_VERSION := 0.3.0
|
2015-09-23 09:32:58 +01:00
|
|
|
$(PKG)_CHECKSUM := c2c3c03873cb549d49d42f118fcb0ffa95d1e45b9ff395e19facb63bf699bec1
|
2013-03-23 18:00:16 +00:00
|
|
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
|
2014-04-20 00:44:25 +01:00
|
|
|
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/lensfun/$($(PKG)_VERSION)/$($(PKG)_FILE)
|
2014-10-22 03:34:01 +01:00
|
|
|
$(PKG)_DEPS := gcc glib libgnurx libpng
|
2013-03-23 18:00:16 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-04 10:33:47 +00:00
|
|
|
$(WGET) -q -O- 'https://sourceforge.net/projects/lensfun/files/' | \
|
2014-04-20 00:44:25 +01:00
|
|
|
$(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
|
2014-04-21 04:49:31 +01:00
|
|
|
$(SORT) -V | \
|
2014-04-20 00:44:25 +01:00
|
|
|
tail -1
|
2013-03-23 18:00:16 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2014-10-22 03:34:01 +01:00
|
|
|
mkdir '$(1)/building'
|
2016-10-19 00:29:33 +01:00
|
|
|
cd '$(1)/building' && '$(TARGET)-cmake' .. \
|
2014-10-22 03:34:01 +01:00
|
|
|
-DINSTALL_IN_TREE=NO
|
|
|
|
$(MAKE) -C '$(1)/building' -j '$(JOBS)' install VERBOSE=1
|
2013-03-23 19:33:47 +00:00
|
|
|
|
2014-10-22 03:34:01 +01:00
|
|
|
# Don't use `-ansi`, as lensfun uses C++-style `//` comments.
|
2013-03-23 19:33:47 +00:00
|
|
|
'$(TARGET)-gcc' \
|
2014-10-22 03:34:01 +01:00
|
|
|
-W -Wall -Werror \
|
2016-07-30 20:14:38 +01:00
|
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-lensfun.exe' \
|
2014-10-22 03:34:01 +01:00
|
|
|
`'$(TARGET)-pkg-config' lensfun glib-2.0 --cflags --libs`
|
2013-03-23 18:00:16 +00:00
|
|
|
endef
|