opendreambox.conf: enable opengl distro feature
[opendreambox.git] / meta-opendreambox / conf / distro / opendreambox.conf
1 #@TYPE: Distribution
2 #@NAME: OpenDreambox
3 #@DESCRIPTION: Distribution configuration for OpenDreambox
4
5 #USER_CLASSES += "image-prelink"
6 INHERIT += "buildhistory recipe_sanity"
7 BUILDHISTORY_COMMIT = "1"
8
9 DISTRO_NAME = "${DISTRO}"
10 DISTRO_VERSION = "2.1.0"
11
12 # meta/conf/distro/include/default-distrovars.inc
13 DISTRO_FEATURES_DEFAULT ?= "alsa argp bluetooth ext2 largefile usbhost wifi xattr nfs zeroconf pci 3g x11 \
14                             mplt opengl opengles2 ppp smbfs systemd wayland xinetd"
15 DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio"
16
17 # extra packages needed if opkg is used
18 EXTRAOPKGCONFIG = "distro-feed-configs"
19
20 # meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
21 SYSVINIT_ENABLED_GETTYS = ""
22
23 # meta/classes/image_types.bbclass
24 IMAGE_FSTYPES =+ "tar.bz2"
25
26 # package versions
27 OPENDREAMBOX_QT_VERSION = "4.8.5"
28
29 PREFERRED_VERSION_qt4-embedded ?= "${OPENDREAMBOX_QT_VERSION}"
30 PREFERRED_VERSION_qt4-native ?= "${OPENDREAMBOX_QT_VERSION}"
31 PREFERRED_VERSION_qt4-x11-free = "${OPENDREAMBOX_QT_VERSION}"
32 PREFERRED_VERSION_wpa-supplicant ?= "2.0"
33
34 PREFERRED_PROVIDER_jpeg ?= "libjpeg-turbo"
35 PREFERRED_PROVIDER_jpeg-native ?= "libjpeg-turbo"
36 PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl"
37 PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl"
38
39 PACKAGECONFIG_pn-cogl-1.0 = "egl-kms egl-null \
40         ${@base_contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \
41         ${@base_contains('DISTRO_FEATURES', 'opengles2', 'gles2', '', d)} \
42         ${@base_contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \
43         ${@base_contains('DISTRO_FEATURES', 'x11', 'egl-x11', '', d)}"
44
45 PACKAGECONFIG_pn-gst-plugins-bad = "curl libmms musicbrainz orc"
46 PACKAGECONFIG_pn-gst-plugins-base = "orc \
47         ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
48 PACKAGECONFIG_pn-gst-plugins-good = "flac jpeg libpng orc soup zlib"
49 PACKAGECONFIG_pn-gst-plugins-ugly = "a52dec amrnb amrwb cdio lame mad mpeg2dec orc"
50
51 PACKAGECONFIG_pn-xserver-xorg = "dri2 udev"
52
53 LICENSE_FLAGS_WHITELIST = "commercial"
54
55 # build some core libs with better compiler optimization for better performance
56 FULL_OPTIMIZATION_O3 = "-O3 -pipe ${DEBUG_FLAGS}"
57 FULL_OPTIMIZATION_pn-flac = "${FULL_OPTIMIZATION_O3}"
58 FULL_OPTIMIZATION_pn-jpeg = "${FULL_OPTIMIZATION_O3}"
59 FULL_OPTIMIZATION_pn-lame = "${FULL_OPTIMIZATION_O3}"
60 FULL_OPTIMIZATION_pn-liba52 = "${FULL_OPTIMIZATION_O3}"
61 FULL_OPTIMIZATION_pn-libdca = "${FULL_OPTIMIZATION_O3}"
62 FULL_OPTIMIZATION_pn-libgcrypt = "${FULL_OPTIMIZATION_O3}"
63 FULL_OPTIMIZATION_pn-libmad = "${FULL_OPTIMIZATION_O3}"
64 FULL_OPTIMIZATION_pn-libogg = "${FULL_OPTIMIZATION_O3}"
65 FULL_OPTIMIZATION_pn-libpng = "${FULL_OPTIMIZATION_O3}"
66 FULL_OPTIMIZATION_pn-libsamplerate = "${FULL_OPTIMIZATION_O3}"
67 FULL_OPTIMIZATION_pn-libvorbis = "${FULL_OPTIMIZATION_O3}"
68 FULL_OPTIMIZATION_pn-tremor = "${FULL_OPTIMIZATION_O3}"
69 FULL_OPTIMIZATION_pn-zlib = "${FULL_OPTIMIZATION_O3}"
70
71 # Disable installing ldconfig
72 USE_LDCONFIG = "0"
73
74 # Drop unused PACKAGE_EXTRA_ARCHS
75 PACKAGE_EXTRA_ARCHS = "${TUNE_PKGARCH}"
76
77 PREMIRRORS ?= "\
78 bzr://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
79 cvs://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
80 git://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
81 hg://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
82 osc://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
83 p4://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
84 svk://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
85 svn://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
86 bzr://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
87 cvs://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
88 git://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
89 hg://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
90 osc://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
91 p4://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
92 svk://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
93 svn://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n"
94
95 MIRRORS =+ "\
96 ftp://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
97 http://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
98 https://.*/.*  http://dreamboxupdate.com/sources-mirror/ \n \
99 ftp://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
100 http://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
101 https://.*/.*  http://autobuilder.yoctoproject.org/sources/ \n"
102
103 # for compatibility with rm_old_work.bbclass
104 WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${PF}"
105
106 include conf/distro/include/seperatebuilddir.inc