surf: Add a simple web browser
PATCH v4 1/1 surf: Add a simple web browser
Add a recipe for surf, a simple web browser based on WebKit2/GTK+.
--- .../0001-config.mk-Fix-compiler-and-linker.patch | 41 ++++++++++++++++++++++ meta-oe/recipes-graphics/surf/surf_2.0.bb | 26 ++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch create mode 100644 meta-oe/recipes-graphics/surf/surf_2.0.bb
meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file +41 -0
@@ -0,0 +1,41 @@ +From e97bb73851f5bbd94260da553a222526485cdfb1 Mon Sep 17 00:00:00 2001 +From: Leon Anavi <[email protected]> +Date: Fri, 15 Nov 2019 18:24:42 +0000 +Subject: [PATCH] config.mk: Fix compiler and linker + +Do not set explicitly compiler and linker. + +Signed-off-by: Leon Anavi <[email protected]> +--- + config.mk | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/config.mk b/config.mk +index df6e812..5deb991 100644 +--- a/config.mk ++++ b/config.mk +@@ -15,17 +15,17 @@ GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0` + GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0` + + # includes and libs +-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC} +-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0 ++INCS = ${GTKINC} ++LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0 + + # flags + CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE + CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} +-LDFLAGS = -s ${LIBS} ++LDFLAGS = ${LIBS} + + # Solaris + #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" + #LDFLAGS = ${LIBS} + + # compiler and linker +-CC = cc ++CC ?= cc +-- +2.7.4 +
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +26 -0
@@ -0,0 +1,26 @@ +SUMMARY = "Simple web browser" +DESCRIPTION = "Simple open source web browser based on WebKit2/GTK" +HOMEPAGE = "https://surf.suckless.org/" +SECTION = "x11/graphics" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=b57e7f7720307a02d5a6598b00fe3afa" + +DEPENDS = "webkitgtk gtk+3 glib-2.0" + +REQUIRED_DISTRO_FEATURES = "x11" + +SRC_URI = "git://git.suckless.org/surf;branch=surf-webkit2 \ + file://0001-config.mk-Fix-compiler-and-linker.patch \ +" +SRCREV = "b814567e2bf8bda07cea8de1c7a062f4aa437b65" + +S = "${WORKDIR}/git" + +inherit pkgconfig distro_features_check + +TARGET_CC_ARCH += "${LDFLAGS}" + +do_install () { + install -d ${D}${bindir} + install -m 0755 ${S}/surf ${D}${bindir} +}
Signature · 1 line
2.7.4
Quoted 79 lines · Leon Anavi
Add a recipe for surf, a simple web browser based on WebKit2/GTK+.
Signed-off-by Leon Anavi <[email protected]>--- .../0001-config.mk-Fix-compiler-and-linker.patch | 41 ++++++++++++++++++++++ meta-oe/recipes-graphics/surf/surf_2.0.bb | 26 ++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch create mode 100644 meta-oe/recipes-graphics/surf/surf_2.0.bbmeta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file +41
-0@@ -0,0 +1,41 @@ +From e97bb73851f5bbd94260da553a222526485cdfb1 Mon Sep 17 00:00:00 2001 +From: Leon Anavi <[email protected]> +Date: Fri, 15 Nov 2019 18:24:42 +0000 +Subject: [PATCH] config.mk: Fix compiler and linker + +Do not set explicitly compiler and linker. + +Signed-off-by: Leon Anavi <[email protected]> +--- + config.mk | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/config.mk b/config.mk +index df6e812..5deb991 100644 +--- a/config.mk ++++ b/config.mk +@@ -15,17 +15,17 @@ GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0` + GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0` + + # includes and libs +-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC} +-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0 ++INCS = ${GTKINC} ++LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0 + + # flags + CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE + CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} +-LDFLAGS = -s ${LIBS} ++LDFLAGS = ${LIBS} + + # Solaris + #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" + #LDFLAGS = ${LIBS} + + # compiler and linker +-CC = cc ++CC ?= cc +-- +2.7.4 +meta-oe/recipes-graphics/surf/surf_2.0.bb new file +15
-0@@ -0,0 +1,26 @@ +SUMMARY = "Simple web browser" +DESCRIPTION = "Simple open source web browser based on WebKit2/GTK" +HOMEPAGE = "https://surf.suckless.org/" +SECTION = "x11/graphics" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=b57e7f7720307a02d5a6598b00fe3afa" + +DEPENDS = "webkitgtk gtk+3 glib-2.0" + +REQUIRED_DISTRO_FEATURES = "x11" + +SRC_URI = "git://git.suckless.org/surf;branch=surf-webkit2 \ + file://0001-config.mk-Fix-compiler-and-linker.patch \ +" +SRCREV = "b814567e2bf8bda07cea8de1c7a062f4aa437b65"
meta-oe/recipes-graphics/surf/surf_2.0.bb line 25
Quoted 10 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +10
-0+ +S = "${WORKDIR}/git" + +inherit pkgconfig distro_features_check + +TARGET_CC_ARCH += "${LDFLAGS}" + +do_install () { + install -d ${D}${bindir} + install -m 0755 ${S}/surf ${D}${bindir}
you could do it with one liner
do_install () {
install -D -m 0755 ${S}/surf ${D}${bindir}/surf
}Quoted 12 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +1
-1+} --2.7.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hi Khem,
Quoted 91 lines · Khem Raj
Quoted 78 lines · Leon Anavi
Add a recipe for surf, a simple web browser based on WebKit2/GTK+.
Signed-off-by Leon Anavi <[email protected]>--- .../0001-config.mk-Fix-compiler-and-linker.patch | 41 ++++++++++++++++++++++ meta-oe/recipes-graphics/surf/surf_2.0.bb | 26 ++++++++++++++ 2 files changed, 67 insertions(+)create mode 100644
meta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patchcreate mode 100644 meta-oe/recipes-graphics/surf/surf_2.0.bbmeta-oe/recipes-graphics/surf/surf/0001-config.mk-Fix-compiler-and-linker.patch new file +41
-0@@ -0,0 +1,41 @@ +From e97bb73851f5bbd94260da553a222526485cdfb1 Mon Sep 17 00:00:00 2001 +From: Leon Anavi <[email protected]> +Date: Fri, 15 Nov 2019 18:24:42 +0000 +Subject: [PATCH] config.mk: Fix compiler and linker + +Do not set explicitly compiler and linker. + +Signed-off-by: Leon Anavi <[email protected]> +--- + config.mk | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/config.mk b/config.mk +index df6e812..5deb991 100644 +--- a/config.mk ++++ b/config.mk +@@ -15,17 +15,17 @@ GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0` + GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0` + + # includes and libs +-INCS = -I. -I/usr/include -I${X11INC} ${GTKINC} +-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0 ++INCS = ${GTKINC} ++LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0 + + # flags + CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE + CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} +-LDFLAGS = -s ${LIBS} ++LDFLAGS = ${LIBS} + + # Solaris + #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" + #LDFLAGS = ${LIBS} + + # compiler and linker +-CC = cc ++CC ?= cc +-- +2.7.4 +meta-oe/recipes-graphics/surf/surf_2.0.bb new file +15
-0@@ -0,0 +1,26 @@ +SUMMARY = "Simple web browser" +DESCRIPTION = "Simple open source web browser based on WebKit2/GTK" +HOMEPAGE = "https://surf.suckless.org/" +SECTION = "x11/graphics" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=b57e7f7720307a02d5a6598b00fe3afa" + +DEPENDS = "webkitgtk gtk+3 glib-2.0" + +REQUIRED_DISTRO_FEATURES = "x11" + +SRC_URI = "git://git.suckless.org/surf;branch=surf-webkit2 \ + file://0001-config.mk-Fix-compiler-and-linker.patch \ +" +SRCREV = "b814567e2bf8bda07cea8de1c7a062f4aa437b65"meta-oe/recipes-graphics/surf/surf_2.0.bb line 25
Quoted 10 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +10
-0+ +S = "${WORKDIR}/git" + +inherit pkgconfig distro_features_check + +TARGET_CC_ARCH += "${LDFLAGS}" + +do_install () { + install -d ${D}${bindir} + install -m 0755 ${S}/surf ${D}${bindir}you could do it with one liner
Quoted 3 lines
do_install () {
install -D -m 0755 ${S}/surf ${D}${bindir}/surf
}OK, let's do it with one liner. I've updated the patch again.
Thanks,
Leon
Quoted 11 lines
Quoted 11 lines
meta-oe/recipes-graphics/surf/surf_2.0.bb new file +1
-1+} --2.7.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 3 lines
Leon Anavi Software Engineer konsulko.com