annotate src/pdflib_lite.mk @ 306:85ffa9259036

validate downloads using SHA-1 checksums
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 05 Apr 2009 14:00:17 +0200
parents 6098a4a72b60
children 001f5e9b8374
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
170
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # PDFlib Lite
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
3 PKG := pdflib_lite
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
4 $(PKG)_VERSION := 7.0.4
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
5 $(PKG)_CHECKSUM := bc2fb4639bcb09d319ad7a1141616fcd50a7d7be
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
6 $(PKG)_SUBDIR := PDFlib-Lite-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
7 $(PKG)_FILE := PDFlib-Lite-$($(PKG)_VERSION).tar.gz
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
8 $(PKG)_WEBSITE := http://www.pdflib.com/download/pdflib-family/pdflib-lite/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
9 $(PKG)_URL := http://www.pdflib.com/binaries/PDFlib/$(subst .,,$($(PKG)_VERSION))/$($(PKG)_FILE)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 302
diff changeset
10 $(PKG)_DEPS := gcc
170
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 wget -q -O- 'http://www.pdflib.com/download/pdflib-family/pdflib-lite/' | \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 $(SED) -n 's,.*PDFlib-Lite-\([0-9][^>]*\)\.tar.*,\1,p' | \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 head -1
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_BUILD
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 $(SED) 's,ac_sys_system=`uname -s`,ac_sys_system=MinGW,' -i '$(1)/configure'
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 cd '$(1)' && ./configure \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 --host='$(TARGET)' \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 --disable-shared \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 --prefix='$(PREFIX)/$(TARGET)' \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --without-openssl \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --without-java \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --without-py \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --without-perl \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --without-ruby \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --without-tcl \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --disable-php \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --enable-cxx \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --enable-large-files \
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 CFLAGS='-D_IOB_ENTRIES=20'
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 $(SED) 's,-DPDF_PLATFORM=[^ ]* ,,' -i '$(1)/config/mkcommon.inc'
173
b279dbda0f54 improved parallel builds of packages 'binutils', 'pdflib_lite' and 'sdl'
Volker Grabsch <vog@notjusthosting.com>
parents: 170
diff changeset
35 $(MAKE) -C '$(1)/libs' -j '$(JOBS)'
b279dbda0f54 improved parallel builds of packages 'binutils', 'pdflib_lite' and 'sdl'
Volker Grabsch <vog@notjusthosting.com>
parents: 170
diff changeset
36 $(MAKE) -C '$(1)/libs' -j 1 install
170
194ae633dc3b translated package: pdflib_lite
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 endef