summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/xserver-xorg-cvt/xserver-xorg-cvt-native_1.20.9.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/xserver-xorg-cvt/xserver-xorg-cvt-native_1.20.9.bb')
-rw-r--r--meta-oe/recipes-support/xserver-xorg-cvt/xserver-xorg-cvt-native_1.20.9.bb41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/xserver-xorg-cvt/xserver-xorg-cvt-native_1.20.9.bb b/meta-oe/recipes-support/xserver-xorg-cvt/xserver-xorg-cvt-native_1.20.9.bb
new file mode 100644
index 0000000000..b7dcc70898
--- /dev/null
+++ b/meta-oe/recipes-support/xserver-xorg-cvt/xserver-xorg-cvt-native_1.20.9.bb
@@ -0,0 +1,41 @@
1SUMMARY = "X.Org X cvt"
2HOMEPAGE = "https://linux.die.net/man/1/cvt"
3LICENSE = "MIT-X"
4LIC_FILES_CHKSUM = "file://COPYING;md5=5df87950af51ac2c5822094553ea1880"
5
6DEPENDS += "pixman-native xorgproto-native libxrandr-native"
7
8XORG_PN = "xorg-server"
9
10SRC_URI = "${XORG_MIRROR}/individual/xserver/${XORG_PN}-${PV}.tar.bz2"
11SRC_URI[md5sum] = "afcae2f46d47c33863cab7fd9db7279a"
12SRC_URI[sha256sum] = "e219f2e0dfe455467939149d7cd2ee53b79b512cc1d2094ae4f5c9ed9ccd3571"
13
14S = "${WORKDIR}/${XORG_PN}-${PV}"
15B = "${WORKDIR}/build"
16
17inherit native pkgconfig
18
19do_configure[noexec] = "1"
20
21do_compile() {
22 cd ${S}
23 for header in `find -name '*.h'`; do
24 path=`dirname $header`
25 if ! echo "$incpaths" | grep -q "$path" ; then
26 incpaths="$incpaths -I$path"
27 fi
28 done
29 CFLAGS="${CFLAGS} -DXORG_VERSION_CURRENT=1 $incpaths `pkg-config --cflags pixman-1`"
30 LDFLAGS="${LDFLAGS} -lm `pkg-config --libs pixman-1`"
31 ${CC} $CFLAGS -o ${B}/cvt \
32 ${S}/hw/xfree86/utils/cvt/cvt.c \
33 ${S}/hw/xfree86/modes/xf86cvt.c \
34 ${S}/os/xprintf.c \
35 $LDFLAGS
36}
37
38do_install() {
39 install -d ${D}${bindir}
40 install -m 755 ${B}/cvt ${D}${bindir}
41}