mirror of https://git.wownero.com/dsc/mxe.git
add primesieve library
This commit is contained in:
parent
7eb2514bf0
commit
ef7f3d0f58
|
@ -2465,6 +2465,11 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
|
|||
<td class="package">zziplib</td>
|
||||
<td class="website"><a href="http://zziplib.sourceforge.net/">ZZIPlib</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="package">primesieve</td>
|
||||
<td class="website"><a href="http://primesieve.org/">Primesieve</a></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<script>
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
# This file is part of MXE.
|
||||
# See index.html for further information.
|
||||
|
||||
PKG := primesieve
|
||||
$(PKG)_IGNORE :=
|
||||
$(PKG)_VERSION := 5.3
|
||||
$(PKG)_CHECKSUM := dac89a72cc3789035149a7d2cfa48ef7d722fd8a
|
||||
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
||||
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
|
||||
$(PKG)_URL := http://dl.bintray.com/kimwalisch/$(PKG)/$($(PKG)_FILE)
|
||||
$(PKG)_DEPS := gcc
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
$(WGET) -q -O- 'http://dl.bintray.com/kimwalisch/primesieve/' | \
|
||||
$(SED) -n 's,.*primesieve-\([0-9][^>]*\)\.tar.*,\1,p' | \
|
||||
tail -1
|
||||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && ./configure \
|
||||
$(MXE_CONFIGURE_OPTS)
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= html_DATA=
|
||||
|
||||
$(TARGET)-g++ -s -std=c++0x -o '$(1)/examples/test-primesieve.exe' \
|
||||
'$(1)/examples/count_primes.cpp' \
|
||||
'-lprimesieve'
|
||||
$(INSTALL) -m755 '$(1)/examples/test-primesieve.exe' '$(PREFIX)/$(TARGET)/bin/'
|
||||
|
||||
endef
|
Loading…
Reference in New Issue