# -*-makefile-*- # $Id: template-make 7759 2008-02-12 21:05:07Z mkl $ # # Copyright (C) 2008 by Robert Schwebel # # 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_USPLASH) += usplash # # Paths and names # USPLASH_VERSION := 0.5.19 USPLASH := usplash_$(USPLASH_VERSION) USPLASH_SUFFIX := tar.gz USPLASH_URL := http://archive.ubuntu.com/ubuntu/pool/main/u/usplash//$(USPLASH).$(USPLASH_SUFFIX) USPLASH_SOURCE := $(SRCDIR)/$(USPLASH).$(USPLASH_SUFFIX) USPLASH_DIR := $(BUILDDIR)/$(USPLASH) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- usplash_get: $(STATEDIR)/usplash.get $(STATEDIR)/usplash.get: @$(call targetinfo, $@) @$(call touch, $@) $(USPLASH_SOURCE): @$(call targetinfo, $@) @$(call get, USPLASH) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- usplash_extract: $(STATEDIR)/usplash.extract $(STATEDIR)/usplash.extract: @$(call targetinfo, $@) @$(call clean, $(USPLASH_DIR)) @$(call extract, USPLASH) mv $(BUILDDIR)/usplash $(USPLASH_DIR) @$(call patchin, USPLASH) @$(call touch, $@) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- usplash_prepare: $(STATEDIR)/usplash.prepare USPLASH_PATH := PATH=$(CROSS_PATH) USPLASH_ENV := $(CROSS_ENV) # # autoconf # USPLASH_AUTOCONF := $(CROSS_AUTOCONF_USR) $(STATEDIR)/usplash.prepare: @$(call targetinfo, $@) @$(call clean, $(USPLASH_DIR)/config.cache) # cd $(USPLASH_DIR) && \ # $(USPLASH_PATH) $(USPLASH_ENV) \ # ./configure $(USPLASH_AUTOCONF) @$(call touch, $@) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- usplash_compile: $(STATEDIR)/usplash.compile $(STATEDIR)/usplash.compile: @$(call targetinfo, $@) cd $(USPLASH_DIR) && \ $(USPLASH_ENV) $(USPLASH_PATH) \ $(MAKE) \ $(PARALLELMFLAGS_BROKEN) @$(call touch, $@) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- usplash_install: $(STATEDIR)/usplash.install $(STATEDIR)/usplash.install: @$(call targetinfo, $@) @$(call install, USPLASH) @$(call touch, $@) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- usplash_targetinstall: $(STATEDIR)/usplash.targetinstall $(STATEDIR)/usplash.targetinstall: @$(call targetinfo, $@) @$(call install_init, usplash) @$(call install_fixup, usplash,PACKAGE,usplash) @$(call install_fixup, usplash,PRIORITY,optional) @$(call install_fixup, usplash,VERSION,$(USPLASH_VERSION)) @$(call install_fixup, usplash,SECTION,base) @$(call install_fixup, usplash,AUTHOR,"Robert Schwebel ") @$(call install_fixup, usplash,DEPENDS,) @$(call install_fixup, usplash,DESCRIPTION,missing) @$(call install_copy, usplash, 0, 0, 0755, $(USPLASH_DIR)/usplash, /sbin/usplash) @$(call install_copy, usplash, 0, 0, 0755, $(USPLASH_DIR)/usplash_write, /sbin/usplash_write) @$(call install_copy, usplash, 0, 0, 0755, $(USPLASH_DIR)/usplash_down, /sbin/usplash_down) @$(call install_copy, usplash, 0, 0, 0755, $(USPLASH_DIR)/update-usplash-theme, /sbin/update-usplash-theme) @$(call install_copy, usplash, 0, 0, 0644, $(USPLASH_DIR)/libusplash.so.0, /lib/libusplash.so.0) @$(call install_link, usplash, /lib/libusplash.so.0, /lib/libusplash.so) @$(call install_copy, usplash, 0, 0, 0755, $(USPLASH_DIR)/bogl/pngtobogl, /usr/bin/pngtousplash) @$(call install_copy, usplash, 0, 0, 0755, $(USPLASH_DIR)/bogl/bdftobogl, /usr/bin/bdftousplash) @$(call install_finish, usplash) @$(call touch, $@) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- usplash_clean: rm -rf $(STATEDIR)/usplash.* rm -rf $(IMAGEDIR)/usplash_* rm -rf $(USPLASH_DIR) # vim: syntax=make