diff mbox

[5/6] libpng12: new package

Message ID 1377373321-29732-6-git-send-email-spenser@gillilanding.com
State Superseded
Headers show

Commit Message

Spenser Gilliland Aug. 24, 2013, 7:42 p.m. UTC
libpng1X all have different incompatible apis therefore it is neccessary to
have a seperate package for each branch.

Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
---
 package/Config.in            |  1 +
 package/libpng12/Config.in   |  8 ++++++++
 package/libpng12/libpng12.mk | 18 ++++++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100644 package/libpng12/Config.in
 create mode 100644 package/libpng12/libpng12.mk

Comments

Arnout Vandecappelle Aug. 26, 2013, 5:21 p.m. UTC | #1
On 08/24/13 21:42, Spenser Gilliland wrote:
> libpng1X all have different incompatible apis therefore it is neccessary to
> have a seperate package for each branch.

  This explanation should be in either the Config.in or in the .mk file 
as well.

>
> Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
> ---
>   package/Config.in            |  1 +
>   package/libpng12/Config.in   |  8 ++++++++
>   package/libpng12/libpng12.mk | 18 ++++++++++++++++++
>   3 files changed, 27 insertions(+)
>   create mode 100644 package/libpng12/Config.in
>   create mode 100644 package/libpng12/libpng12.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 0278885..2b8bef0 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -472,6 +472,7 @@ source "package/libglade/Config.in"
>   source "package/gdk-pixbuf/Config.in"
>   source "package/libgtk2/Config.in"
>   source "package/libpng/Config.in"
> +source "package/libpng12/Config.in"
>   source "package/libqrencode/Config.in"
>   source "package/libraw/Config.in"
>   source "package/librsvg/Config.in"
> diff --git a/package/libpng12/Config.in b/package/libpng12/Config.in
> new file mode 100644
> index 0000000..ff9e9b1
> --- /dev/null
> +++ b/package/libpng12/Config.in
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_LIBPNG12
> +	bool "libpng"
> +	select BR2_PACKAGE_ZLIB
> +	help
> +	  Library for handling PNG (Portable Network Graphics)
> +	  images.
> +
> +	  http://www.libpng.org/
> diff --git a/package/libpng12/libpng12.mk b/package/libpng12/libpng12.mk
> new file mode 100644
> index 0000000..de4a45c
> --- /dev/null
> +++ b/package/libpng12/libpng12.mk
> @@ -0,0 +1,18 @@
> +################################################################################
> +#
> +# libpng12
> +#
> +################################################################################
> +
> +LIBPNG12_VERSION = 1.2.50
> +LIBPNG12_SERIES = 12
> +LIBPNG12_SOURCE = libpng-$(LIBPNG12_VERSION).tar.bz2
> +LIBPNG12_SITE = http://downloads.sourceforge.net/project/libpng/libpng${LIBPNG12_SERIES}/$(LIBPNG12_VERSION)

  Use $(), not ${}


  Regards,
  Arnout

> +LIBPNG12_LICENSE = libpng license
> +LIBPNG12_LICENSE_FILES = LICENSE
> +LIBPNG12_INSTALL_STAGING = YES
> +LIBPNG12_DEPENDENCIES = host-pkgconf zlib
> +LIBPNG12_CONFIG_SCRIPTS = libpng$(LIBPNG12_SERIES)-config libpng-config
> +
> +$(eval $(autotools-package))
> +$(eval $(host-autotools-package))
>
Spenser Gilliland Aug. 27, 2013, 6:58 p.m. UTC | #2
Arnout,

>>
>> libpng1X all have different incompatible apis therefore it is neccessary
>> to
>> have a seperate package for each branch.
>
>
>  This explanation should be in either the Config.in or in the .mk file as
> well.

Will fix.

>  Use $(), not ${}

Will fix.

Thanks,
Spenser
diff mbox

Patch

diff --git a/package/Config.in b/package/Config.in
index 0278885..2b8bef0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -472,6 +472,7 @@  source "package/libglade/Config.in"
 source "package/gdk-pixbuf/Config.in"
 source "package/libgtk2/Config.in"
 source "package/libpng/Config.in"
+source "package/libpng12/Config.in"
 source "package/libqrencode/Config.in"
 source "package/libraw/Config.in"
 source "package/librsvg/Config.in"
diff --git a/package/libpng12/Config.in b/package/libpng12/Config.in
new file mode 100644
index 0000000..ff9e9b1
--- /dev/null
+++ b/package/libpng12/Config.in
@@ -0,0 +1,8 @@ 
+config BR2_PACKAGE_LIBPNG12
+	bool "libpng"
+	select BR2_PACKAGE_ZLIB
+	help
+	  Library for handling PNG (Portable Network Graphics)
+	  images.
+
+	  http://www.libpng.org/
diff --git a/package/libpng12/libpng12.mk b/package/libpng12/libpng12.mk
new file mode 100644
index 0000000..de4a45c
--- /dev/null
+++ b/package/libpng12/libpng12.mk
@@ -0,0 +1,18 @@ 
+################################################################################
+#
+# libpng12
+#
+################################################################################
+
+LIBPNG12_VERSION = 1.2.50
+LIBPNG12_SERIES = 12
+LIBPNG12_SOURCE = libpng-$(LIBPNG12_VERSION).tar.bz2
+LIBPNG12_SITE = http://downloads.sourceforge.net/project/libpng/libpng${LIBPNG12_SERIES}/$(LIBPNG12_VERSION)
+LIBPNG12_LICENSE = libpng license
+LIBPNG12_LICENSE_FILES = LICENSE
+LIBPNG12_INSTALL_STAGING = YES
+LIBPNG12_DEPENDENCIES = host-pkgconf zlib
+LIBPNG12_CONFIG_SCRIPTS = libpng$(LIBPNG12_SERIES)-config libpng-config
+
+$(eval $(autotools-package))
+$(eval $(host-autotools-package))