diff options
author | Erwin Rol <erwin@erwinrol.com> | 2006-02-20 20:58:06 +0000 |
---|---|---|
committer | Erwin Rol <erwin@erwinrol.com> | 2006-02-20 20:58:06 +0000 |
commit | feb5560968250b8d641a113f4c3479f5645248f4 (patch) | |
tree | d17e258753f3462cd5029d6a41780056146b82ae /rules/xorg-lib-Xp.make | |
parent | 6825a103434592805a74b6cb107c981434a1df89 (diff) | |
download | ptxdist-feb5560968250b8d641a113f4c3479f5645248f4.tar.gz ptxdist-feb5560968250b8d641a113f4c3479f5645248f4.tar.xz |
Added initial xorg lib makefiles
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.10-trunk@4648 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/xorg-lib-Xp.make')
-rw-r--r-- | rules/xorg-lib-Xp.make | 134 |
1 files changed, 134 insertions, 0 deletions
diff --git a/rules/xorg-lib-Xp.make b/rules/xorg-lib-Xp.make new file mode 100644 index 000000000..91f7ab524 --- /dev/null +++ b/rules/xorg-lib-Xp.make @@ -0,0 +1,134 @@ +# -*-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 := ftp://ftp.gwdg.de/pub/x11/x.org/pub/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) + +-include $(call package_depfile) + +# ---------------------------------------------------------------------------- +# 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_URL)) + +# ---------------------------------------------------------------------------- +# 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_SOURCE)) + @$(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) + +$(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 + @$(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,default) + @$(call install_fixup,PACKAGE,xorg-lib-Xp) + @$(call install_fixup,PRIORITY,optional) + @$(call install_fixup,VERSION,$(XORG_LIB_XP_VERSION)) + @$(call install_fixup,SECTION,base) + @$(call install_fixup,AUTHOR,"Erwin Rol <ero\@pengutronix.de>") + @$(call install_fixup,DEPENDS,) + @$(call install_fixup,DESCRIPTION,missing) + +#FIXME + + + @$(call install_finish) + + @$(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 |