opendreambox.conf: fix packageconfig for cogl
[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 += "recipe_sanity"
7
8 DISTRO_NAME = "${DISTRO}"
9 DISTRO_VERSION = "2.5.0"
10
11 # meta/conf/distro/include/default-distrovars.inc
12 LOCALE_UTF8_ONLY ?= "1"
13 DISTRO_FEATURES_DEFAULT ?= "alsa argp bluetooth ext2 largefile usbhost wifi xattr nfs zeroconf pci \
14                             ppp smbfs systemd xinetd"
15 DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio"
16 DISTRO_FEATURES_GCC ?= ""
17 DISTRO_FEATURES_GCC_mipsel ?= " mplt"
18 DISTRO_FEATURES_GFX ?= " opengl"
19 DISTRO_FEATURES_append = "${DISTRO_FEATURES_GCC}${DISTRO_FEATURES_GFX}"
20
21 # meta/conf/distro/defaultsetup.conf
22 PACKAGE_CLASSES ?= "package_deb"
23
24 # meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
25 SYSVINIT_ENABLED_GETTYS = ""
26
27 # meta/classes/image_types.bbclass
28 IMAGE_FSTYPES =+ "tar.xz"
29 XZ_COMPRESSION_LEVEL ?= ""
30
31 # meta/classes/image.bbclass
32 IMAGE_PKGTYPE ?= "deb"
33
34 # package versions
35 PREFERRED_VERSION_gnupg ?= "1.4.7"
36 PREFERRED_VERSION_xserver-nodm-init ?= "1.0"
37
38 PREFERRED_PROVIDER_jpeg ?= "libjpeg-turbo"
39 PREFERRED_PROVIDER_jpeg-native ?= "libjpeg-turbo-native"
40
41 PREFERRED_PROVIDER_virtual/fftw = "fftw"
42
43 PREFERRED_PROVIDER_virtual/update-alternatives = "dpkg"
44 PREFERRED_PROVIDER_virtual/update-alternatives-native = "dpkg-native"
45 PREFERRED_PROVIDER_virtual/nativesdk-update-alternatives = "nativesdk-dpkg"
46
47 VIRTUAL-RUNTIME_init_manager = "systemd"
48 VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
49 VIRTUAL-RUNTIME_update-alternatives = "update-alternatives-dpkg"
50
51 PACKAGECONFIG_pn-apt = "lzma opkg"
52
53 PACKAGECONFIG_pn-cogl-1.0 = "egl-null gles2"
54 EXTRA_OECONF_append_pn-cogl-1.0 = " --disable-introspection"
55
56 PACKAGECONFIG_pn-connman = "bluez l2tp openvpn pptp systemd vpnc wifi"
57
58 PACKAGECONFIG_pn-curl = "ssl zlib \
59         ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
60
61 PACKAGECONFIG_pn-dpkg = "update-alternatives xz"
62 PACKAGECONFIG_pn-dpkg-native = "update-alternatives xz"
63 PACKAGECONFIG_pn-nativesdk-dpkg = "update-alternatives xz"
64
65 PACKAGECONFIG_pn-glmark2 = ""
66
67 ORCPACKAGECONFIG = "orc"
68 ORCPACKAGECONFIG_mipsel = ""
69
70 PACKAGECONFIG_pn-gstreamer1.0-plugins-base = " \
71     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
72     ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
73     ${ORCPACKAGECONFIG} ivorbis ogg theora vorbis pango"
74
75 PACKAGECONFIG_pn-gstreamer1.0-plugins-good = " \
76     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
77     ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
78     ${ORCPACKAGECONFIG} cairo flac gdk-pixbuf gudev jpeg libpng soup speex taglib"
79
80 PACKAGECONFIG_pn-gstreamer1.0-plugins-bad = " \
81     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
82     ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
83     ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
84     ${ORCPACKAGECONFIG} curl uvch264 neon sndfile \
85     hls sbc dash bz2 smoothstreaming \
86     opus faad libmms assrender rtmp"
87
88 PACKAGECONFIG_pn-gstreamer1.0-plugins-ugly = " \
89     ${ORCPACKAGECONFIG} a52dec lame mad mpeg2dec cdio"
90
91 PACKAGECONFIG_pn-ffmpeg = "avdevice avfilter avcodec avformat swresample swscale postproc"
92
93 PACKAGECONFIG_GL_pn-libsdl2 = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}"
94
95 PACKAGECONFIG_pn-libunwind = "lzma"
96
97 PACKAGECONFIG_pn-mesa-demos = "drm osmesa freetype2 gbm egl gles2"
98
99 PACKAGECONFIG_pn-nfs-utils = "nfsv4 nfsv41 ipv6 tirpc"
100
101 PACKAGECONFIG_DISTRO_pn-qtbase = "icu sql-sqlite"
102 PACKAGECONFIG_FB_pn-qtbase = "linuxfb"
103 PACKAGECONFIG_GL_pn-qtbase = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'eglfs gles2', '', d)}"
104 EXTRA_QMAKEVARS_PRE_pn-qtbase = "QT_CONFIG-=eglfs_egldevice"
105 PACKAGECONFIG_pn-qtdeclarative = ""
106 PACKAGECONFIG_pn-qtwebkit = ""
107
108 PACKAGECONFIG_pn-samba = "systemd zeroconf"
109
110 PACKAGECONFIG_pn-systemd = "hostnamed ldconfig localed logind machined myhostname randomseed sysusers utmp xz"
111
112 PACKAGECONFIG_pn-weston = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms wayland', '', d)} \
113                            ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
114                            ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles', '', d)} \
115                            ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'launch', '', d)}"
116
117 PACKAGECONFIG_pn-wpa-supplicant = "openssl"
118
119 PACKAGECONFIG_pn-xserver-xorg = "dri2 udev"
120
121 ROOT_HOME ?= "/root"
122
123 LICENSE_FLAGS_WHITELIST = "commercial"
124
125 # build some core libs with better compiler optimization for better performance
126 FULL_OPTIMIZATION_O3 = "-O3 -pipe ${DEBUG_FLAGS}"
127 FULL_OPTIMIZATION_pn-flac = "${FULL_OPTIMIZATION_O3}"
128 FULL_OPTIMIZATION_pn-jpeg = "${FULL_OPTIMIZATION_O3}"
129 FULL_OPTIMIZATION_pn-lame = "${FULL_OPTIMIZATION_O3}"
130 FULL_OPTIMIZATION_pn-liba52 = "${FULL_OPTIMIZATION_O3}"
131 FULL_OPTIMIZATION_pn-libdca = "${FULL_OPTIMIZATION_O3}"
132 FULL_OPTIMIZATION_pn-libgcrypt = "${FULL_OPTIMIZATION_O3}"
133 FULL_OPTIMIZATION_pn-libmad = "${FULL_OPTIMIZATION_O3}"
134 FULL_OPTIMIZATION_pn-libogg = "${FULL_OPTIMIZATION_O3}"
135 FULL_OPTIMIZATION_pn-libpng = "${FULL_OPTIMIZATION_O3}"
136 FULL_OPTIMIZATION_pn-libsamplerate = "${FULL_OPTIMIZATION_O3}"
137 FULL_OPTIMIZATION_pn-libvorbis = "${FULL_OPTIMIZATION_O3}"
138 FULL_OPTIMIZATION_pn-tremor = "${FULL_OPTIMIZATION_O3}"
139 FULL_OPTIMIZATION_pn-zlib = "${FULL_OPTIMIZATION_O3}"
140
141 # Drop unused PACKAGE_EXTRA_ARCHS
142 PACKAGE_EXTRA_ARCHS = "${TUNE_PKGARCH}"
143
144 PREMIRRORS ?= "\
145 bzr://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
146 cvs://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
147 git://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
148 hg://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
149 osc://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
150 p4://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
151 svn://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
152 bzr://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
153 cvs://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
154 git://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
155 hg://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
156 osc://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
157 p4://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
158 svn://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n"
159
160 MIRRORS =+ "\
161 ftp://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
162 http://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
163 https://.*/.*  http://dreamboxupdate.com/sources-mirror/ \n \
164 ftp://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
165 http://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
166 https://.*/.*  http://autobuilder.yoctoproject.org/sources/ \n"
167
168 DREAMBOX_FEATURES ??= ""