mxe/src/pdflib_lite.mk

39 lines
1.2 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2008-11-09 03:29:50 +00:00
PKG := pdflib_lite
$(PKG)_IGNORE :=
2012-06-11 18:41:01 +01:00
$(PKG)_CHECKSUM := 42e0605ae21f4b6d25fa2d20e78fed6df36fbaa9
$(PKG)_SUBDIR := PDFlib-Lite-$($(PKG)_VERSION)
$(PKG)_FILE := PDFlib-Lite-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://www.pdflib.com/binaries/PDFlib/$(subst .,,$(word 1,$(subst p, ,$($(PKG)_VERSION))))/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
2008-11-09 03:29:50 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.pdflib.com/download/free-software/pdflib-lite-7/' | \
2008-11-09 03:29:50 +00:00
$(SED) -n 's,.*PDFlib-Lite-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
2012-06-11 18:41:01 +01:00
cd '$(1)' && aclocal -I config --install
cd '$(1)' && autoconf
2008-11-09 03:29:50 +00:00
cd '$(1)' && ./configure \
--host='$(TARGET)' \
2012-06-11 18:41:01 +01:00
--build="`config.guess`" \
2008-11-09 03:29:50 +00:00
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--without-openssl \
--without-java \
--without-py \
--without-perl \
--without-ruby \
--without-tcl \
--enable-cxx \
--enable-large-files \
CFLAGS='-D_IOB_ENTRIES=20'
$(SED) -i 's,-DPDF_PLATFORM=[^ ]* ,,' '$(1)/config/mkcommon.inc'
$(MAKE) -C '$(1)/libs' -j '$(JOBS)'
$(MAKE) -C '$(1)/libs' -j 1 install
2008-11-09 03:29:50 +00:00
endef