2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2014-08-22 13:54:36 +01:00
|
|
|
|
|
|
|
PKG := luabind
|
2018-08-13 17:38:36 +01:00
|
|
|
$(PKG)_WEBSITE := https://github.com/luabind/luabind
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := Luabind
|
2014-08-22 13:54:36 +01:00
|
|
|
$(PKG)_IGNORE :=
|
|
|
|
$(PKG)_VERSION := 0.9.1
|
2015-09-23 09:32:58 +01:00
|
|
|
$(PKG)_CHECKSUM := 80de5e04918678dd8e6dac3b22a34b3247f74bf744c719bae21faaa49649aaae
|
2014-08-22 13:54:36 +01:00
|
|
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_URL := https://$(SOURCEFORGE_MIRROR)/luabind/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc boost lua
|
2014-08-22 13:54:36 +01:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2017-03-04 10:33:47 +00:00
|
|
|
$(WGET) -q -O- 'https://sourceforge.net/projects/luabind/files/luabind/' | \
|
2014-08-22 13:54:36 +01:00
|
|
|
$(SED) -n 's,.*<a href="/projects/luabind/files/luabind/\([0-9][^>]*\)/.*,\1,p' | \
|
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
|
|
|
mkdir '$(1).build'
|
2016-10-19 00:29:33 +01:00
|
|
|
cd '$(1).build' && '$(TARGET)-cmake' \
|
2014-08-22 13:54:36 +01:00
|
|
|
'$(1)'
|
|
|
|
$(MAKE) -C '$(1).build' -j '$(JOBS)' VERBOSE=1 || $(MAKE) -C '$(1).build' -j 1 VERBOSE=1
|
|
|
|
$(MAKE) -C '$(1).build' -j 1 install VERBOSE=1
|
2014-08-22 14:01:48 +01:00
|
|
|
|
|
|
|
'$(TARGET)-g++' \
|
2015-05-14 13:58:58 +01:00
|
|
|
-W -Wall \
|
2016-07-30 20:14:38 +01:00
|
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-luabind.exe' \
|
2014-08-22 14:01:48 +01:00
|
|
|
-llua -lluabind
|
2014-08-22 13:54:36 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(PKG)_BUILD_SHARED =
|