mxe/src/djvulibre.mk

33 lines
1.1 KiB
Makefile
Raw Normal View History

2016-04-08 18:25:22 +01:00
# This file is part of MXE.
# See index.html for further information.
PKG := djvulibre
$(PKG)_IGNORE := 3.5.27
2016-04-09 11:47:35 +01:00
$(PKG)_SHORTVER := 3.5.25
$(PKG)_VERSION := $($(PKG)_SHORTVER).3
2016-04-08 18:25:22 +01:00
$(PKG)_CHECKSUM := 898d7ed6dd2fa311a521baa95407a91b20a872d80c45e8245442d64f142cb1e0
2016-04-09 11:47:35 +01:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_SHORTVER)
2016-04-08 18:25:22 +01:00
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/djvu/DjVuLibre/$($(PKG)_SHORTVER)/$($(PKG)_FILE)
2016-04-08 18:25:22 +01:00
$(PKG)_DEPS := gcc jpeg tiff zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://sourceforge.net/projects/djvu/files/DjVuLibre/' | \
$(SED) -n 's,.*/\([0-9][^A-Za-z"]*\)/".*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && autoreconf -fi && CPPFLAGS='-DDLL_EXPORT' ./configure \
2016-04-08 18:25:22 +01:00
$(MXE_CONFIGURE_OPTS) \
--disable-desktopfiles
2016-04-08 18:25:22 +01:00
$(MAKE) -C '$(1)' -j '$(JOBS)'
2016-04-10 06:02:01 +01:00
$(MAKE) -C '$(1)/libdjvu' -j 1 install-lib \
install-include install-pkgconfig
'$(TARGET)-g++' \
-W -Wall -Werror -pedantic -DDLL_EXPORT \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`'$(TARGET)-pkg-config' ddjvuapi --libs`
2016-04-08 18:25:22 +01:00
endef