# -*-makefile-*- # $Id$ # # Copyright (C) 2002, 2003 by Pengutronix e.K., Hildesheim, Germany # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # # # We provide this packet # PACKAGES-$(PTXCONF_GMP3) += gmp3 # # Paths and names # GMP3_VERSION = 3.1.1 GMP3 = gmp-$(GMP3_VERSION) GMP3_SUFFIX = tar.gz GMP3_URL = $(PTXCONF_SETUP_GNUMIRROR)/gmp/$(GMP3).$(GMP3_SUFFIX) GMP3_SOURCE = $(SRCDIR)/$(GMP3).$(GMP3_SUFFIX) GMP3_DIR = $(BUILDDIR)/$(GMP3) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- gmp3_get: $(STATEDIR)/gmp3.get $(STATEDIR)/gmp3.get: $(gmp3_get_deps_default)) @$(call targetinfo, $@) @$(call touch, $@) $(GMP3_SOURCE): @$(call targetinfo, $@) @$(call get, GMP3) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- gmp3_extract: $(STATEDIR)/gmp3.extract $(STATEDIR)/gmp3.extract: $(gmp3_extract_deps_default) @$(call targetinfo, $@) @$(call clean, $(GMP3_DIR)) @$(call extract, GMP3) @$(call touch, $@) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- gmp3_prepare: $(STATEDIR)/gmp3.prepare GMP3_PATH = PATH=$(CROSS_PATH) GMP3_ENV = $(CROSS_ENV) GMP3_AUTOCONF = $(CROSS_AUTOCONF_USR) GMP3_AUTOCONF += --enable-shared GMP3_AUTOCONF += --enable-static $(STATEDIR)/gmp3.prepare: $(gmp3_prepare_deps_default) @$(call targetinfo, $@) cd $(GMP3_DIR) && \ $(GMP3_PATH) $(GMP3_ENV) \ ./configure $(GMP3_AUTOCONF) @$(call touch, $@) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- gmp3_compile: $(STATEDIR)/gmp3.compile $(STATEDIR)/gmp3.compile: $(gmp3_compile_deps_default) @$(call targetinfo, $@) $(GMP3_PATH) make -C $(GMP3_DIR) @$(call touch, $@) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- gmp3_install: $(STATEDIR)/gmp3.install $(STATEDIR)/gmp3.install: $(gmp3_install_deps_default) @$(call targetinfo, $@) @$(call install, GMP3) @$(call touch, $@) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- gmp3_targetinstall: $(STATEDIR)/gmp3.targetinstall $(STATEDIR)/gmp3.targetinstall: $(gmp3_targetinstall_deps_default) @$(call targetinfo, $@) @$(call install_init, gmp3) @$(call install_fixup, gmp3,PACKAGE,gmp3) @$(call install_fixup, gmp3,PRIORITY,optional) @$(call install_fixup, gmp3,VERSION,$(GMP3_VERSION)) @$(call install_fixup, gmp3,SECTION,base) @$(call install_fixup, gmp3,AUTHOR,"Robert Schwebel ") @$(call install_fixup, gmp3,DEPENDS,) @$(call install_fixup, gmp3,DESCRIPTION,missing) # FIXME: RSC: check if wildcard copy works @$(call install_copy, gmp3, 0, 0, 0644, $(SYSROOT)/lib/libgmp.so*, /usr/lib/) @$(call install_finish, gmp3) @$(call touch, $@) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- gmp3_clean: rm -rf $(STATEDIR)/gmp3.* rm -rf $(IMAGEDIR)/gmp3_* rm -rf $(GMP3_DIR) # vim: syntax=make