# -*-makefile-*- # $Id: template 3502 2005-12-11 12:46:17Z rsc $ # # Copyright (C) 2006 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_COMMONCPP2) += commoncpp2 # # Paths and names # COMMONCPP2_VERSION := 1.3.25 COMMONCPP2 := commoncpp2-$(COMMONCPP2_VERSION) COMMONCPP2_SUFFIX := tar.gz COMMONCPP2_URL := $(PTXCONF_SETUP_SFMIRROR)/gnutelephony/$(COMMONCPP2).$(COMMONCPP2_SUFFIX) COMMONCPP2_SOURCE := $(SRCDIR)/$(COMMONCPP2).$(COMMONCPP2_SUFFIX) COMMONCPP2_DIR := $(BUILDDIR)/$(COMMONCPP2) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- commoncpp2_get: $(STATEDIR)/commoncpp2.get $(STATEDIR)/commoncpp2.get: $(commoncpp2_get_deps_default) @$(call targetinfo, $@) @$(call touch, $@) $(COMMONCPP2_SOURCE): @$(call targetinfo, $@) @$(call get, COMMONCPP2) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- commoncpp2_extract: $(STATEDIR)/commoncpp2.extract $(STATEDIR)/commoncpp2.extract: $(commoncpp2_extract_deps_default) @$(call targetinfo, $@) @$(call clean, $(COMMONCPP2_DIR)) @$(call extract, COMMONCPP2) @$(call patchin, COMMONCPP2) @$(call touch, $@) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- commoncpp2_prepare: $(STATEDIR)/commoncpp2.prepare COMMONCPP2_PATH := PATH=$(CROSS_PATH) COMMONCPP2_ENV := $(CROSS_ENV) # # autoconf # COMMONCPP2_AUTOCONF := $(CROSS_AUTOCONF_USR) ifndef PTXCONF_COMMONCPP2_LIBZ COMMONCPP2_AUTOCONF += --without-compression endif ifndef PTXCONF_COMMONCPP2_LIBXML2 COMMONCPP2_AUTOCONF += --without-libxml2 endif $(STATEDIR)/commoncpp2.prepare: $(commoncpp2_prepare_deps_default) @$(call targetinfo, $@) @$(call clean, $(COMMONCPP2_DIR)/config.cache) cd $(COMMONCPP2_DIR) && \ $(COMMONCPP2_PATH) $(COMMONCPP2_ENV) \ ./configure $(COMMONCPP2_AUTOCONF) @$(call touch, $@) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- commoncpp2_compile: $(STATEDIR)/commoncpp2.compile $(STATEDIR)/commoncpp2.compile: $(commoncpp2_compile_deps_default) @$(call targetinfo, $@) cd $(COMMONCPP2_DIR) && $(COMMONCPP2_PATH) make @$(call touch, $@) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- commoncpp2_install: $(STATEDIR)/commoncpp2.install $(STATEDIR)/commoncpp2.install: $(commoncpp2_install_deps_default) @$(call targetinfo, $@) @$(call install, COMMONCPP2) install -m755 -D $(COMMONCPP2_DIR)/src/ccgnu2-config $(PTXCONF_HOST_PREFIX)/bin/ccgnu2-config @$(call touch, $@) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- commoncpp2_targetinstall: $(STATEDIR)/commoncpp2.targetinstall $(STATEDIR)/commoncpp2.targetinstall: $(commoncpp2_targetinstall_deps_default) @$(call targetinfo, $@) @$(call install_init, commoncpp2) @$(call install_fixup, commoncpp2,PACKAGE,commoncpp2) @$(call install_fixup, commoncpp2,PRIORITY,optional) @$(call install_fixup, commoncpp2,VERSION,$(COMMONCPP2_VERSION)) @$(call install_fixup, commoncpp2,SECTION,base) @$(call install_fixup, commoncpp2,AUTHOR,"Robert Schwebel ") @$(call install_fixup, commoncpp2,DEPENDS,) @$(call install_fixup, commoncpp2,DESCRIPTION,missing) @$(call install_copy, commoncpp2, 0, 0, 0644, \ $(COMMONCPP2_DIR)/src/.libs/libccgnu2-1.3.so.1.0.21, \ /usr/lib/libccgnu2-1.3.so.1.0.21) @$(call install_link, commoncpp2, libccgnu2-1.3.so.1.0.21, /usr/lib/libccgnu2-1.3.so.1) @$(call install_link, commoncpp2, libccgnu2-1.3.so.1.0.21, /usr/lib/libccgnu2.so) @$(call install_copy, commoncpp2, 0, 0, 0644, \ $(COMMONCPP2_DIR)/src/.libs/libccext2-1.3.so.1.0.21, \ /usr/lib/libccext2-1.3.so.1.0.21) @$(call install_link, commoncpp2, libccext2-1.3.so.1.0.21, /usr/lib/libccext2-1.3.so.1) @$(call install_link, commoncpp2, libccext2-1.3.so.1.0.21, /usr/lib/libccext2.so) @$(call install_finish, commoncpp2) @$(call touch, $@) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- commoncpp2_clean: rm -rf $(STATEDIR)/commoncpp2.* rm -rf $(IMAGEDIR)/commoncpp2_* rm -rf $(COMMONCPP2_DIR) # vim: syntax=make