From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1ScDsz-0004fB-N7 for ptxdist@pengutronix.de; Wed, 06 Jun 2012 12:54:45 +0200 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1ScDsz-0003XS-M2 for ptxdist@pengutronix.de; Wed, 06 Jun 2012 12:54:45 +0200 Date: Wed, 6 Jun 2012 12:54:45 +0200 From: Michael Olbrich Message-ID: <20120606105445.GG12403@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] Correction : libpphidget ( with options and dependencies) Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Thu, May 31, 2012 at 10:30:19AM +0100, barhoumi mohtadi wrote: > > Hi everyone, here is the libphidget rules corrected, and completed with options and dependencies, > > Thanks for your remarks and suggestions. > > Mohtadi, > > libphiget.make > > # -*-makefile-*- > # > # Copyright (C) 2012 by Mohtadi Barhoumi > # > # 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_LIBPHIDGET) += libphidget > > # > # Paths and names > # > LIBPHIDGET_VERSION := 2.1.8.20120514 > LIBPHIDGET_MD5 := > LIBPHIDGET := libphidget_$(LIBPHIDGET_VERSION) > LIBPHIDGET_SUFFIX := tar.gz > LIBPHIDGET_URL := http://www.phidgets.com/downloads/libraries/$(LIBPHIDGET).$(LIBPHIDGET_SUFFIX) > LIBPHIDGET_SOURCE := $(SRCDIR)/$(LIBPHIDGET).$(LIBPHIDGET_SUFFIX) > LIBPHIDGET_DIR := $(BUILDDIR)/$(LIBPHIDGET) > LIBPHIDGET_LICENSE := unknown > > # ---------------------------------------------------------------------------- > # Get > # ---------------------------------------------------------------------------- > > #$(LIBPHIDGET_SOURCE): > # @$(call targetinfo) > # @$(call get, LIBPHIDGET) remove. > > # ---------------------------------------------------------------------------- > # Prepare > # ---------------------------------------------------------------------------- > > #LIBPHIDGET_CONF_ENV := $(CROSS_ENV) remove. > > # > # autoconf > # > LIBPHIDGET_CONF_TOOL := autoconf > LIBPHIDGET_CONF_OPT := \ > $(CROSS_AUTOCONF_USR) \ > --$(call ptx/endis, PTXCONF_LIBPHIDGET_OLDLIBUSB)-oldlibusb \ > --$(call ptx/endis, PTXCONF_LIBPHIDGET_ZEROCONF)-zeroconf \ > --$(call ptx/endis, PTXCONF_LIBPHIDGET_ZEROCONF_LOOKUP)-zeroconf-lookup \ > --$(call ptx/endis, PTXCONF_LIBPHIDGET_DEBUG)-debug \ > --$(call ptx/endis, PTXCONF_LIBPHIDGET_JNI)-jni > > #$(STATEDIR)/libphidget.prepare: > # @$(call targetinfo) > # @$(call clean, $(LIBPHIDGET_DIR)/config.cache) > # cd $(LIBPHIDGET_DIR) && \ > # $(LIBPHIDGET_PATH) $(LIBPHIDGET_ENV) \ > # ./configure $(LIBPHIDGET_CONF_OPT) > # @$(call touch) remove. > > # ---------------------------------------------------------------------------- > # Compile > # ---------------------------------------------------------------------------- > > #$(STATEDIR)/libphidget.compile: > # @$(call targetinfo) > # @$(call world/compile, LIBPHIDGET) > # @$(call touch) remove. > > # ---------------------------------------------------------------------------- > # Install > # ---------------------------------------------------------------------------- > > #$(STATEDIR)/libphidget.install: > # @$(call targetinfo) > # @$(call world/install, LIBPHIDGET) > # @$(call touch) > remove. > # ---------------------------------------------------------------------------- > # Target-Install > # ---------------------------------------------------------------------------- > > $(STATEDIR)/libphidget.targetinstall: > @$(call targetinfo) > > @$(call install_init, libphidget) > @$(call install_fixup, libphidget,PRIORITY,optional) > @$(call install_fixup, libphidget,SECTION,base) > @$(call install_fixup, libphidget,AUTHOR,"Mohtadi Barhoumi ") > @$(call install_fixup, libphidget,DESCRIPTION,missing) > @$(call install_lib, libphidget, 0, 0, 0644, libphidget21) > @$(call install_finish, libphidget) > @$(call touch) > > # ---------------------------------------------------------------------------- > # Clean > # ---------------------------------------------------------------------------- > > #$(STATEDIR)/libphidget.clean: > # @$(call targetinfo) > # @$(call clean_pkg, LIBPHIDGET) remove. > > # vim: syntax=make > > > > libphidget.in > > > ## SECTION=system_libraries > > config LIBPHIDGET menuconfig LIBPHIDGET > tristate > select LIBUSB_COMPAT if LIBPHIDGET_OLDLIBUSB > select LIBUSB if !LIBPHIDGET_OLDLIBUSB > select AVAHI if LIBPHIDGET_ZEROCONF || LIBPHIDGET_ZEROCONF_LOOKUP align the 'if's with > select LIBPTHREAD_STUBS > select GLIBC_C > > prompt "libphidget" expand the propmt with spaces to align the '-->' in menuconfig with the other entries. Michael > help > Phidgets are a set of plug and play building blocks for low > cost USB sensing and control from your PC. > > > if LIBPHIDGET > > config LIBPHIDGET_JNI > bool > prompt "Compile in Java support" > > config LIBPHIDGET_OLDLIBUSB > bool > prompt "Enable USB support" > > config LIBPHIDGET_ZEROCONF > bool > prompt "Enable Zeroconf Support" > > config LIBPHIDGET_ZEROCONF_LOOKUP > bool > prompt "Enable Zeroconf lookup" > > config LIBPHIDGET_DEBUG > bool > prompt "make the program more noisy" > > > endif > > -- > ptxdist mailing list > ptxdist@pengutronix.de -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de