mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] My first Contribution! libpphidget rules :D
@ 2012-05-16 14:32 barhoumi mohtadi
  2012-05-16 17:58 ` Juergen Beisert
  2012-05-31  9:30 ` [ptxdist] Correction : libpphidget ( with options and dependencies) barhoumi mohtadi
  0 siblings, 2 replies; 5+ messages in thread
From: barhoumi mohtadi @ 2012-05-16 14:32 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 3776 bytes --]


Well, libphidget provides a set of "plug and play" building blocks for low cost USB sensing and control from your PC.
I've needed it to recognize and work with an acceleromter i'm testing.
Just providing it in case someone else need it :D

Thanks for your remarks and suggestions!

Mohtadi,

libphiget.make

# -*-makefile-*-
#
# Copyright (C) 2012 by Mohtadi Barhoumi <mohtadi.barhoumi@univ-reims.fr>
#
# 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)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#LIBPHIDGET_CONF_ENV    := $(CROSS_ENV)

#
# autoconf
#
LIBPHIDGET_CONF_TOOL    := autoconf
#LIBPHIDGET_CONF_OPT    := $(CROSS_AUTOCONF_USR)

#$(STATEDIR)/libphidget.prepare:
#    @$(call targetinfo)
#    @$(call clean, $(LIBPHIDGET_DIR)/config.cache)
#    cd $(LIBPHIDGET_DIR) && \
#        $(LIBPHIDGET_PATH) $(LIBPHIDGET_ENV) \
#        ./configure $(LIBPHIDGET_CONF_OPT)
#    @$(call touch)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

#$(STATEDIR)/libphidget.compile:
#    @$(call targetinfo)
#    @$(call world/compile, LIBPHIDGET)
#    @$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

#$(STATEDIR)/libphidget.install:
#    @$(call targetinfo)
#    @$(call world/install, LIBPHIDGET)
#    @$(call touch)

# ----------------------------------------------------------------------------
# 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 <mohtadi.barhoumi@univ-reims.fr>")
    @$(call install_fixup, libphidget,DESCRIPTION,)

    @$(call install_lib, libphidget, 0, 0, 0644, libphidget21)

    @$(call install_finish, libphidget)

    @$(call touch)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

#$(STATEDIR)/libphidget.clean:
#    @$(call targetinfo)
#    @$(call clean_pkg, LIBPHIDGET)

# vim: syntax=make





libphidget.in

## SECTION=system_libraries

config LIBPHIDGET
    tristate
    prompt "libphidget"
    help
      Phidgets are a set of plug and play building blocks for low 
      cost USB sensing and control from your PC.
 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 4993 bytes --]

[-- Attachment #2: libphidget.in --]
[-- Type: application/octet-stream, Size: 194 bytes --]

## SECTION=system_libraries

config LIBPHIDGET
	tristate
	prompt "libphidget"
	help
	  Phidgets are a set of plug and play building blocks for low 
	  cost USB sensing and control from your PC.

[-- Attachment #3: libphidget.make --]
[-- Type: application/octet-stream, Size: 2973 bytes --]

# -*-makefile-*-
#
# Copyright (C) 2012 by Mohtadi Barhoumi <mohtadi.barhoumi@univ-reims.fr>
#
# 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)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#LIBPHIDGET_CONF_ENV	:= $(CROSS_ENV)

#
# autoconf
#
LIBPHIDGET_CONF_TOOL	:= autoconf
#LIBPHIDGET_CONF_OPT	:= $(CROSS_AUTOCONF_USR)

#$(STATEDIR)/libphidget.prepare:
#	@$(call targetinfo)
#	@$(call clean, $(LIBPHIDGET_DIR)/config.cache)
#	cd $(LIBPHIDGET_DIR) && \
#		$(LIBPHIDGET_PATH) $(LIBPHIDGET_ENV) \
#		./configure $(LIBPHIDGET_CONF_OPT)
#	@$(call touch)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

#$(STATEDIR)/libphidget.compile:
#	@$(call targetinfo)
#	@$(call world/compile, LIBPHIDGET)
#	@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

#$(STATEDIR)/libphidget.install:
#	@$(call targetinfo)
#	@$(call world/install, LIBPHIDGET)
#	@$(call touch)

# ----------------------------------------------------------------------------
# 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 <mohtadi.barhoumi@univ-reims.fr>")
	@$(call install_fixup, libphidget,DESCRIPTION,)

	@$(call install_lib, libphidget, 0, 0, 0644, libphidget21)

	@$(call install_finish, libphidget)

	@$(call touch)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

#$(STATEDIR)/libphidget.clean:
#	@$(call targetinfo)
#	@$(call clean_pkg, LIBPHIDGET)

# vim: syntax=make

[-- Attachment #4: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] My first Contribution! libpphidget rules :D
  2012-05-16 14:32 [ptxdist] My first Contribution! libpphidget rules :D barhoumi mohtadi
@ 2012-05-16 17:58 ` Juergen Beisert
  2012-05-16 22:11   ` barhoumi mohtadi
  2012-05-31  9:30 ` [ptxdist] Correction : libpphidget ( with options and dependencies) barhoumi mohtadi
  1 sibling, 1 reply; 5+ messages in thread
From: Juergen Beisert @ 2012-05-16 17:58 UTC (permalink / raw)
  To: ptxdist; +Cc: barhoumi mohtadi

Hi Mohtadi,

barhoumi mohtadi wrote:
> Well, libphidget provides a set of "plug and play" building blocks for low
> cost USB sensing and control from your PC. I've needed it to recognize and
> work with an acceleromter i'm testing. Just providing it in case someone
> else need it :D
>
> Thanks for your remarks and suggestions!

Okay, lets start the review process...

> libphiget.make
>
> # -*-makefile-*-
> #
> # Copyright (C) 2012 by Mohtadi Barhoumi <mohtadi.barhoumi@univ-reims.fr>
> #
> # 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        :=

Please add the MD5 sum here.

> 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

Please add the license of this package here.

> # ----------------------------------------------------------------------------
> # Get 
> # ----------------------------------------------------------------------------
>
> #$(LIBPHIDGET_SOURCE):
> #    @$(call targetinfo)
> #    @$(call get, LIBPHIDGET)

Its completely commented out. Why not remove it?

> # ----------------------------------------------------------------------------
> # Prepare 
> # ----------------------------------------------------------------------------
>
> #LIBPHIDGET_CONF_ENV    := $(CROSS_ENV)
>
> #
> # autoconf
> #
> LIBPHIDGET_CONF_TOOL    := autoconf
> #LIBPHIDGET_CONF_OPT    := $(CROSS_AUTOCONF_USR)
>
> #$(STATEDIR)/libphidget.prepare:
> #    @$(call targetinfo)
> #    @$(call clean, $(LIBPHIDGET_DIR)/config.cache)
> #    cd $(LIBPHIDGET_DIR) && \
> #        $(LIBPHIDGET_PATH) $(LIBPHIDGET_ENV) \
> #        ./configure $(LIBPHIDGET_CONF_OPT)
> #    @$(call touch)

Are you really happy with the default configure parameters? Maybe there is
something this package is depending on, and if you do not enable or disable
it here it depends on the build order if some smart configure scripts guess if
they should compile in component X or Y...
To get a reliable result, you should check the external dependencies and add
them here or in the corresponding *.in file

A quick look to the output of "configure --help" shows at least these parameters
you should handle with care:

  --enable-jni         Compile in Java support
  --enable-debug       Turn on debugging
  --enable-zeroconf    Turn on zeroconf, choose avahi or bonjour
  --enable-zeroconf-lookup    Turn on zeroconf lookup
  --enable-labview     Turn on Labview support
  --enable-oldlibusb   Use libusb-0.1 instead of 1.0

> # ----------------------------------------------------------------------------
> # Compile 
> # ----------------------------------------------------------------------------
>
> #$(STATEDIR)/libphidget.compile:
> #    @$(call targetinfo)
> #    @$(call world/compile, LIBPHIDGET)
> #    @$(call touch)

Its completely commented out. Why not remove it?

> # ----------------------------------------------------------------------------
> # Install 
> # ----------------------------------------------------------------------------
>
> #$(STATEDIR)/libphidget.install:
> #    @$(call targetinfo)
> #    @$(call world/install, LIBPHIDGET)
> #    @$(call touch)

Same here.

> # ----------------------------------------------------------------------------
> # 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 <mohtadi.barhoumi@univ-reims.fr>")
>     @$(call install_fixup, libphidget,DESCRIPTION,)
>
>     @$(call install_lib, libphidget, 0, 0, 0644, libphidget21)
>
>     @$(call install_finish, libphidget)
>
>     @$(call touch)
>
> # ----------------------------------------------------------------------------
> # Clean 
> # ----------------------------------------------------------------------------
>
> #$(STATEDIR)/libphidget.clean:
> #    @$(call targetinfo)
> #    @$(call clean_pkg, LIBPHIDGET)

Same here.

> # vim: syntax=make
>
> libphidget.in
>
> ## SECTION=system_libraries
>
> config LIBPHIDGET
>     tristate
>     prompt "libphidget"
>     help
>       Phidgets are a set of plug and play building blocks for low
>       cost USB sensing and control from your PC.

The "--enable-oldlibusb" configure parameter presents at least a dependency to
the LIBUSB. Or the LIBUSB_COMPAT, depending on the parameter itself.

Without considering this dependency, your package may fail at build-time. You
must tell PTXdist to build the libusb/libusbcompat prior your package.

Using "readelf -d libphidget21.so.0.0.0" also presents additional dependencies
to:

 - libpthread
 - libm
 - libdl

Without considering these dependencies, your package may fail at run-time.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] My first Contribution! libpphidget rules :D
  2012-05-16 17:58 ` Juergen Beisert
@ 2012-05-16 22:11   ` barhoumi mohtadi
  0 siblings, 0 replies; 5+ messages in thread
From: barhoumi mohtadi @ 2012-05-16 22:11 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 6516 bytes --]


Hi Juergen,
I'll add the dependencies monday at work!Thanks again for your help on this!
Regards,

> From: jbe@pengutronix.de
> To: ptxdist@pengutronix.de
> Date: Wed, 16 May 2012 19:58:09 +0200
> CC: mohtadi_barhoumi@hotmail.fr
> Subject: Re: [ptxdist] My first Contribution! libpphidget rules :D
> 
> Hi Mohtadi,
> 
> barhoumi mohtadi wrote:
> > Well, libphidget provides a set of "plug and play" building blocks for low
> > cost USB sensing and control from your PC. I've needed it to recognize and
> > work with an acceleromter i'm testing. Just providing it in case someone
> > else need it :D
> >
> > Thanks for your remarks and suggestions!
> 
> Okay, lets start the review process...
> 
> > libphiget.make
> >
> > # -*-makefile-*-
> > #
> > # Copyright (C) 2012 by Mohtadi Barhoumi <mohtadi.barhoumi@univ-reims.fr>
> > #
> > # 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        :=
> 
> Please add the MD5 sum here.
> 
> > 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
> 
> Please add the license of this package here.
> 
> > # ----------------------------------------------------------------------------
> > # Get 
> > # ----------------------------------------------------------------------------
> >
> > #$(LIBPHIDGET_SOURCE):
> > #    @$(call targetinfo)
> > #    @$(call get, LIBPHIDGET)
> 
> Its completely commented out. Why not remove it?
> 
> > # ----------------------------------------------------------------------------
> > # Prepare 
> > # ----------------------------------------------------------------------------
> >
> > #LIBPHIDGET_CONF_ENV    := $(CROSS_ENV)
> >
> > #
> > # autoconf
> > #
> > LIBPHIDGET_CONF_TOOL    := autoconf
> > #LIBPHIDGET_CONF_OPT    := $(CROSS_AUTOCONF_USR)
> >
> > #$(STATEDIR)/libphidget.prepare:
> > #    @$(call targetinfo)
> > #    @$(call clean, $(LIBPHIDGET_DIR)/config.cache)
> > #    cd $(LIBPHIDGET_DIR) && \
> > #        $(LIBPHIDGET_PATH) $(LIBPHIDGET_ENV) \
> > #        ./configure $(LIBPHIDGET_CONF_OPT)
> > #    @$(call touch)
> 
> Are you really happy with the default configure parameters? Maybe there is
> something this package is depending on, and if you do not enable or disable
> it here it depends on the build order if some smart configure scripts guess if
> they should compile in component X or Y...
> To get a reliable result, you should check the external dependencies and add
> them here or in the corresponding *.in file
> 
> A quick look to the output of "configure --help" shows at least these parameters
> you should handle with care:
> 
>   --enable-jni         Compile in Java support
>   --enable-debug       Turn on debugging
>   --enable-zeroconf    Turn on zeroconf, choose avahi or bonjour
>   --enable-zeroconf-lookup    Turn on zeroconf lookup
>   --enable-labview     Turn on Labview support
>   --enable-oldlibusb   Use libusb-0.1 instead of 1.0
> 
> > # ----------------------------------------------------------------------------
> > # Compile 
> > # ----------------------------------------------------------------------------
> >
> > #$(STATEDIR)/libphidget.compile:
> > #    @$(call targetinfo)
> > #    @$(call world/compile, LIBPHIDGET)
> > #    @$(call touch)
> 
> Its completely commented out. Why not remove it?
> 
> > # ----------------------------------------------------------------------------
> > # Install 
> > # ----------------------------------------------------------------------------
> >
> > #$(STATEDIR)/libphidget.install:
> > #    @$(call targetinfo)
> > #    @$(call world/install, LIBPHIDGET)
> > #    @$(call touch)
> 
> Same here.
> 
> > # ----------------------------------------------------------------------------
> > # 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 <mohtadi.barhoumi@univ-reims.fr>")
> >     @$(call install_fixup, libphidget,DESCRIPTION,)
> >
> >     @$(call install_lib, libphidget, 0, 0, 0644, libphidget21)
> >
> >     @$(call install_finish, libphidget)
> >
> >     @$(call touch)
> >
> > # ----------------------------------------------------------------------------
> > # Clean 
> > # ----------------------------------------------------------------------------
> >
> > #$(STATEDIR)/libphidget.clean:
> > #    @$(call targetinfo)
> > #    @$(call clean_pkg, LIBPHIDGET)
> 
> Same here.
> 
> > # vim: syntax=make
> >
> > libphidget.in
> >
> > ## SECTION=system_libraries
> >
> > config LIBPHIDGET
> >     tristate
> >     prompt "libphidget"
> >     help
> >       Phidgets are a set of plug and play building blocks for low
> >       cost USB sensing and control from your PC.
> 
> The "--enable-oldlibusb" configure parameter presents at least a dependency to
> the LIBUSB. Or the LIBUSB_COMPAT, depending on the parameter itself.
> 
> Without considering this dependency, your package may fail at build-time. You
> must tell PTXdist to build the libusb/libusbcompat prior your package.
> 
> Using "readelf -d libphidget21.so.0.0.0" also presents additional dependencies
> to:
> 
>  - libpthread
>  - libm
>  - libdl
> 
> Without considering these dependencies, your package may fail at run-time.
> 
> Regards,
> Juergen
> 
> -- 
> Pengutronix e.K.                              | Juergen Beisert             |
> Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 8141 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] Correction : libpphidget ( with options and dependencies)
  2012-05-16 14:32 [ptxdist] My first Contribution! libpphidget rules :D barhoumi mohtadi
  2012-05-16 17:58 ` Juergen Beisert
@ 2012-05-31  9:30 ` barhoumi mohtadi
  2012-06-06 10:54   ` Michael Olbrich
  1 sibling, 1 reply; 5+ messages in thread
From: barhoumi mohtadi @ 2012-05-31  9:30 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 4621 bytes --]


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 <mohtadi.barhoumi@univ-reims.fr>
#
# 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)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#LIBPHIDGET_CONF_ENV    := $(CROSS_ENV)

#
# 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)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

#$(STATEDIR)/libphidget.compile:
#    @$(call targetinfo)
#    @$(call world/compile, LIBPHIDGET)
#    @$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

#$(STATEDIR)/libphidget.install:
#    @$(call targetinfo)
#    @$(call world/install, LIBPHIDGET)
#    @$(call touch)

# ----------------------------------------------------------------------------
# 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 <mohtadi.barhoumi@univ-reims.fr>")
    @$(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)

# vim: syntax=make



libphidget.in


## SECTION=system_libraries

config LIBPHIDGET
    tristate    
    select LIBUSB_COMPAT   if LIBPHIDGET_OLDLIBUSB 
    select LIBUSB if !LIBPHIDGET_OLDLIBUSB
    select AVAHI if LIBPHIDGET_ZEROCONF || LIBPHIDGET_ZEROCONF_LOOKUP
    select LIBPTHREAD_STUBS
    select  GLIBC_C
    
    prompt "libphidget"
    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
 		 	   		   		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 6294 bytes --]

[-- Attachment #2: libphidget.make --]
[-- Type: application/octet-stream, Size: 3284 bytes --]

# -*-makefile-*-
#
# Copyright (C) 2012 by Mohtadi Barhoumi <mohtadi.barhoumi@univ-reims.fr>
#
# 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)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#LIBPHIDGET_CONF_ENV	:= $(CROSS_ENV)

#
# 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)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

#$(STATEDIR)/libphidget.compile:
#	@$(call targetinfo)
#	@$(call world/compile, LIBPHIDGET)
#	@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

#$(STATEDIR)/libphidget.install:
#	@$(call targetinfo)
#	@$(call world/install, LIBPHIDGET)
#	@$(call touch)

# ----------------------------------------------------------------------------
# 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 <mohtadi.barhoumi@univ-reims.fr>")
	@$(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)

# vim: syntax=make

[-- Attachment #3: libphidget.in --]
[-- Type: application/octet-stream, Size: 757 bytes --]

## SECTION=system_libraries

config LIBPHIDGET
	tristate	
	select LIBUSB_COMPAT   if LIBPHIDGET_OLDLIBUSB 
	select LIBUSB if !LIBPHIDGET_OLDLIBUSB
	select AVAHI if LIBPHIDGET_ZEROCONF || LIBPHIDGET_ZEROCONF_LOOKUP
	select LIBPTHREAD_STUBS
	select  GLIBC_C
	
	prompt "libphidget"
	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

[-- Attachment #4: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] Correction : libpphidget ( with options and dependencies)
  2012-05-31  9:30 ` [ptxdist] Correction : libpphidget ( with options and dependencies) barhoumi mohtadi
@ 2012-06-06 10:54   ` Michael Olbrich
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Olbrich @ 2012-06-06 10:54 UTC (permalink / raw)
  To: ptxdist

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 <mohtadi.barhoumi@univ-reims.fr>
> #
> # 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 <mohtadi.barhoumi@univ-reims.fr>")
>     @$(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 <tab>

>     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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-06-06 10:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-16 14:32 [ptxdist] My first Contribution! libpphidget rules :D barhoumi mohtadi
2012-05-16 17:58 ` Juergen Beisert
2012-05-16 22:11   ` barhoumi mohtadi
2012-05-31  9:30 ` [ptxdist] Correction : libpphidget ( with options and dependencies) barhoumi mohtadi
2012-06-06 10:54   ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox