summaryrefslogtreecommitdiffstats
path: root/src/jasper.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-07-20 10:25:38 (GMT)
committerTony Theodore <tonyt@logyst.com>2017-07-20 10:25:38 (GMT)
commit4e3f9c4e4f253a2839a5bd8e817526d64c0a1a74 (patch)
tree37dc67ef41f6c8b4144f9e4bdfa594502b454957 /src/jasper.mk
parentbec723f574da69d4e4fdb2bac9cb7750c9082134 (diff)
downloadmxe-4e3f9c4e4f253a2839a5bd8e817526d64c0a1a74.zip
mxe-4e3f9c4e4f253a2839a5bd8e817526d64c0a1a74.tar.gz
mxe-4e3f9c4e4f253a2839a5bd8e817526d64c0a1a74.tar.bz2
ccfits cfitsio devil jasper: update and switch to cmake
Diffstat (limited to 'src/jasper.mk')
-rw-r--r--src/jasper.mk30
1 files changed, 12 insertions, 18 deletions
diff --git a/src/jasper.mk b/src/jasper.mk
index 7449646..05d94ec 100644
--- a/src/jasper.mk
+++ b/src/jasper.mk
@@ -4,25 +4,19 @@ PKG := jasper
$(PKG)_WEBSITE := https://www.ece.uvic.ca/~mdadams/jasper/
$(PKG)_DESCR := JasPer
$(PKG)_IGNORE :=
-$(PKG)_VERSION := 1.900.1
-$(PKG)_CHECKSUM := 6b905a9c2aca2e275544212666eefc4eb44d95d0a57e4305457b407fe63f9494
-$(PKG)_SUBDIR := jasper-$($(PKG)_VERSION)
-$(PKG)_FILE := jasper-$($(PKG)_VERSION).zip
-$(PKG)_URL := https://www.ece.uvic.ca/~mdadams/jasper/software/$($(PKG)_FILE)
+$(PKG)_VERSION := 2.0.13
+$(PKG)_CHECKSUM := b50413b41bfc82ae419298b41eadcde1aa31f362fb9dc2ac089e5cbc19f60c24
+$(PKG)_GH_CONF := mdadams/jasper, version-
$(PKG)_DEPS := gcc jpeg
-define $(PKG)_UPDATE
- $(WGET) -q -O- 'https://www.ece.uvic.ca/~mdadams/jasper/' | \
- grep 'jasper-' | \
- $(SED) -n 's,.*jasper-\([0-9][^>]*\)\.zip.*,\1,p' | \
- head -1
-endef
-
define $(PKG)_BUILD
- cd '$(1)' && ./configure \
- $(MXE_CONFIGURE_OPTS) \
- --enable-libjpeg \
- --disable-opengl \
- --without-x
- $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= LDFLAGS="-no-undefined"
+ cd '$(BUILD_DIR)' && $(TARGET)-cmake '$(SOURCE_DIR)' \
+ -DJAS_ENABLE_SHARED=$(CMAKE_SHARED_BOOL) \
+ -DJAS_ENABLE_LIBJPEG=ON \
+ -DJAS_ENABLE_OPENGL=OFF \
+ -DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF \
+ -DJAS_ENABLE_DOC=OFF \
+ -DJAS_ENABLE_PROGRAMS=OFF
+ $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
+ $(MAKE) -C '$(BUILD_DIR)' -j 1 install
endef