# -*-makefile-*- # $Id: template 4565 2006-02-10 14:23:10Z mkl $ # # Copyright (C) 2006 by Erwin Rol # # 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 package # PACKAGES-$(PTXCONF_XORG_LIB_XP) += xorg-lib-Xp # # Paths and names # XORG_LIB_XP_VERSION := 1.0.0 XORG_LIB_XP := libXp-X11R7.0-$(XORG_LIB_XP_VERSION) XORG_LIB_XP_SUFFIX := tar.bz2 XORG_LIB_XP_URL := $(PTXCONF_SETUP_XORGMIRROR)/X11R7.0/src/lib//$(XORG_LIB_XP).$(XORG_LIB_XP_SUFFIX) XORG_LIB_XP_SOURCE := $(SRCDIR)/$(XORG_LIB_XP).$(XORG_LIB_XP_SUFFIX) XORG_LIB_XP_DIR := $(BUILDDIR)/$(XORG_LIB_XP) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- xorg-lib-Xp_get: $(STATEDIR)/xorg-lib-Xp.get $(STATEDIR)/xorg-lib-Xp.get: $(xorg-lib-Xp_get_deps_default) @$(call targetinfo, $@) @$(call touch, $@) $(XORG_LIB_XP_SOURCE): @$(call targetinfo, $@) @$(call get, XORG_LIB_XP) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- xorg-lib-Xp_extract: $(STATEDIR)/xorg-lib-Xp.extract $(STATEDIR)/xorg-lib-Xp.extract: $(xorg-lib-Xp_extract_deps_default) @$(call targetinfo, $@) @$(call clean, $(XORG_LIB_XP_DIR)) @$(call extract, XORG_LIB_XP) @$(call patchin, XORG_LIB_XP) @$(call touch, $@) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- xorg-lib-Xp_prepare: $(STATEDIR)/xorg-lib-Xp.prepare XORG_LIB_XP_PATH := PATH=$(CROSS_PATH) XORG_LIB_XP_ENV := $(CROSS_ENV) # # autoconf # XORG_LIB_XP_AUTOCONF := $(CROSS_AUTOCONF_USR) \ --disable-malloc0returnsnull $(STATEDIR)/xorg-lib-Xp.prepare: $(xorg-lib-Xp_prepare_deps_default) @$(call targetinfo, $@) @$(call clean, $(XORG_LIB_XP_DIR)/config.cache) cd $(XORG_LIB_XP_DIR) && \ $(XORG_LIB_XP_PATH) $(XORG_LIB_XP_ENV) \ ./configure $(XORG_LIB_XP_AUTOCONF) @$(call touch, $@) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- xorg-lib-Xp_compile: $(STATEDIR)/xorg-lib-Xp.compile $(STATEDIR)/xorg-lib-Xp.compile: $(xorg-lib-Xp_compile_deps_default) @$(call targetinfo, $@) cd $(XORG_LIB_XP_DIR) && $(XORG_LIB_XP_PATH) $(MAKE) $(PARALLELMFLAGS) @$(call touch, $@) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- xorg-lib-Xp_install: $(STATEDIR)/xorg-lib-Xp.install $(STATEDIR)/xorg-lib-Xp.install: $(xorg-lib-Xp_install_deps_default) @$(call targetinfo, $@) @$(call install, XORG_LIB_XP) @$(call touch, $@) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- xorg-lib-Xp_targetinstall: $(STATEDIR)/xorg-lib-Xp.targetinstall $(STATEDIR)/xorg-lib-Xp.targetinstall: $(xorg-lib-Xp_targetinstall_deps_default) @$(call targetinfo, $@) @$(call install_init, xorg-lib-Xp) @$(call install_fixup, xorg-lib-Xp,PACKAGE,xorg-lib-xp) @$(call install_fixup, xorg-lib-Xp,PRIORITY,optional) @$(call install_fixup, xorg-lib-Xp,VERSION,$(XORG_LIB_XP_VERSION)) @$(call install_fixup, xorg-lib-Xp,SECTION,base) @$(call install_fixup, xorg-lib-Xp,AUTHOR,"Erwin Rol ") @$(call install_fixup, xorg-lib-Xp,DEPENDS,) @$(call install_fixup, xorg-lib-Xp,DESCRIPTION,missing) @$(call install_copy, xorg-lib-Xp, 0, 0, 0644, \ $(XORG_LIB_XP_DIR)/src/.libs/libXp.so.6.2.0, \ $(XORG_LIBDIR)/libXp.so.6.2.0) @$(call install_link, xorg-lib-Xp, \ libXp.so.6.2.0, \ $(XORG_LIBDIR)/libXp.so.6) @$(call install_link, xorg-lib-Xp, \ libXp.so.6.2.0, \ $(XORG_LIBDIR)/libXp.so) @$(call install_finish, xorg-lib-Xp) @$(call touch, $@) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- xorg-lib-Xp_clean: rm -rf $(STATEDIR)/xorg-lib-Xp.* rm -rf $(IMAGEDIR)/xorg-lib-Xp_* rm -rf $(XORG_LIB_XP_DIR) # vim: syntax=make