summaryrefslogtreecommitdiffstats
path: root/rules/owfs.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2008-11-01 10:50:27 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2008-11-01 10:50:27 +0000
commit297fcd095571f3755b9f93a4797cbf63886ef4de (patch)
tree3c9ece2938b911cdb55cb7923497ada6de53b6d1 /rules/owfs.make
parentfe9b04f3e42127651dd80225f95f2df9cd7eb414 (diff)
downloadptxdist-297fcd095571f3755b9f93a4797cbf63886ef4de.tar.gz
ptxdist-297fcd095571f3755b9f93a4797cbf63886ef4de.tar.xz
* owfs: added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9018 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/owfs.make')
-rw-r--r--rules/owfs.make185
1 files changed, 185 insertions, 0 deletions
diff --git a/rules/owfs.make b/rules/owfs.make
new file mode 100644
index 000000000..43ea519ab
--- /dev/null
+++ b/rules/owfs.make
@@ -0,0 +1,185 @@
+# -*-makefile-*-
+# $Id: template-make 8785 2008-08-26 07:48:06Z wsa $
+#
+# Copyright (C) 2008 by Robert Schwebel <r.schwebel@pengutronix.de>
+#
+# 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 <r.schwebel@pengutronix.de>")
+ @$(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