Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH/RFC v3 02/50] package/libsquish: New package
Date: Sun, 19 Jul 2015 21:24:45 +0200	[thread overview]
Message-ID: <20150719212445.3e77f88a@free-electrons.com> (raw)
In-Reply-To: <1437332755-9764-3-git-send-email-bernd.kuhls@t-online.de>

Dear Bernd Kuhls,

On Sun, 19 Jul 2015 21:05:07 +0200, Bernd Kuhls wrote:

> diff --git a/package/libsquish/libsquish.mk b/package/libsquish/libsquish.mk
> new file mode 100644
> index 0000000..df37368
> --- /dev/null
> +++ b/package/libsquish/libsquish.mk
> @@ -0,0 +1,36 @@
> +################################################################################
> +#
> +# libsquish
> +#
> +################################################################################
> +
> +LIBSQUISH_VERSION = 1.13
> +LIBSQUISH_SOURCE = libsquish-$(LIBSQUISH_VERSION).tgz
> +LIBSQUISH_SITE = http://downloads.sourceforge.net/project/libsquish
> +LIBSQUISH_INSTALL_STAGING = YES
> +LIBSQUISH_STRIP_COMPONENTS = 0
> +LIBSQUISH_LICENSE = MIT
> +LIBSQUISH_LICENSE_FILES = README
> +
> +define LIBSQUISH_BUILD_CMDS
> +	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
> +endef
> +
> +define LIBSQUISH_INSTALL_STAGING_CMDS
> +	mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig/
> +	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \
> +		PREFIX=/usr INSTALL_DIR=$(STAGING_DIR)/usr
> +	$(INSTALL) -m 644 $(@D)/squish.pc $(STAGING_DIR)/usr/lib/pkgconfig
> +	ln -sf libsquish.so.0.0 $(STAGING_DIR)/usr/lib/libsquish.so
> +
> +endef
> +
> +define LIBSQUISH_INSTALL_TARGET_CMDS
> +	mkdir -p $(TARGET_DIR)/usr/include/
> +	mkdir -p $(TARGET_DIR)/usr/lib/pkgconfig/
> +	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \
> +		PREFIX=/usr INSTALL_DIR=$(TARGET_DIR)/usr
> +	ln -sf libsquish.so.0.0 $(TARGET_DIR)/usr/lib/libsquish.so
> +endef
> +
> +$(eval $(generic-package))

Have you considered using the CMakeLists.txt provided in libsquish, and
therefore use the cmake-package infrastructure? It should properly
handle the shared vs. static library case, and reduce the amount of
manual stuff that you need to do in LIBSQUISH_INSTALL_STAGING_CMDS and
LIBSQUISH_INSTALL_TARGET_CMDS.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2015-07-19 19:24 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-19 19:05 [Buildroot] [PATCH/RFC v3 00/50] package/kodi: bump version to 15.0 rc2 Isengard Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 01/50] package/ffmpeg: bump version to 2.7.1 Bernd Kuhls
2015-07-20 21:40   ` Thomas Petazzoni
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 02/50] package/libsquish: New package Bernd Kuhls
2015-07-19 19:24   ` Thomas Petazzoni [this message]
2015-07-22 19:16     ` Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 03/50] package/libplatform: new package Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 04/50] package/libcec: bump to version 3.0.1 Bernd Kuhls
2015-07-19 19:20   ` Thomas Petazzoni
2015-07-22 19:18     ` Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 05/50] package/kodi: bump version to 15.0rc3 Isengard Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 06/50] package/kodi: Add option for lirc support Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 07/50] package/kodi: Rework audio encoder support Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 08/50] package/kodi-audioencoder-flac: bump version Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 09/50] package/kodi-audioencoder-lame: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 10/50] package/kodi-audioencoder-vorbis: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 11/50] package/kodi-audioencoder-wav: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 12/50] package/kodi-addon-xvdr: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 13/50] package/kodi-pvr-addons: Prepare to split into addon-specific packages Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 14/50] package/kodi-platform: new package Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 15/50] package/kodi-pvr-argustv: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 16/50] package/kodi-pvr-dvblink: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 17/50] package/kodi-pvr-dvbviewer: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 18/50] package/kodi-pvr-filmon: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 19/50] package/kodi-pvr-hts: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 20/50] package/kodi-pvr-iptvsimple: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 21/50] package/kodi-pvr-mediaportal-tvserver: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 22/50] package/kodi-pvr-mythtv: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 23/50] package/kodi-pvr-nextpvr: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 24/50] package/kodi-pvr-njoy: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 25/50] package/kodi-pvr-pctv: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 26/50] package/kodi-pvr-stalker: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 27/50] package/kodi-pvr-vbox: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 28/50] package/kodi-pvr-vdr-vnsi: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 29/50] package/kodi-pvr-vuplus: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 30/50] package/kodi-pvr-wmc: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 31/50] package/kodi-audiodecoder-modplug: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 32/50] package/kodi-audiodecoder-nosefart: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 33/50] package/kodi-audiodecoder-sidplay: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 34/50] package/kodi-audiodecoder-snesapu: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 35/50] package/kodi-audiodecoder-stsound: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 36/50] package/kodi-audiodecoder-timidity: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 37/50] package/kodi-audiodecoder-vgmstream: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 38/50] package/kodi-screensaver-asteroids: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 39/50] package/kodi-screensaver-biogenesis: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 40/50] package/kodi-screensaver-crystalmorph: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 41/50] package/kodi-screensaver-greynetic: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 42/50] package/kodi-screensaver-pingpong: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 43/50] package/kodi-screensaver-pyro: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 44/50] package/kodi-screensaver-stars: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 45/50] package/kodi-visualisation-shadertoy: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 46/50] package/kodi-visualisation-waveform: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 47/50] package/kodi-visualisation-spectrum: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 48/50] package/kodi-visualisation-waveforhue: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 49/50] package/kodi-visualisation-goom: " Bernd Kuhls
2015-07-19 19:05 ` [Buildroot] [PATCH/RFC v3 50/50] package/kodi-screensaver-rsxs: " Bernd Kuhls
2015-07-19 19:26 ` [Buildroot] [PATCH/RFC v3 00/50] package/kodi: bump version to 15.0 rc2 Isengard Thomas Petazzoni
2015-07-21  6:12   ` Bernd Kuhls
2015-07-21 12:23     ` Thomas Petazzoni
2015-07-22 19:26       ` Bernd Kuhls

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150719212445.3e77f88a@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox