annotate src/libharu.mk @ 2855:47558e958113

Allow static/shared libraries to be configured in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Thu, 15 Nov 2012 16:11:45 -0500
parents 4d0f3a9da57e
children 100e618349f7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2309
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
3
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
4 PKG := libharu
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
6 $(PKG)_CHECKSUM := b75ec6052b8d72aa7f23d67adcdf9df4847b64ca
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := libharu-$($(PKG)_VERSION)
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
8 $(PKG)_FILE := libharu-$($(PKG)_VERSION).tar.gz
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
9 $(PKG)_URL := http://libharu.org/files/$($(PKG)_FILE)
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcc zlib libpng
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
11
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://libharu.org/files/?C=M;O=D' | \
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
14 $(SED) -n 's,.*libharu-\([0-9][^>]*\)\.tar.*,\1,p' | \
2309
3b26d4088373 package libharu: fix update macro
Tony Theodore <tonyt@logyst.com>
parents: 2239
diff changeset
15 grep -v 'rc' | \
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
16 head -1
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
17 endef
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
18
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
19 define $(PKG)_BUILD
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
20 cd '$(1)' && ./configure \
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
21 --host='$(TARGET)' \
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
22 --prefix='$(PREFIX)/$(TARGET)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
23 $(ENABLE_SHARED_OR_STATIC) \
2239
44319d50af0b package libharu: specify paths for png and zlib
Tony Theodore <tonyt@logyst.com>
parents: 2234
diff changeset
24 --with-zlib='$(PREFIX)/$(TARGET)' \
44319d50af0b package libharu: specify paths for png and zlib
Tony Theodore <tonyt@logyst.com>
parents: 2234
diff changeset
25 --with-png='$(PREFIX)/$(TARGET)'
2234
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
26 $(MAKE) -C '$(1)' -j '$(JOBS)' install
109d622402db new packages: libharu wt
Luis Saavedra <luis94855510@gmail.com>
parents:
diff changeset
27 endef