Mercurial > mxe-octave
annotate src/transfig.mk @ 5281:9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
author | John Donoghue |
---|---|
date | Wed, 29 Jan 2020 08:34:50 -0500 |
parents | 62bdfe712ec6 |
children | bd132bde9ae2 |
rev | line source |
---|---|
3374 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := transfig | |
5 $(PKG)_IGNORE := | |
5218 | 6 $(PKG)_VERSION := 3.2.7b |
7 $(PKG)_CHECKSUM := 8097c178b7fff1023112250938cc87837c0f564e | |
4442 | 8 $(PKG)_SUBDIR := fig2dev-$($(PKG)_VERSION) |
9 $(PKG)_FILE := fig2dev-$($(PKG)_VERSION).tar.xz | |
4178 | 10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/mcj/$($(PKG)_FILE) |
3374 | 11 $(PKG)_DEPS := jpeg libpng |
12 | |
4212
df658d20fd3b
* transfig.mk: Always include -liconv in config options.
John W. Eaton <jwe@octave.org>
parents:
4178
diff
changeset
|
13 $(PKG)_CONFIG_OPTS := LIBS=-liconv |
4178 | 14 |
15 ifeq ($(MXE_WINDOWS_BUILD),yes) | |
4212
df658d20fd3b
* transfig.mk: Always include -liconv in config options.
John W. Eaton <jwe@octave.org>
parents:
4178
diff
changeset
|
16 $(PKG)_CONFIG_OPTS += --without-xpm \ |
4178 | 17 BITMAPDIR="/share/fig2dev/bitmaps" \ |
18 RGB_FILE="/share/fig2dev/rgb.txt" | |
19 endif | |
20 | |
3374 | 21 define $(PKG)_UPDATE |
5144 | 22 $(WGET) -q -O- 'http://sourceforge.net/projects/mcj/files/' | \ |
23 $(SED) -n 's,.*tr title="fig2dev-\(.*\)\.tar\.xz".*,\1,p' | \ | |
24 head -1 | |
3374 | 25 endef |
26 | |
27 define $(PKG)_BUILD | |
4178 | 28 cd '$(1)' \ |
3374 | 29 && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \ |
30 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | |
31 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ | |
4178 | 32 $($(PKG)_CONFIG_OPTS) \ |
3374 | 33 --prefix='$(HOST_PREFIX)' |
34 | |
35 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
36 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' | |
37 endef |