From patchwork Wed Sep 5 14:29:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Stefan_Fr=C3=B6berg?= X-Patchwork-Id: 181876 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 333F72C0094 for ; Thu, 6 Sep 2012 00:31:09 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 96F18A0358; Wed, 5 Sep 2012 14:31:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xRHmjwHQq5D8; Wed, 5 Sep 2012 14:30:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id D0D08A035F; Wed, 5 Sep 2012 14:30:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id AC8838F739 for ; Wed, 5 Sep 2012 14:30:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C60ED8C12A for ; Wed, 5 Sep 2012 14:30:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MfANTsEWc7GZ for ; Wed, 5 Sep 2012 14:30:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.petroprogram.com (mail.petroprogram.com [194.89.34.74]) by whitealder.osuosl.org (Postfix) with ESMTPS id DA89D88FFE for ; Wed, 5 Sep 2012 14:29:33 +0000 (UTC) Received: from localhost.fi (unknown [194.89.34.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: stefan.froberg@petroprogram.com) by mail.petroprogram.com (Postfix) with ESMTPSA id 6C99E42E10; Wed, 5 Sep 2012 17:18:24 +0300 (EEST) From: =?UTF-8?q?Stefan=20Fr=C3=B6berg?= To: buildroot@busybox.net Date: Wed, 5 Sep 2012 17:29:02 +0300 Message-Id: <1346855344-15081-8-git-send-email-stefan.froberg@petroprogram.com> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1346855344-15081-1-git-send-email-stefan.froberg@petroprogram.com> References: <1346855344-15081-1-git-send-email-stefan.froberg@petroprogram.com> MIME-Version: 1.0 Cc: thomas.petazzoni@free-electrons.com Subject: [Buildroot] [PATCH 7/9] firefox: GNU gnash flash plugin needs agg dependency X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Stefan Fröberg --- package/Config.in | 1 + package/agg/Config.in | 12 +++ package/agg/agg-2.5.patch | 207 +++++++++++++++++++++++++++++++++++++++++++++ package/agg/agg.mk | 17 ++++ 4 files changed, 237 insertions(+), 0 deletions(-) create mode 100644 package/agg/Config.in create mode 100644 package/agg/agg-2.5.patch create mode 100644 package/agg/agg.mk diff --git a/package/Config.in b/package/Config.in index 1848abb..92c957e 100644 --- a/package/Config.in +++ b/package/Config.in @@ -344,6 +344,7 @@ source "package/libsysfs/Config.in" endmenu menu "Graphics" +source "package/agg/Config.in" source "package/atk/Config.in" source "package/cairo/Config.in" source "package/fltk/Config.in" diff --git a/package/agg/Config.in b/package/agg/Config.in new file mode 100644 index 0000000..98a7b02 --- /dev/null +++ b/package/agg/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_AGG + bool "agg" + select BR2_PACKAGE_PKG_CONFIG + select BR2_PACKAGE_XLIB_LIBX11 + select BR2_PACKAGE_SDL + help + The Anti-Grain Geometry (AGG) package contains a general purpse C++ graphical toolkit. + It can be used in many areas of computer programming where high quality 2D graphics is + an essential part of the project. + + http://www.antigrain.com + diff --git a/package/agg/agg-2.5.patch b/package/agg/agg-2.5.patch new file mode 100644 index 0000000..d8749c5 --- /dev/null +++ b/package/agg/agg-2.5.patch @@ -0,0 +1,207 @@ +diff -Naur agg-2.5.org/authors agg-2.5/authors +--- agg-2.5.org/authors 2012-07-24 14:46:22.692942266 +0300 ++++ agg-2.5/authors 1970-01-01 02:00:00.000000000 +0200 +@@ -1,3 +0,0 @@ +-Anti-Grain Geometry (AGG) - Version 2.5 +-A high quality rendering engine for C++ +-Copyright (C) 2002-2006 Maxim Shemanarev +diff -Naur agg-2.5.org/AUTHORS agg-2.5/AUTHORS +--- agg-2.5.org/AUTHORS 1970-01-01 02:00:00.000000000 +0200 ++++ agg-2.5/AUTHORS 2006-10-09 07:06:36.000000000 +0300 +@@ -0,0 +1,3 @@ ++Anti-Grain Geometry (AGG) - Version 2.5 ++A high quality rendering engine for C++ ++Copyright (C) 2002-2006 Maxim Shemanarev +diff -Naur agg-2.5.org/configure.in agg-2.5/configure.in +--- agg-2.5.org/configure.in 2012-07-24 14:46:22.685942274 +0300 ++++ agg-2.5/configure.in 2012-07-24 14:48:22.177936690 +0300 +@@ -8,7 +8,6 @@ + AC_PROG_CC + AC_PROG_CXX + AC_ISC_POSIX +-AM_C_PROTOTYPES + if test "x$U" != "x"; then + AC_MSG_ERROR(Compiler not ANSI compliant) + fi +diff -Naur agg-2.5.org/news agg-2.5/news +--- agg-2.5.org/news 2012-07-24 14:46:22.692942266 +0300 ++++ agg-2.5/news 1970-01-01 02:00:00.000000000 +0200 +@@ -1 +0,0 @@ +-Visit http://antigrain.com/news +\ Ei rivinvaihtoa tiedoston lopussa +diff -Naur agg-2.5.org/NEWS agg-2.5/NEWS +--- agg-2.5.org/NEWS 1970-01-01 02:00:00.000000000 +0200 ++++ agg-2.5/NEWS 2006-10-09 07:06:36.000000000 +0300 +@@ -0,0 +1 @@ ++Visit http://antigrain.com/news +\ Ei rivinvaihtoa tiedoston lopussa +diff -Naur agg-2.5.org/readme agg-2.5/readme +--- agg-2.5.org/readme 2012-07-24 14:46:22.692942266 +0300 ++++ agg-2.5/readme 1970-01-01 02:00:00.000000000 +0200 +@@ -1,75 +0,0 @@ +-Anti-Grain Geometry (AGG) - Version 2.5 +-A high quality rendering engine for C++ +-Copyright (C) 2002-2006 Maxim Shemanarev +-Contact: mcseem@antigrain.com +- mcseemagg@yahoo.com +- http://antigrain.com +- +-AGG is free software; you can redistribute it and/or +-modify it under the terms of the GNU General Public License +-as published by the Free Software Foundation; either version 2 +-of the License, or (at your option) any later version. +- +-AGG is distributed in the hope that it will be useful, +-but WITHOUT ANY WARRANTY; without even the implied warranty of +-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-GNU General Public License for more details. +- +-You should have received a copy of the GNU General Public License +-along with AGG; if not, write to the Free Software +-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +-MA 02110-1301, USA. +- +- +- +---------------------------------- +- +-Use automake to build the library. +- +-If automake is not available you still can use the old make. +-There is a very simple Makefile that can be used. Note that +-if you use automake it will overwrite Makefile. +- +---------------------------------- +- +-If building on AmigaOS 4.0 or higher type the following for +-instructions on what targets are available. +- make -f Makefile.AmigaOS +- +-To just build and install AGG into the standard AmigaOS SDK +-ready for use type: +- make -f Makefile.AmigaOS install +- +-If you just want to build one demo (e.g. lion) use: +- make -f Makefile.AmigaOS bin/lion +- +-If you have any questions about the AmigaOS port please +-contact Steven Solie (ssolie@telus.net) for help. +- +---------------------------------- +- +-To build all examples using SDL (Mac or Linux) just type: +- +-cd /examples/sdl +-make +- +-Individual examples can be built with +- +-make aa_test +- +-In the same way the native Carbon examples can be built with +- +-cd /examples/macosx_carbon +-make +- +-In both cases the static library will be built (if it was not already) +-from the existing global Makefile in /src/. +- +-The Makefiles for both SDL and Carbon will also attempt to download the +-required .bmp files if they are not found in the system for a given +-example. If the files could not be fetched (wget) the user will receive +-a message explaining where to download the samples from (sphere.bmp, +-etc.) Since all programs reside in the same directory there is no need +-to duplicate the .bmp files for each program that needs to use them. +- +---------------------------------- +diff -Naur agg-2.5.org/README agg-2.5/README +--- agg-2.5.org/README 1970-01-01 02:00:00.000000000 +0200 ++++ agg-2.5/README 2006-10-09 07:06:36.000000000 +0300 +@@ -0,0 +1,75 @@ ++Anti-Grain Geometry (AGG) - Version 2.5 ++A high quality rendering engine for C++ ++Copyright (C) 2002-2006 Maxim Shemanarev ++Contact: mcseem@antigrain.com ++ mcseemagg@yahoo.com ++ http://antigrain.com ++ ++AGG is free software; you can redistribute it and/or ++modify it under the terms of the GNU General Public License ++as published by the Free Software Foundation; either version 2 ++of the License, or (at your option) any later version. ++ ++AGG is distributed in the hope that it will be useful, ++but WITHOUT ANY WARRANTY; without even the implied warranty of ++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++GNU General Public License for more details. ++ ++You should have received a copy of the GNU General Public License ++along with AGG; if not, write to the Free Software ++Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, ++MA 02110-1301, USA. ++ ++ ++ ++--------------------------------- ++ ++Use automake to build the library. ++ ++If automake is not available you still can use the old make. ++There is a very simple Makefile that can be used. Note that ++if you use automake it will overwrite Makefile. ++ ++--------------------------------- ++ ++If building on AmigaOS 4.0 or higher type the following for ++instructions on what targets are available. ++ make -f Makefile.AmigaOS ++ ++To just build and install AGG into the standard AmigaOS SDK ++ready for use type: ++ make -f Makefile.AmigaOS install ++ ++If you just want to build one demo (e.g. lion) use: ++ make -f Makefile.AmigaOS bin/lion ++ ++If you have any questions about the AmigaOS port please ++contact Steven Solie (ssolie@telus.net) for help. ++ ++--------------------------------- ++ ++To build all examples using SDL (Mac or Linux) just type: ++ ++cd /examples/sdl ++make ++ ++Individual examples can be built with ++ ++make aa_test ++ ++In the same way the native Carbon examples can be built with ++ ++cd /examples/macosx_carbon ++make ++ ++In both cases the static library will be built (if it was not already) ++from the existing global Makefile in /src/. ++ ++The Makefiles for both SDL and Carbon will also attempt to download the ++required .bmp files if they are not found in the system for a given ++example. If the files could not be fetched (wget) the user will receive ++a message explaining where to download the samples from (sphere.bmp, ++etc.) Since all programs reside in the same directory there is no need ++to duplicate the .bmp files for each program that needs to use them. ++ ++--------------------------------- +diff -Naur agg-2.5.org/src/platform/X11/Makefile.am agg-2.5/src/platform/X11/Makefile.am +--- agg-2.5.org/src/platform/X11/Makefile.am 2012-07-24 14:46:22.686942273 +0300 ++++ agg-2.5/src/platform/X11/Makefile.am 2012-07-24 14:47:55.674937931 +0300 +@@ -1,7 +1,7 @@ + if ENABLE_X11 + lib_LTLIBRARIES = libaggplatformX11.la + +-libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ -L@x_libraries@ ++libaggplatformX11_la_LDFLAGS = -version-info @AGG_LIB_VERSION@ + libaggplatformX11_la_SOURCES = agg_platform_support.cpp + libaggplatformX11_la_CXXFLAGS = -I$(top_srcdir)/include -I@x_includes@ + libaggplatformX11_la_LIBADD = -lX11 diff --git a/package/agg/agg.mk b/package/agg/agg.mk new file mode 100644 index 0000000..f4b9a75 --- /dev/null +++ b/package/agg/agg.mk @@ -0,0 +1,17 @@ +############################################################# +# +# agg +# +############################################################# + +AGG_VERSION = 2.5 +AGG_SOURCE = agg-$(AGG_VERSION).tar.gz +AGG_SITE = http://www.antigrain.com/ +AGG_DEPENDENCIES = xlib_libX11 pkg-config sdl +AGG_INSTALL_STAGING = YES +AGG_AUTORECONF = YES +AGG_LICENSE = GPLv2 +AGG_LICENCE_FILE = readme + +$(eval $(autotools-package)) +