Mercurial > mxe-octave
annotate src/libpano13.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 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2189
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. |
621
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 |
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
4 PKG := libpano13 |
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
1653
7edd14e8a941
upgrade packages: libpano13 x264
Volker Grabsch <vog@notjusthosting.com>
parents:
1645
diff
changeset
|
6 $(PKG)_CHECKSUM := 23849bdbdfc9176a2b53d157e58bd24aa0e7276e |
1645
9b1b4dc75390
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
1644
diff
changeset
|
7 $(PKG)_SUBDIR := $(PKG)-$(word 1,$(subst _, ,$($(PKG)_VERSION))) |
9b1b4dc75390
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
1644
diff
changeset
|
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz |
9b1b4dc75390
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
1644
diff
changeset
|
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/panotools/$(PKG)/$($(PKG)_SUBDIR)/$($(PKG)_FILE) |
621
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 $(PKG)_DEPS := gcc jpeg tiff libpng zlib |
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 |
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.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://sourceforge.net/api/file/index/project-id/96188/rss?path=/libpano13' | \ |
621
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 $(SED) -n 's,.*libpano13-\([0-9].*\)\.tar.*,\1,p' | \ |
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 tail -1 |
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 endef |
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 |
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 define $(PKG)_BUILD |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
19 $(SED) -i 's,WINDOWSX\.H,windowsx.h,' '$(1)/sys_win.h' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
20 $(SED) -i 's,\$${WINDRES-windres},$(TARGET)-windres,' '$(1)/build/win32/compile-resource' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
21 $(SED) -i 's,m4 -DBUILDNUMBER=\$$buildnumber,$(SED) "s/BUILDNUMBER/\$$buildnumber/g",' '$(1)/build/win32/compile-resource' |
1198
26fc031aab3e
bugfix for package libpano13: include ppm.c in the build
Bart van Andel <bavanandel@gmail.com>
parents:
1125
diff
changeset
|
22 $(SED) -i 's,\(@HAVE_MINGW_TRUE@am__objects_4 = .*\),\1 ppm.lo,' '$(1)/Makefile.in' |
26fc031aab3e
bugfix for package libpano13: include ppm.c in the build
Bart van Andel <bavanandel@gmail.com>
parents:
1125
diff
changeset
|
23 $(SED) -i 's,\(@HAVE_MINGW_TRUE@WIN_SRC = .*\),\1 ppm.c,' '$(1)/Makefile.in' |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
24 $(SED) -i 's,mv.*libpano13\.dll.*,,' '$(1)/Makefile.in' |
621
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 cd '$(1)' && ./configure \ |
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 --prefix='$(PREFIX)/$(TARGET)' \ |
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
27 --host='$(TARGET)' \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
28 $(ENABLE_SHARED_OR_STATIC) \ |
621
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 --with-jpeg='$(PREFIX)/$(TARGET)'/lib \ |
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 --with-tiff='$(PREFIX)/$(TARGET)'/lib \ |
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 --with-png='$(PREFIX)/$(TARGET)'/lib \ |
2189
dc1705c24517
package gdal gdk-pixbuf libpano13: tiff 4 detection workaround
Mark Brand <mabrand@mabrand.nl>
parents:
1653
diff
changeset
|
32 --with-zlib='$(PREFIX)/$(TARGET)'/lib \ |
dc1705c24517
package gdal gdk-pixbuf libpano13: tiff 4 detection workaround
Mark Brand <mabrand@mabrand.nl>
parents:
1653
diff
changeset
|
33 LIBS="`'$(TARGET)-pkg-config' --libs libtiff-4`" |
621
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= |
544548c7cae9
new package: libpano13 (by Bart van Andel)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 endef |