Add colourdepth support to Qtopia config

This commit is contained in:
Ulf Samuelsson 2007-07-28 17:26:18 +00:00
parent e806708e3f
commit 8e1d0f34f7
2 changed files with 68 additions and 20 deletions

View File

@ -12,14 +12,42 @@ config BR2_PACKAGE_QTOPIA4
config BR2_PACKAGE_QTOPIA4_DEBUG config BR2_PACKAGE_QTOPIA4_DEBUG
bool "Compile with debug support" bool "Compile with debug support"
default y default y
depends BR2_PACKAGE_QTOPIA4 depends BR2_PACKAGE_QTOPIA4
help help
choice
prompt "Qtopia 4 Core license type"
default BR2_PACKAGE_QTOPIA4_LICENSE_TYPE_GPL
depends BR2_PACKAGE_QTOPIA4
help
Selects the type of license you which to use for Qtopia 4 Core.
config BR2_PACKAGE_QTOPIA4_LICENSE_TYPE_GPL
bool "GPL license"
config BR2_PACKAGE_QTOPIA4_LICENSE_TYPE_COMMERCIAL
bool "Commercial license"
endchoice
config BR2_PACKAGE_QTOPIA4_GPL_LICENSE_APPROVED
bool "Approve Qtopia Core 4 GPL licence"
default n
depends BR2_PACKAGE_QTOPIA4 && BR2_PACKAGE_QTOPIA4_LICENSE_TYPE_GPL
help
Select this if you approve the GNU GENERAL PUBLIC LICENSE Version 2
on the Qtopia Core 4 library. By doing this you will not be asked
while the library is compiled. Please read and understand the GPL
licence before approving this.
For full GPL version 2 see http://www.gnu.org/licenses/gpl.txt
config BR2_PACKAGE_QTOPIA4_COMMERCIAL_USERNAME config BR2_PACKAGE_QTOPIA4_COMMERCIAL_USERNAME
string "Qtopia Core 4 Commercial License Username" string "Qtopia Core 4 Commercial License Username"
default "" default ""
depends BR2_PACKAGE_QTOPIA4 depends BR2_PACKAGE_QTOPIA4 && BR2_PACKAGE_QTOPIA4_LICENSE_TYPE_COMMERCIAL
help help
Commercial users can download their source directly by providing a username. Commercial users can download their source directly by providing a username.
@ -27,17 +55,25 @@ config BR2_PACKAGE_QTOPIA4_COMMERCIAL_USERNAME
config BR2_PACKAGE_QTOPIA4_COMMERCIAL_PASSWORD config BR2_PACKAGE_QTOPIA4_COMMERCIAL_PASSWORD
string "Qtopia Core 4 Commercial License Password" string "Qtopia Core 4 Commercial License Password"
default "" default ""
depends BR2_PACKAGE_QTOPIA4 depends BR2_PACKAGE_QTOPIA4 && BR2_PACKAGE_QTOPIA4_LICENSE_TYPE_COMMERCIAL
help help
Commercial users can download their source directly by providing a password. Commercial users can download their source directly by providing a password.
config BR2_PACKAGE_QTOPIA4_QT3SUPPORT config BR2_PACKAGE_QTOPIA4_QT3SUPPORT
bool "Compatibility with Qt3" bool "Compatibility with Qt3"
default y default y
depends BR2_PACKAGE_QTOPIA4 depends BR2_PACKAGE_QTOPIA4
help help
Turns on support for older Qt3. Turns on support for older Qt3.
config BR2_PACKAGE_QTOPIA4_DEPTHS
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.
config BR2_PACKAGE_QTOPIA4_EMB_PLATFORM 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_arm

View File

@ -2,15 +2,15 @@
# #
# qtopia4 (Qtopia Core 4) # qtopia4 (Qtopia Core 4)
# http://www.trolltech.com/ # http://www.trolltech.com/
# #
# This makefile composed by Thomas Lundquist <thomasez@zelow.no> # This makefile composed by Thomas Lundquist <thomasez@zelow.no>
# #
# There is two versions built, one for the target and one for # There is two versions built, one for the target and one for
# staging. The target version is built in the staging_dir and the # staging. The target version is built in the staging_dir and the
# staging version in the toolchain_dir. # staging version in the toolchain_dir.
# #
# BTW, this uses alot of FPU calls and it's pretty slow if you use # BTW, this uses alot of FPU calls and it's pretty slow if you use
# the kernels FPU emulation so it's better to choose soft float in the # the kernels FPU emulation so it's better to choose soft float in the
# buildroot config (and uClibc.config of course, if you have your own.) # buildroot config (and uClibc.config of course, if you have your own.)
# #
###################################################################### ######################################################################
@ -40,15 +40,19 @@ QTOPIA4_SOURCE:=qtopia-core-opensource-src-$(QTOPIA4_VERSION).tar.gz
QTOPIA4_TARGET_DIR:=$(BUILD_DIR)/qtopia-core-opensource-src-$(QTOPIA4_VERSION) QTOPIA4_TARGET_DIR:=$(BUILD_DIR)/qtopia-core-opensource-src-$(QTOPIA4_VERSION)
QTOPIA4_HOST_DIR:=$(TOOL_BUILD_DIR)/qtopia-core-opensource-src-$(QTOPIA4_VERSION) QTOPIA4_HOST_DIR:=$(TOOL_BUILD_DIR)/qtopia-core-opensource-src-$(QTOPIA4_VERSION)
ifeq ($(BR2_PACKAGE_QTOPIA4_GPL_LICENSE_APPROVED),y)
QTOPIA4_APPROVE_GPL_LICENSE:=-confirm-license
endif endif
# If you want extra tweaking you can copy endif
# If you want extra tweaking you can copy
# $(QTOPIA4_TARGET_DIR)/src/corelib/global/qconfig-myfile.h # $(QTOPIA4_TARGET_DIR)/src/corelib/global/qconfig-myfile.h
# to the qtopia4 packages directory (where this .mk file is) and # to the qtopia4 packages directory (where this .mk file is) and
# remove the comment. # remove the comment.
# QTOPIA4_QCONFIG_COMMAND:=-qconfig myfile # QTOPIA4_QCONFIG_COMMAND:=-qconfig myfile
# #
# For the options you can set in this file, look at # For the options you can set in this file, look at
# $(QTOPIA4_TARGET_DIR)/src/corelib/global/qfeatures.txt # $(QTOPIA4_TARGET_DIR)/src/corelib/global/qfeatures.txt
# #
QTOPIA4_QCONFIG_FILE:=package/qtopia4/qconfig-myfile.h QTOPIA4_QCONFIG_FILE:=package/qtopia4/qconfig-myfile.h
@ -81,6 +85,12 @@ QTOPIA4_ENDIAN=-little-endian
else else
QTOPIA4_ENDIAN=-big-endian QTOPIA4_ENDIAN=-big-endian
endif endif
ifeq ($(BR2_PACKAGE_QTOPIA4_DEPTHS),"")
QTOPIA4_DEPTHS=-depths 8
else
QTOPIA4_DEPTHS:=$(strip $(subst ",, $(BR2_PACKAGE_QTOPIA4_DEPTHS)))
#"))
endif
QTOPIA4_DEBUG:=$(strip $(subst ",, $(QTOPIA4_DEBUG))) QTOPIA4_DEBUG:=$(strip $(subst ",, $(QTOPIA4_DEBUG)))
#")) #"))
@ -105,12 +115,14 @@ qtopia4-source: $(DL_DIR)/$(QTOPIA4_SOURCE)
$(QTOPIA4_TARGET_DIR)/.unpacked: $(DL_DIR)/$(QTOPIA4_SOURCE) $(QTOPIA4_TARGET_DIR)/.unpacked: $(DL_DIR)/$(QTOPIA4_SOURCE)
$(QTOPIA4_CAT) $(DL_DIR)/$(QTOPIA4_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - $(QTOPIA4_CAT) $(DL_DIR)/$(QTOPIA4_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
toolchain/patch-kernel.sh $(QTOPIA4_TARGET_DIR) package/qtopia4/ \
qtopia-$(QTOPIA4_VERSION)-\*.patch\*
touch $(QTOPIA4_TARGET_DIR)/.unpacked touch $(QTOPIA4_TARGET_DIR)/.unpacked
# This configure is very tailored towards my needs. # This configure is very tailored towards my needs.
$(QTOPIA4_TARGET_DIR)/.configured: $(QTOPIA4_TARGET_DIR)/.unpacked $(QTOPIA4_TARGET_DIR)/.configured: $(QTOPIA4_TARGET_DIR)/.unpacked
# Patching configure to get rid of some feature I dont want. # Patching configure to get rid of some feature I dont want.
# (I don't want SQL either but there is no option for that at all. # (I don't want SQL either but there is no option for that at all.
# the SQL library will be built even without the plugins/drivers. # the SQL library will be built even without the plugins/drivers.
ifneq ($(BR2_INET_IPV6),y) ifneq ($(BR2_INET_IPV6),y)
$(SED) 's/^CFG_IPV6=auto/CFG_IPV6=no/' $(QTOPIA4_TARGET_DIR)/configure $(SED) 's/^CFG_IPV6=auto/CFG_IPV6=no/' $(QTOPIA4_TARGET_DIR)/configure
@ -119,7 +131,7 @@ endif
$(SED) 's/^CFG_XINERAMA=auto/CFG_XINERAMA=no/' $(QTOPIA4_TARGET_DIR)/configure $(SED) 's/^CFG_XINERAMA=auto/CFG_XINERAMA=no/' $(QTOPIA4_TARGET_DIR)/configure
$(SED) 's/-O2/$(TARGET_CFLAGS)/' $(QTOPIA4_TARGET_DIR)/mkspecs/qws/linux-$(BR2_PACKAGE_QTOPIA4_EMB_PLATFORM)-g++/qmake.conf $(SED) 's/-O2/$(TARGET_CFLAGS)/' $(QTOPIA4_TARGET_DIR)/mkspecs/qws/linux-$(BR2_PACKAGE_QTOPIA4_EMB_PLATFORM)-g++/qmake.conf
-[ -f $(QTOPIA4_QCONFIG_FILE) ] && cp $(QTOPIA4_QCONFIG_FILE) \ -[ -f $(QTOPIA4_QCONFIG_FILE) ] && cp $(QTOPIA4_QCONFIG_FILE) \
$(QTOPIA4_TARGET_DIR)/$(QTOPIA4_QCONFIG_FILE_LOCATION) $(QTOPIA4_TARGET_DIR)/$(QTOPIA4_QCONFIG_FILE_LOCATION)
(cd $(QTOPIA4_TARGET_DIR); rm -rf config.cache; \ (cd $(QTOPIA4_TARGET_DIR); rm -rf config.cache; \
PATH=$(TARGET_PATH) \ PATH=$(TARGET_PATH) \
CFLAGS="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS)" \
@ -133,7 +145,7 @@ endif
-xplatform qws/linux-$(BR2_PACKAGE_QTOPIA4_EMB_PLATFORM)-g++ \ -xplatform qws/linux-$(BR2_PACKAGE_QTOPIA4_EMB_PLATFORM)-g++ \
$(QTOPIA4_QCONFIG_COMMAND) \ $(QTOPIA4_QCONFIG_COMMAND) \
$(QTOPIA4_DEBUG) \ $(QTOPIA4_DEBUG) \
-depths 8 \ $(QTOPIA4_DEPTHS) \
-no-cups \ -no-cups \
-no-nis \ -no-nis \
-no-freetype \ -no-freetype \
@ -151,12 +163,11 @@ endif
-no-sql-tds \ -no-sql-tds \
-prefix /usr \ -prefix /usr \
-prefix-install \ -prefix-install \
-L $(STAGING_DIR)/usr/lib \
-I $(STAGING_DIR)/usr/include \
$(QTOPIA4_QT3SUPPORT) \ $(QTOPIA4_QT3SUPPORT) \
$(QTOPIA4_TSLIB) \ $(QTOPIA4_TSLIB) \
$(QTOPIA4_LARGEFILE) \ $(QTOPIA4_LARGEFILE) \
$(QTOPIA4_ENDIAN) \ $(QTOPIA4_ENDIAN) \
$(QTOPIA4_APPROVE_GPL_LICENSE) \
); );
touch $(QTOPIA4_TARGET_DIR)/.configured touch $(QTOPIA4_TARGET_DIR)/.configured
@ -192,12 +203,14 @@ $(TARGET_DIR)/usr/lib/libQtCore.so.$(QTOPIA4_VERSION): $(STAGING_DIR)/usr/lib/li
$(QTOPIA4_HOST_DIR)/.unpacked: $(DL_DIR)/$(QTOPIA4_SOURCE) $(QTOPIA4_HOST_DIR)/.unpacked: $(DL_DIR)/$(QTOPIA4_SOURCE)
$(QTOPIA4_CAT) $(DL_DIR)/$(QTOPIA4_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) - $(QTOPIA4_CAT) $(DL_DIR)/$(QTOPIA4_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
toolchain/patch-kernel.sh $(QTOPIA4_HOST_DIR) package/qtopia4/ \
qtopia-$(QTOPIA4_VERSION)-\*.patch\*
touch $(QTOPIA4_HOST_DIR)/.unpacked touch $(QTOPIA4_HOST_DIR)/.unpacked
# This configure is very tailored towards my needs. # This configure is very tailored towards my needs.
$(QTOPIA4_HOST_DIR)/.configured: $(QTOPIA4_HOST_DIR)/.unpacked $(QTOPIA4_HOST_DIR)/.configured: $(QTOPIA4_HOST_DIR)/.unpacked
# Patching configure to get rid of some feature I dont want. # Patching configure to get rid of some feature I dont want.
# (I don't want SQL either but there is no option for that at all. # (I don't want SQL either but there is no option for that at all.
# the SQL library will be built even without the plugins/drivers. # the SQL library will be built even without the plugins/drivers.
ifneq ($(BR2_INET_IPV6),y) ifneq ($(BR2_INET_IPV6),y)
$(SED) 's/^CFG_IPV6=auto/CFG_IPV6=no/' $(QTOPIA4_HOST_DIR)/configure $(SED) 's/^CFG_IPV6=auto/CFG_IPV6=no/' $(QTOPIA4_HOST_DIR)/configure
@ -206,7 +219,7 @@ endif
$(SED) 's/^CFG_XINERAMA=auto/CFG_XINERAMA=no/' $(QTOPIA4_HOST_DIR)/configure $(SED) 's/^CFG_XINERAMA=auto/CFG_XINERAMA=no/' $(QTOPIA4_HOST_DIR)/configure
$(SED) 's/-O2/$(TARGET_CFLAGS)/' $(QTOPIA4_HOST_DIR)/mkspecs/qws/linux-$(BR2_PACKAGE_QTOPIA4_EMB_PLATFORM)-g++/qmake.conf $(SED) 's/-O2/$(TARGET_CFLAGS)/' $(QTOPIA4_HOST_DIR)/mkspecs/qws/linux-$(BR2_PACKAGE_QTOPIA4_EMB_PLATFORM)-g++/qmake.conf
-[ -f $(QTOPIA4_QCONFIG_FILE) ] && cp $(QTOPIA4_QCONFIG_FILE) \ -[ -f $(QTOPIA4_QCONFIG_FILE) ] && cp $(QTOPIA4_QCONFIG_FILE) \
$(QTOPIA4_HOST_DIR)/$(QTOPIA4_QCONFIG_FILE_LOCATION) $(QTOPIA4_HOST_DIR)/$(QTOPIA4_QCONFIG_FILE_LOCATION)
(cd $(QTOPIA4_HOST_DIR); rm -rf config.cache; \ (cd $(QTOPIA4_HOST_DIR); rm -rf config.cache; \
PATH=$(TARGET_PATH) \ PATH=$(TARGET_PATH) \
CFLAGS="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS)" \
@ -220,7 +233,7 @@ endif
-xplatform qws/linux-$(BR2_PACKAGE_QTOPIA4_EMB_PLATFORM)-g++ \ -xplatform qws/linux-$(BR2_PACKAGE_QTOPIA4_EMB_PLATFORM)-g++ \
$(QTOPIA4_QCONFIG_COMMAND) \ $(QTOPIA4_QCONFIG_COMMAND) \
$(QTOPIA4_DEBUG) \ $(QTOPIA4_DEBUG) \
-depths 8 \ $(QTOPIA4_DEPTHS) \
-no-cups \ -no-cups \
-no-nis \ -no-nis \
-no-freetype \ -no-freetype \
@ -236,12 +249,11 @@ endif
-no-sql-tds \ -no-sql-tds \
-prefix $(QTOPIA4_STAGING_DIR) \ -prefix $(QTOPIA4_STAGING_DIR) \
-prefix-install \ -prefix-install \
-L $(STAGING_DIR)/usr/lib \
-I $(STAGING_DIR)/usr/include \
$(QTOPIA4_QT3SUPPORT) \ $(QTOPIA4_QT3SUPPORT) \
$(QTOPIA4_TSLIB) \ $(QTOPIA4_TSLIB) \
$(QTOPIA4_LARGEFILE) \ $(QTOPIA4_LARGEFILE) \
$(QTOPIA4_ENDIAN) \ $(QTOPIA4_ENDIAN) \
$(QTOPIA4_APPROVE_GPL_LICENSE) \
); );
touch $(QTOPIA4_HOST_DIR)/.configured touch $(QTOPIA4_HOST_DIR)/.configured