mirror of https://git.wownero.com/dsc/mxe.git
add package libechonest
This commit is contained in:
parent
a2e79fec92
commit
2794426ecd
|
@ -1645,6 +1645,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
|
||||||
<td class="package">libdvdread</td>
|
<td class="package">libdvdread</td>
|
||||||
<td class="website"><a href="https://dvdnav.mplayerhq.hu/">libdvdread</a></td>
|
<td class="website"><a href="https://dvdnav.mplayerhq.hu/">libdvdread</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="package">libechonest</td>
|
||||||
|
<td class="website"><a href="https://github.com/lfranchi/libechonest">libechonest</a></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="package">libepoxy</td>
|
<td class="package">libepoxy</td>
|
||||||
<td class="website"><a href="https://github.com/anholt/libepoxy">libepoxy</a></td>
|
<td class="website"><a href="https://github.com/anholt/libepoxy">libepoxy</a></td>
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#include <echonest/Song.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
Echonest::Song a;
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -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 =
|
Loading…
Reference in New Issue