mirror of https://git.wownero.com/dsc/mxe.git
enabled lcms for package libmng
Introduced lcms1 because libmng does not work with lcms2. Added -lcms to package qt.
This commit is contained in:
parent
dba3f257e4
commit
e64276e063
|
@ -0,0 +1,32 @@
|
|||
# This file is part of mingw-cross-env.
|
||||
# See doc/index.html for further information.
|
||||
|
||||
# lcms
|
||||
PKG := lcms1
|
||||
$(PKG)_IGNORE :=
|
||||
$(PKG)_VERSION := 1.19
|
||||
$(PKG)_CHECKSUM := d5b075ccffc0068015f74f78e4bc39138bcfe2d4
|
||||
$(PKG)_SUBDIR := lcms-$($(PKG)_VERSION)
|
||||
$(PKG)_FILE := lcms-$($(PKG)_VERSION).tar.gz
|
||||
$(PKG)_WEBSITE := http://www.littlecms.com/
|
||||
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/lcms/lcms/$($(PKG)_VERSION)/$($(PKG)_FILE)
|
||||
$(PKG)_DEPS := gcc jpeg tiff zlib
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
$(call SOURCEFORGE_FILES,http://sourceforge.net/projects/lcms/files/) | \
|
||||
$(SED) -n 's,.*lcms-\(1\.[^>]*\)\.tar.*,\1,p' | \
|
||||
tail -1
|
||||
endef
|
||||
|
||||
define $(PKG)_BUILD
|
||||
# wine confuses the cross-compiling detection, so set it explicitly
|
||||
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
|
||||
cd '$(1)' && ./configure \
|
||||
--prefix='$(PREFIX)/$(TARGET)' \
|
||||
--host='$(TARGET)' \
|
||||
--disable-shared \
|
||||
--with-jpeg \
|
||||
--with-tiff \
|
||||
--with-zlib
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS=
|
||||
endef
|
|
@ -10,7 +10,7 @@ $(PKG)_SUBDIR := libmng-$($(PKG)_VERSION)
|
|||
$(PKG)_FILE := libmng-$($(PKG)_VERSION).tar.bz2
|
||||
$(PKG)_WEBSITE := http://www.libmng.com/
|
||||
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/libmng/libmng-devel/$($(PKG)_VERSION)/$($(PKG)_FILE)
|
||||
$(PKG)_DEPS := gcc zlib jpeg
|
||||
$(PKG)_DEPS := gcc zlib jpeg lcms1
|
||||
|
||||
define $(PKG)_UPDATE
|
||||
$(call SOURCEFORGE_FILES,http://sourceforge.net/projects/libmng/files/) | \
|
||||
|
@ -21,7 +21,7 @@ endef
|
|||
define $(PKG)_BUILD
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)' \
|
||||
-f '$(1)'/makefiles/makefile.unix \
|
||||
CC=$(TARGET)-gcc CFLAGS='-DMNG_BUILD_SO'
|
||||
CC=$(TARGET)-gcc CFLAGS='-DMNG_BUILD_SO -DMNG_FULL_CMS'
|
||||
$(TARGET)-ranlib '$(1)/libmng.a'
|
||||
$(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
|
||||
$(INSTALL) -m644 '$(1)/libmng.a' '$(PREFIX)/$(TARGET)/lib/'
|
||||
|
|
Loading…
Reference in New Issue