view src/transfig.mk @ 4178:a7e6025bcb39

transfig: update to v3.2.6 * src/transfig.mk: update version, checksum, build rule * src/mingw-transfig-1-fixes.patch: removed * src/transfig-1-configure.patch: removed * src/transfig-1-fixes.patch: new patch * dist-files.mk: remove mingw-transfig-1-fixes.patch, transfig-1-configure.patch, add transfig-1-fixes.patch
author John Donoghue
date Tue, 26 Jul 2016 11:15:06 -0400
parents 13be64f9f16d
children df658d20fd3b
line wrap: on
line source

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

PKG             := transfig
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 3.2.6
$(PKG)_CHECKSUM := 880acd94d679649da43ba5eea16e329b85840bcf
$(PKG)_SUBDIR   := fig2dev-$($(PKG)_VERSION)-rc
$(PKG)_FILE     := fig2dev-$($(PKG)_VERSION)-rc.tar.xz
$(PKG)_URL      := http://$(SOURCEFORGE_MIRROR)/project/mcj/$($(PKG)_FILE)
$(PKG)_DEPS     := jpeg libpng

$(PKG)_CONFIG_OPTS := 

ifeq ($(MXE_WINDOWS_BUILD),yes)
  $(PKG)_CONFIG_OPTS += --without-xpm LIBS=-liconv \
      BITMAPDIR="/share/fig2dev/bitmaps" \
      RGB_FILE="/share/fig2dev/rgb.txt"
endif

define $(PKG)_UPDATE
    echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
    echo $($(PKG)_VERSION)
endef

define $(PKG)_BUILD
    cd '$(1)' \
        && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \
        $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
        $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
        $($(PKG)_CONFIG_OPTS) \
        --prefix='$(HOST_PREFIX)' 

    $(MAKE) -C '$(1)' -j '$(JOBS)' 
    $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)'
endef