# -*-makefile-*- # $Id: template-make 8785 2008-08-26 07:48:06Z wsa $ # # 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_OWFS) += owfs # # Paths and names # OWFS_VERSION := 2.7p7 OWFS := owfs-$(OWFS_VERSION) OWFS_SUFFIX := tar.gz OWFS_URL := $(PTXCONF_SETUP_SFMIRROR)/owfs/$(OWFS).$(OWFS_SUFFIX) OWFS_SOURCE := $(SRCDIR)/$(OWFS).$(OWFS_SUFFIX) OWFS_DIR := $(BUILDDIR)/$(OWFS) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- $(OWFS_SOURCE): @$(call targetinfo) @$(call get, OWFS) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- $(STATEDIR)/owfs.extract: @$(call targetinfo) @$(call clean, $(OWFS_DIR)) @$(call extract, OWFS) @$(call patchin, OWFS) @$(call touch) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- OWFS_PATH := PATH=$(CROSS_PATH) OWFS_ENV := $(CROSS_ENV) # # autoconf # OWFS_AUTOCONF := \ $(CROSS_AUTOCONF_USR) \ --disable-dependency-tracking \ --enable-shared \ --enable-static \ --disable-fast-install \ --enable-libtool-lock \ --disable-debian \ --disable-debug \ --enable-owlib \ --disable-tai8570 \ --disable-thermocouple \ --enable-mt \ --disable-i2c \ --disable-ha7 \ --disable-owhttpd \ --disable-owftpd \ --disable-owserver \ --disable-ownet \ --disable-owtap \ --disable-owside \ --disable-owmon \ --disable-owcapi \ --disable-swig \ --disable-owperl \ --disable-owphp \ --disable-owpython \ --disable-owtcl \ --disable-profiling \ --disable-cache \ --disable-zero \ --disable-usb \ --disable-parport \ --with-gnu-ld \ --with-pic \ --without-perl5 \ --without-php \ --without-phpconfig \ --without-python \ --without-pythonconfig \ --without-tcl \ --with-fuseinclude=$(SYSROOT)/usr/include \ --with-fuselib=$(SYSROOT)/usr/lib # --with-libusb-config=PATH ifdef PTXCONF_OWFS__OWSHELL OWFS_AUTOCONF += --enable-owshell else OWFS_AUTOCONF += --disable-owshell endif ifdef PTXCONF_OWFS__OWNETLIB OWFS_AUTOCONF += --enable-ownetlib else OWFS_AUTOCONF += --disable-ownetlib endif ifdef PTXCONF_OWFS__OWFS OWFS_AUTOCONF += --enable-owfs else OWFS_AUTOCONF += --disable-owfs endif $(STATEDIR)/owfs.prepare: @$(call targetinfo) @$(call clean, $(OWFS_DIR)/config.cache) cd $(OWFS_DIR) && \ $(OWFS_PATH) $(OWFS_ENV) \ ./configure $(OWFS_AUTOCONF) @$(call touch) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- $(STATEDIR)/owfs.compile: @$(call targetinfo) cd $(OWFS_DIR) && $(OWFS_PATH) $(MAKE) $(PARALLELMFLAGS) @$(call touch) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- $(STATEDIR)/owfs.install: @$(call targetinfo) @$(call install, OWFS) @$(call touch) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- $(STATEDIR)/owfs.targetinstall: @$(call targetinfo) @$(call install_init, owfs) @$(call install_fixup, owfs,PACKAGE,owfs) @$(call install_fixup, owfs,PRIORITY,optional) @$(call install_fixup, owfs,VERSION,$(OWFS_VERSION)) @$(call install_fixup, owfs,SECTION,base) @$(call install_fixup, owfs,AUTHOR,"Robert Schwebel ") @$(call install_fixup, owfs,DEPENDS,) @$(call install_fixup, owfs,DESCRIPTION,missing) @$(call install_copy, owfs, 0, 0, 0644, \ $(PKGDIR)/$(OWFS)/usr/lib/libow-2.7.so.7.0.0, \ /usr/lib/libow-2.7.so.7.0.0) @$(call install_link, owfs, libow-2.7.so.7.0.0, /usr/lib/libow-2.7.so.7) @$(call install_link, owfs, libow-2.7.so.7.0.0, /usr/lib/libow-2.7.so) ifdef PTXCONF_OWFS__OWFS @$(call install_copy, owfs, 0, 0, 0755, \ $(PKGDIR)/$(OWFS)/usr/bin/owfs, \ /usr/bin/owfs) endif @$(call install_finish, owfs) @$(call touch) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- owfs_clean: rm -rf $(STATEDIR)/owfs.* rm -rf $(PKGDIR)/owfs_* rm -rf $(OWFS_DIR) # vim: syntax=make