Mercurial > mxe-octave
view src/glproto.mk @ 6396:d5e6775fb3bc release
Add uninstall options to remove local packages and settings (Bug #62352)
* src/default-octave.mk, src/release-octave.mk, src/stable-octave.mk: save api version to file
* tools/makeinst-script.sh.in: add uninstall options, and on set, remove specified files from appdata/octave
(grafted from 8fe292548edfeb8a82e64f0e2b5da1a65e35d835)
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 31 Aug 2022 08:09:19 -0400 |
parents | 979f5b397e51 |
children |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := glproto $(PKG)_IGNORE := $(PKG)_VERSION := 1.4.17 $(PKG)_CHECKSUM := 20e061c463bed415051f0f89e968e331a2078551 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 $(PKG)_URL := https://www.x.org/archive/individual/proto/$($(PKG)_FILE) $(PKG)_DEPS := define $(PKG)_UPDATE $(WGET) -q -O- 'https://www.x.org/archive/individual/proto/' | \ $(SED) -n 's|.*glproto-\([0-9\.]*\)\.tar.*|\1|p' | $(SORT) -V | \ tail -1 endef ifeq ($(MXE_WINDOWS_BUILD),yes) define $(PKG)_BUILD endef else define $(PKG)_BUILD mkdir '$(1)/.build' cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \ $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ --prefix='$(HOST_PREFIX)' \ && $(CONFIGURE_POST_HOOK) $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)' endef endif