diff --git a/index.html b/index.html index c9a1528c..98716962 100644 --- a/index.html +++ b/index.html @@ -1645,6 +1645,10 @@ local-pkg-list: $(LOCAL_PKG_LIST) libdvdread libdvdread + + libechonest + libechonest + libepoxy libepoxy diff --git a/src/libechonest-test.cpp b/src/libechonest-test.cpp new file mode 100644 index 00000000..b627c7b0 --- /dev/null +++ b/src/libechonest-test.cpp @@ -0,0 +1,7 @@ +#include + +int main() +{ + Echonest::Song a; + return 0; +} diff --git a/src/libechonest.mk b/src/libechonest.mk new file mode 100644 index 00000000..3c73ff30 --- /dev/null +++ b/src/libechonest.mk @@ -0,0 +1,38 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := libechonest +$(PKG)_IGNORE := +$(PKG)_VERSION := 2.3.1 +$(PKG)_CHECKSUM := ab961ab952df30c5234b548031594d7e281e7c9f2a9d1ce91fe5421ddde85e7c +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := https://github.com/lfranchi/$(PKG)/archive/$($(PKG)_VERSION).tar.gz +$(PKG)_DEPS := gcc qt qjson + +define $(PKG)_UPDATE + $(call MXE_GET_GITHUB_TAGS, lfranchi/libechonest) +endef + +define $(PKG)_BUILD + mkdir '$(1).build' + cd '$(1).build' && '$(TARGET)-cmake' '$(1)' + $(MAKE) -C '$(1).build' -j '$(JOBS)' + $(MAKE) -C '$(1).build' -j 1 install + + # create pkg-config file + $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/pkgconfig' + (echo 'Name: $(PKG)'; \ + echo 'Version: $($(PKG)_VERSION)'; \ + echo 'Description: $(PKG)'; \ + echo 'Requires: QtCore QtNetwork'; \ + echo 'Libs: -lechonest';) \ + > '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc' + + '$(TARGET)-g++' \ + -W -Wall -Werror -ansi -pedantic \ + '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + `'$(TARGET)-pkg-config' libechonest --cflags --libs` +endef + +$(PKG)_BUILD_STATIC =