opendreambox.conf: set packageconfig options for libsdl2
[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-kms egl-null \
54         ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)} \
55         ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \
56         ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'egl-x11', '', d)}"
57
58 PACKAGECONFIG_pn-connman = "bluez l2tp openvpn pptp systemd vpnc wifi"
59
60 PACKAGECONFIG_pn-curl = "ssl zlib \
61         ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
62
63 PACKAGECONFIG_pn-dpkg = "update-alternatives xz"
64 PACKAGECONFIG_pn-dpkg-native = "update-alternatives xz"
65 PACKAGECONFIG_pn-nativesdk-dpkg = "update-alternatives xz"
66
67 PACKAGECONFIG_pn-glmark2 = "drm-gles2"
68
69 ORCPACKAGECONFIG = "orc"
70 ORCPACKAGECONFIG_mipsel = ""
71
72 PACKAGECONFIG_pn-gstreamer1.0-plugins-base = " \
73     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
74     ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
75     ${ORCPACKAGECONFIG} ivorbis ogg theora vorbis pango"
76
77 PACKAGECONFIG_pn-gstreamer1.0-plugins-good = " \
78     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
79     ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
80     ${ORCPACKAGECONFIG} cairo flac gdk-pixbuf gudev jpeg libpng soup speex taglib"
81
82 PACKAGECONFIG_pn-gstreamer1.0-plugins-bad = " \
83     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
84     ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
85     ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
86     ${ORCPACKAGECONFIG} curl uvch264 neon sndfile \
87     hls sbc dash bz2 smoothstreaming \
88     opus faad libmms assrender rtmp"
89
90 PACKAGECONFIG_pn-gstreamer1.0-plugins-ugly = " \
91     ${ORCPACKAGECONFIG} a52dec lame mad mpeg2dec cdio"
92
93 PACKAGECONFIG_pn-ffmpeg = "avdevice avfilter avcodec avformat swresample swscale postproc"
94
95 PACKAGECONFIG_GL_pn-libsdl2 = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}"
96
97 PACKAGECONFIG_pn-libunwind = "lzma"
98
99 PACKAGECONFIG_pn-mesa-demos = "drm osmesa freetype2 gbm egl gles2"
100
101 PACKAGECONFIG_pn-nfs-utils = "nfsv4 nfsv41 ipv6 tirpc"
102
103 PACKAGECONFIG_DISTRO_pn-qtbase = "icu sql-sqlite"
104 PACKAGECONFIG_FB_pn-qtbase = "linuxfb"
105 PACKAGECONFIG_GL_pn-qtbase = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'eglfs gles2', '', d)}"
106 EXTRA_QMAKEVARS_PRE_pn-qtbase = "QT_CONFIG-=eglfs_egldevice"
107 PACKAGECONFIG_pn-qtdeclarative = ""
108 PACKAGECONFIG_pn-qtwebkit = ""
109
110 PACKAGECONFIG_pn-samba = "systemd zeroconf"
111
112 PACKAGECONFIG_pn-systemd = "hostnamed ldconfig localed logind machined myhostname randomseed sysusers utmp xz"
113
114 PACKAGECONFIG_pn-weston = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'kms wayland', '', d)} \
115                            ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
116                            ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles', '', d)} \
117                            ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'launch', '', d)}"
118
119 PACKAGECONFIG_pn-wpa-supplicant = "openssl"
120
121 PACKAGECONFIG_pn-xserver-xorg = "dri2 udev"
122
123 ROOT_HOME ?= "/root"
124
125 LICENSE_FLAGS_WHITELIST = "commercial"
126
127 # build some core libs with better compiler optimization for better performance
128 FULL_OPTIMIZATION_O3 = "-O3 -pipe ${DEBUG_FLAGS}"
129 FULL_OPTIMIZATION_pn-flac = "${FULL_OPTIMIZATION_O3}"
130 FULL_OPTIMIZATION_pn-jpeg = "${FULL_OPTIMIZATION_O3}"
131 FULL_OPTIMIZATION_pn-lame = "${FULL_OPTIMIZATION_O3}"
132 FULL_OPTIMIZATION_pn-liba52 = "${FULL_OPTIMIZATION_O3}"
133 FULL_OPTIMIZATION_pn-libdca = "${FULL_OPTIMIZATION_O3}"
134 FULL_OPTIMIZATION_pn-libgcrypt = "${FULL_OPTIMIZATION_O3}"
135 FULL_OPTIMIZATION_pn-libmad = "${FULL_OPTIMIZATION_O3}"
136 FULL_OPTIMIZATION_pn-libogg = "${FULL_OPTIMIZATION_O3}"
137 FULL_OPTIMIZATION_pn-libpng = "${FULL_OPTIMIZATION_O3}"
138 FULL_OPTIMIZATION_pn-libsamplerate = "${FULL_OPTIMIZATION_O3}"
139 FULL_OPTIMIZATION_pn-libvorbis = "${FULL_OPTIMIZATION_O3}"
140 FULL_OPTIMIZATION_pn-tremor = "${FULL_OPTIMIZATION_O3}"
141 FULL_OPTIMIZATION_pn-zlib = "${FULL_OPTIMIZATION_O3}"
142
143 # Drop unused PACKAGE_EXTRA_ARCHS
144 PACKAGE_EXTRA_ARCHS = "${TUNE_PKGARCH}"
145
146 PREMIRRORS ?= "\
147 bzr://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
148 cvs://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
149 git://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
150 hg://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
151 osc://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
152 p4://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
153 svn://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
154 bzr://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
155 cvs://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
156 git://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
157 hg://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
158 osc://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
159 p4://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
160 svn://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n"
161
162 MIRRORS =+ "\
163 ftp://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
164 http://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
165 https://.*/.*  http://dreamboxupdate.com/sources-mirror/ \n \
166 ftp://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
167 http://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
168 https://.*/.*  http://autobuilder.yoctoproject.org/sources/ \n"
169
170 DREAMBOX_FEATURES ??= ""