Skip to contentSkip to conversation

qtopia4: Add more image support options, cleanup makefile and comments

PATCH New Hans-Christian Egtvedt 1 participant 1 message Aug 3, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qtopia4: Add more image support options, cleanup makefile and comments

This patch adds options for the image support available in Qtopia, more specific GIF and MNG. It also will depend on libpng if the user has selected to compile that library.

This patch also tries to clean up the configure and installing of Qtopia, both the library for staging_dir and the library for the target. I have tested this on AVR32 and it compiles successfull and I can also compile other Qt applications using this setup.

A test on other platforms would have been nice.

---
 package/qtopia4/Config.in  |   66 ++++++++++++--------
 package/qtopia4/qtopia4.mk |  149 +++++++++++++++++++++++++++++--------------
 2 files changed, 140 insertions(+), 75 deletions(-)
package/qtopia4/Config.in +40 -26
index 912f8da..e1cfc33 100644
@@ -11,10 +11,10 @@ config BR2_PACKAGE_QTOPIA4
 	  http://www.trolltech.com/
 
 config BR2_PACKAGE_QTOPIA4_DEBUG
-        bool "Compile with debug support"
-        default y
+	bool "Compile with debug support"
+	default y
 	depends BR2_PACKAGE_QTOPIA4
-        help
+	help
 
 choice
 	prompt "Qtopia 4 Core license type"
@@ -28,7 +28,7 @@ choice
 
 	config BR2_PACKAGE_QTOPIA4_LICENSE_TYPE_COMERCIAL
 		bool "Comercial license"
-endchoice
+	endchoice
 
 config BR2_PACKAGE_QTOPIA4_GPL_LICENSE_APPROVED
 	bool "Approve Qtopia Core 4 GPL licence"
@@ -42,43 +42,57 @@ config BR2_PACKAGE_QTOPIA4_GPL_LICENSE_APPROVED
 
 	  For full GPL version 2 see http://www.gnu.org/licenses/gpl.txt
 
-
 config BR2_PACKAGE_QTOPIA4_COMMERCIAL_USERNAME
-        string "Qtopia Core 4 Commercial License Username"
-        default ""
+	string "Qtopia Core 4 Commercial License Username"
+	default ""
 	depends BR2_PACKAGE_QTOPIA4 && BR2_PACKAGE_QTOPIA4_LICENSE_TYPE_COMERCIAL
-        help
-            Commercial users can download their source directly by providing a username.
+	help
+	  Commercial users can download their source directly by providing a username.
 
 
 config BR2_PACKAGE_QTOPIA4_COMMERCIAL_PASSWORD
-        string "Qtopia Core 4 Commercial License Password"
-        default ""
+	string "Qtopia Core 4 Commercial License Password"
+	default ""
 	depends BR2_PACKAGE_QTOPIA4 && BR2_PACKAGE_QTOPIA4_LICENSE_TYPE_COMERCIAL
-        help
-            Commercial users can download their source directly by providing a password.
+	help
+	  Commercial users can download their source directly by providing a password.
 
 config BR2_PACKAGE_QTOPIA4_QT3SUPPORT
-        bool "Compatibility with Qt3"
-        default y
+	bool "Compatibility with Qt3"
+	default y
 	depends BR2_PACKAGE_QTOPIA4
-        help
-	    Turns on support for older Qt3.
+	help
+	  Turns on support for older Qt3.
 
 config BR2_PACKAGE_QTOPIA4_DEPTHS
-        string "color depths to support"
-        default "-depths 8"
+	string "color depths to support"
+	default "-depths 8"
 	depends BR2_PACKAGE_QTOPIA4
-        help
-	    Which color depths to support for the library. Default is "-depths
-	    8". Is specified by a comma separated list, i.e. -depths 24,16,8.
+	help
+	  Which color depths to support for the library. Default is "-depths
+	  8". Is specified by a comma separated list, i.e. -depths 24,16,8.
+
+config BR2_PACKAGE_QTOPIA4_GIF
+	bool "Enable GIF support"
+	default n
+	depends BR2_PACKAGE_QTOPIA4
+	help
+	  This compiles and installs the plugin for GIF reading support.
+
+config BR2_PACKAGE_QTOPIA4_LIBMNG
+	bool "Enable libmng support"
+	default n
+	depends BR2_PACKAGE_QTOPIA4
+	help
+	  This compiles and installs the plugin for MNG support.
 
 config BR2_PACKAGE_QTOPIA4_EMB_PLATFORM
-        string "The embedded platform we are making Qtopia4 for"
+	string "The embedded platform we are making Qtopia4 for"
 	default "arm"	if BR2_arm
 	default "arm"	if BR2_armeb
+	default "avr32" if BR2_avr32
 	default "x86"	if BR2_i386
-	default "x86_64"	if BR2_x86_64
+	default "x86_64" if BR2_x86_64
 	default "mips"	if BR2_mips
 	default "mips"	if BR2_mipsel
 # Not that I really believe these will work..
@@ -91,5 +105,5 @@ config BR2_PACKAGE_QTOPIA4_EMB_PLATFORM
 	default "generic"	if BR2_sh64
 	default "generic"	if BR2_sparc
 	depends BR2_PACKAGE_QTOPIA4
-        help
-	    The platform.
+	help
+	  The platform.
package/qtopia4/qtopia4.mk +100 -49

266 lines not on this page · raw message

Signature · 1 line
1.5.2.3