Mercurial > mxe-octave
view src/freeglut.mk @ 3412:b52660819c01
bzip2: Make and install bzip2.exe in mingw
* src/bzip2.mk: Make and install bzip2.exe in mingw
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 11 Jan 2014 18:25:55 -0500 |
parents | 5ef49fb3299d |
children | 13be64f9f16d |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := freeglut $(PKG)_IGNORE := $(PKG)_CHECKSUM := 4debbe559c6c9841ce1abaddc9d461d17c6083b1 $(PKG)_SUBDIR := freeglut-$(word 1,$(subst -, ,$($(PKG)_VERSION))) $(PKG)_FILE := freeglut-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/freeglut/freeglut/$($(PKG)_VERSION)/$($(PKG)_FILE) $(PKG)_DEPS := define $(PKG)_UPDATE $(WGET) -q -O- 'http://sourceforge.net/projects/freeglut/files/freeglut/' | \ $(SED) -n 's,.*freeglut-\([0-9][^>]*\)\.tar.*,\1,p' | \ head -1 endef define $(PKG)_BUILD cd '$(1)' && ./autogen.sh cd '$(1)' && ./configure \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ --prefix='$(HOST_PREFIX)' \ --enable-replace-glut \ --disable-debug \ --without-progs \ --without-x $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= EXPORT_FLAGS='-DFREEGLUT_STATIC' '$(MXE_CC)' \ -W -Wall -Werror -ansi -pedantic \ '$(2).c' -o '$(HOST_BINDIR)/test-freeglut.exe' \ `'$(MXE_PKG_CONFIG)' glut --cflags --libs` endef