mxe/src/agg.mk

30 lines
1002 B
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2011-11-27 19:29:10 +00:00
PKG := agg
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.5
$(PKG)_CHECKSUM := d501eecd55fceeedf869b9354e7e13812289911f
2011-11-27 19:29:10 +00:00
$(PKG)_SUBDIR := agg-$($(PKG)_VERSION)
$(PKG)_FILE := agg-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://www.antigrain.com/$($(PKG)_FILE)
$(PKG)_DEPS := gcc freetype sdl
2011-11-27 19:29:10 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.antigrain.com/download/index.html' | \
2011-11-27 19:29:10 +00:00
$(SED) -n 's,.*<A href="http://www.antigrain.com/agg-\([0-9.]*\).tar.gz".*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
2015-09-08 19:17:59 +01:00
$(foreach f,authors news readme, mv '$(1)/$f' '$(1)/$f_';mv '$(1)/$f_' '$(1)/$(call uc,$f)';)
cd '$(1)' && autoreconf -fi -I $(PREFIX)/$(TARGET)/share/aclocal
cd '$(1)' && ./configure \
2015-09-08 19:17:59 +01:00
$(MXE_CONFIGURE_OPTS) \
2011-11-27 19:29:10 +00:00
--without-x
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
$(PKG)_BUILD_SHARED =