summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2019-11-17 21:03:17 +0200
committerKhem Raj <raj.khem@gmail.com>2019-11-17 21:02:14 -0800
commit053433f7957f0b050d2eedda2bee8f104de39a4c (patch)
treed8f68a6feb5f1333e527b90b717cb9fe95f0d27a
parentb192e792cd0c72c19bf8f18217accf419d66b41e (diff)
downloadmeta-openembedded-053433f7957f0b050d2eedda2bee8f104de39a4c.tar.gz
surf: Add a simple web browser
Add a recipe for surf, a simple web browser based on WebKit2/GTK+. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch41
-rw-r--r--meta-oe/recipes-graphics/surf/surf_2.0.bb25
2 files changed, 66 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch b/meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch
new file mode 100644
index 0000000000..fb90432eac
--- /dev/null
+++ b/meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch
@@ -0,0 +1,41 @@
1From e97bb73851f5bbd94260da553a222526485cdfb1 Mon Sep 17 00:00:00 2001
2From: Leon Anavi <leon.anavi@konsulko.com>
3Date: Fri, 15 Nov 2019 18:24:42 +0000
4Subject: [PATCH] config.mk: Fix compiler and linker
5
6Do not set explicitly compiler and linker.
7
8Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
9---
10 config.mk | 8 ++++----
11 1 file changed, 4 insertions(+), 4 deletions(-)
12
13diff --git a/config.mk b/config.mk
14index df6e812..5deb991 100644
15--- a/config.mk
16+++ b/config.mk
17@@ -15,17 +15,17 @@ GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0`
18 GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0`
19
20 # includes and libs
21-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
22-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
23+INCS = ${GTKINC}
24+LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0
25
26 # flags
27 CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE
28 CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
29-LDFLAGS = -s ${LIBS}
30+LDFLAGS = ${LIBS}
31
32 # Solaris
33 #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
34 #LDFLAGS = ${LIBS}
35
36 # compiler and linker
37-CC = cc
38+CC ?= cc
39--
402.7.4
41
diff --git a/meta-oe/recipes-graphics/surf/surf_2.0.bb b/meta-oe/recipes-graphics/surf/surf_2.0.bb
new file mode 100644
index 0000000000..5b03f8bcef
--- /dev/null
+++ b/meta-oe/recipes-graphics/surf/surf_2.0.bb
@@ -0,0 +1,25 @@
1SUMMARY = "Simple web browser"
2DESCRIPTION = "Simple open source web browser based on WebKit2/GTK"
3HOMEPAGE = "https://surf.suckless.org/"
4SECTION = "x11/graphics"
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=b57e7f7720307a02d5a6598b00fe3afa"
7
8DEPENDS = "webkitgtk gtk+3 glib-2.0"
9
10REQUIRED_DISTRO_FEATURES = "x11"
11
12SRC_URI = "git://git.suckless.org/surf;branch=surf-webkit2 \
13 file://0001-config.mk-Fix-compiler-and-linker.patch \
14"
15SRCREV = "b814567e2bf8bda07cea8de1c7a062f4aa437b65"
16
17S = "${WORKDIR}/git"
18
19inherit pkgconfig distro_features_check
20
21TARGET_CC_ARCH += "${LDFLAGS}"
22
23do_install () {
24 install -D -m 0755 ${S}/surf ${D}${bindir}/surf
25}