summaryrefslogtreecommitdiff
path: root/package/cog/Makefile
blob: 7302f570ff4959612ee1207eddad429e181c1dbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		cog
PKG_VERSION:=		0.18.5
PKG_RELEASE:=		1
PKG_HASH:=		0ede9d09ab635ac519beec0543378e3fc51b56561a5fb7aa9c0cbca54c31b97c
PKG_DESCR:=		minimalistic browser
PKG_SECTION:=		app/browser
PKG_DEPENDS:=		wpewebkit wpebackend-fdo libinput glib-networking ca-certificates
PKG_BUILDDEP:=		wpewebkit wpebackend-fdo libinput
PKG_URL:=		https://wpewebkit.org
PKG_SITES:=		https://wpewebkit.org/releases/

PKG_CHOICES_COG:=	WITH_X11 WITH_WAYLAND
PKGCD_WITH_WAYLAND:=	with wayland support
PKGCD_WITH_X11:=	with X11 support

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,COG,cog,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))

WRKBUILD=               $(WRKDIR)/$(PKG_NAME)-obj

MESON_FLAGS+=		-Ddocumentation=false \
			-Dmanpages=false \
			-Dprograms=true \
			-Dwpe_api=2.0

ifeq ($(ADK_PACKAGE_COG_WITH_WAYLAND),y)
MESON_FLAGS+=		-Dplatforms="wayland"
endif

ifeq ($(ADK_PACKAGE_COG_WITH_X11),y)
MESON_FLAGS+=		-Dplatforms="x11"
endif

CONFIG_STYLE:=		meson
BUILD_STYLE:=		meson
INSTALL_STYLE:=		meson

cog-install:
	$(INSTALL_DIR) $(IDIR_COG)/usr/lib
	$(CP) $(WRKINST)/usr/lib/libcogcore.so* \
		$(IDIR_COG)/usr/lib
	$(INSTALL_DIR) $(IDIR_COG)/usr/lib/cog/modules
	$(CP) $(WRKINST)/usr/lib/cog/modules/* \
		$(IDIR_COG)/usr/lib/cog/modules
	$(INSTALL_DIR) $(IDIR_COG)/usr/bin
	$(INSTALL_BIN) $(WRKINST)/usr/bin/cog \
		$(IDIR_COG)/usr/bin

include $(ADK_TOPDIR)/mk/pkg-bottom.mk