view src/pdflib_lite.mk @ 3632:4e78b4a9e87c

Add libcdio,mpcdec, vcdimager, a52dec, wavpack from mxe_devel * dist-files.mk: add libcdio.mk,libmpcdec-1-configure_ac.patch,libmpcdec.mk, vcdimager-* * index.html: add libcdio, libmpcdec, a52dec, wavpack * src/libcdio.mk: new file * src/libmpcdec-1-configure_ac.patch: new file * src/libmpcdec.mk: new file * src/vcdimager-1-configure.patch: new file * src/vcdimager.mk: new file * src/a52dec.mk: new file * src/wavpack-1-exec_prefix.patch: new file * src/wavpack.mk: new file
author John Donoghue <john.donoghue@ieee.org>
date Mon, 30 Jun 2014 06:10:45 -0400
parents 13be64f9f16d
children 4f1c4b172915
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := pdflib_lite
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 7.0.5p3
$(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     :=

define $(PKG)_UPDATE
    $(WGET) -q -O- 'http://www.pdflib.com/download/free-software/pdflib-lite-7/' | \
    $(SED) -n 's,.*PDFlib-Lite-\([0-9][^>]*\)\.tar.*,\1,p' | \
    head -1
endef

define $(PKG)_BUILD
    cd '$(1)' && aclocal -I config --install
    cd '$(1)' && autoconf
    cd '$(1)' && ./configure \
        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
        $(ENABLE_SHARED_OR_STATIC) \
        --prefix='$(HOST_PREFIX)' \
        --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
endef