opendreambox.conf: set PACKAGECONFIG for nfs-utils
[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 DISTRO_FEATURES_DEFAULT ?= "alsa argp bluetooth ext2 largefile usbhost wifi xattr nfs zeroconf pci 3g \
13                             ppp smbfs systemd xinetd"
14 DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio"
15 DISTRO_FEATURES_GCC ?= ""
16 DISTRO_FEATURES_GCC_mipsel ?= " mplt"
17 DISTRO_FEATURES_GFX ?= " opengl"
18 DISTRO_FEATURES_append = "${DISTRO_FEATURES_GCC}${DISTRO_FEATURES_GFX}"
19
20 # meta/conf/distro/defaultsetup.conf
21 PACKAGE_CLASSES ?= "package_deb"
22
23 # meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
24 SYSVINIT_ENABLED_GETTYS = ""
25
26 # meta/classes/image_types.bbclass
27 IMAGE_FSTYPES =+ "tar.xz"
28 XZ_COMPRESSION_LEVEL ?= ""
29
30 # meta/classes/image.bbclass
31 IMAGE_PKGTYPE ?= "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'deb', 'ipk', d)}"
32
33 # package versions
34 PREFERRED_VERSION_gnupg ?= "1.4.7"
35 PREFERRED_VERSION_xserver-nodm-init ?= "1.0"
36
37 PREFERRED_PROVIDER_dreambox-image ?= "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'dreambox-image-deb', 'dreambox-image-ipk', d)}"
38
39 PREFERRED_PROVIDER_jpeg ?= "libjpeg-turbo"
40 PREFERRED_PROVIDER_jpeg-native ?= "libjpeg-turbo-native"
41
42 PREFERRED_PROVIDER_virtual/update-alternatives = "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'dpkg', 'opkg-utils', d)}"
43 PREFERRED_PROVIDER_virtual/update-alternatives-native = "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'dpkg-native', 'opkg-utils-native', d)}"
44 VIRTUAL-RUNTIME_update-alternatives = "${@base_contains('PACKAGE_CLASSES', 'package_deb', 'update-alternatives-dpkg', 'update-alternatives-opkg', d)}"
45
46 PACKAGECONFIG_pn-apt = "lzma manpages opkg"
47
48 PACKAGECONFIG_pn-cogl-1.0 = "egl-kms egl-null \
49         ${@base_contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)} \
50         ${@base_contains('DISTRO_FEATURES', 'wayland', 'egl-wayland', '', d)} \
51         ${@base_contains('DISTRO_FEATURES', 'x11', 'egl-x11', '', d)}"
52
53 PACKAGECONFIG_pn-connman = "l2tp openvpn pptp vpnc \
54         ${@base_contains('DISTRO_FEATURES', '3g','3g', '', d)} \
55         ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluetooth', '', d)} \
56         ${@base_contains('DISTRO_FEATURES', 'systemd','systemd', '', d)} \
57         ${@base_contains('DISTRO_FEATURES', 'wifi','wifi wispr', '', d)}"
58
59 PACKAGECONFIG_pn-curl = "ssl zlib \
60         ${@base_contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
61
62 PACKAGECONFIG_pn-dpkg = "update-alternatives xz"
63 PACKAGECONFIG_pn-dpkg-native = "update-alternatives xz"
64
65 PACKAGECONFIG_pn-glmark2 = "drm-gles2"
66
67 ORCPACKAGECONFIG = "orc"
68 ORCPACKAGECONFIG_mipsel = ""
69
70 OPENDREAMBOX_GST_VERSION ?= "1.0"
71
72 PACKAGECONFIG_pn-gstreamer1.0-plugins-base = " \
73     ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
74     ${@base_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     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                            bzlib lzma theora"
95
96 PACKAGECONFIG_pn-libunwind = "lzma"
97
98 PACKAGECONFIG_pn-mesa-demos = "drm osmesa freetype2 gbm egl gles2"
99
100 PACKAGECONFIG_pn-nfs-utils = "nfsv4 nfsv41 ipv6 tirpc"
101
102 PACKAGECONFIG_DISTRO_pn-qtbase = "icu sql-sqlite"
103 PACKAGECONFIG_FB_pn-qtbase = "linuxfb"
104 PACKAGECONFIG_GL_pn-qtbase = "${@base_contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}"
105 PACKAGECONFIG_pn-qtdeclarative = ""
106 PACKAGECONFIG_pn-qtwebkit = ""
107 EXTRA_OECONF_append_pn-qtbase = " -qpa ${@base_contains('DISTRO_FEATURES', 'opengl', 'eglfs', 'linuxfb', d)}"
108
109 PACKAGECONFIG_pn-weston = "${@base_contains('DISTRO_FEATURES', 'wayland', 'kms wayland', '', d)} \
110                            ${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
111                            ${@base_contains('DISTRO_FEATURES', 'opengl', 'gles', '', d)} \
112                            ${@base_contains('DISTRO_FEATURES', 'pam', 'launch', '', d)}"
113
114 PACKAGECONFIG_pn-wpa-supplicant = "openssl"
115
116 PACKAGECONFIG_pn-xserver-xorg = "dri2 udev"
117
118 ROOT_HOME ?= "/root"
119
120 LICENSE_FLAGS_WHITELIST = "commercial"
121
122 # build some core libs with better compiler optimization for better performance
123 FULL_OPTIMIZATION_O3 = "-O3 -pipe ${DEBUG_FLAGS}"
124 FULL_OPTIMIZATION_pn-flac = "${FULL_OPTIMIZATION_O3}"
125 FULL_OPTIMIZATION_pn-jpeg = "${FULL_OPTIMIZATION_O3}"
126 FULL_OPTIMIZATION_pn-lame = "${FULL_OPTIMIZATION_O3}"
127 FULL_OPTIMIZATION_pn-liba52 = "${FULL_OPTIMIZATION_O3}"
128 FULL_OPTIMIZATION_pn-libdca = "${FULL_OPTIMIZATION_O3}"
129 FULL_OPTIMIZATION_pn-libgcrypt = "${FULL_OPTIMIZATION_O3}"
130 FULL_OPTIMIZATION_pn-libmad = "${FULL_OPTIMIZATION_O3}"
131 FULL_OPTIMIZATION_pn-libogg = "${FULL_OPTIMIZATION_O3}"
132 FULL_OPTIMIZATION_pn-libpng = "${FULL_OPTIMIZATION_O3}"
133 FULL_OPTIMIZATION_pn-libsamplerate = "${FULL_OPTIMIZATION_O3}"
134 FULL_OPTIMIZATION_pn-libvorbis = "${FULL_OPTIMIZATION_O3}"
135 FULL_OPTIMIZATION_pn-tremor = "${FULL_OPTIMIZATION_O3}"
136 FULL_OPTIMIZATION_pn-zlib = "${FULL_OPTIMIZATION_O3}"
137
138 # Drop unused PACKAGE_EXTRA_ARCHS
139 PACKAGE_EXTRA_ARCHS = "${TUNE_PKGARCH}"
140
141 PREMIRRORS ?= "\
142 bzr://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
143 cvs://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
144 git://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
145 hg://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
146 osc://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
147 p4://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
148 svn://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
149 bzr://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
150 cvs://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
151 git://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
152 hg://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
153 osc://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
154 p4://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
155 svn://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n"
156
157 MIRRORS =+ "\
158 ftp://.*/.*    http://dreamboxupdate.com/sources-mirror/ \n \
159 http://.*/.*   http://dreamboxupdate.com/sources-mirror/ \n \
160 https://.*/.*  http://dreamboxupdate.com/sources-mirror/ \n \
161 ftp://.*/.*    http://autobuilder.yoctoproject.org/sources/ \n \
162 http://.*/.*   http://autobuilder.yoctoproject.org/sources/ \n \
163 https://.*/.*  http://autobuilder.yoctoproject.org/sources/ \n"
164
165 DREAMBOX_FEATURES ??= ""
166
167 # for compatibility with rm_old_work.bbclass
168 WORKDIR = "${TMPDIR}/work/${MULTIMACH_TARGET_SYS}/${PN}/${PF}"