summaryrefslogtreecommitdiff
path: root/www/midori/Makefile
blob: c3ba52739964a5f82f005a2e62d9abf0f7f78f83 (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
56
57
58
59
60
61
62
63
64
65
66
# $NetBSD: Makefile,v 1.113 2018/11/14 22:22:37 kleink Exp $

DISTNAME=	midori_0.5.11_all_
PKGNAME=	${DISTNAME:S/_all_//:S/_/-/}
PKGREVISION=	28
CATEGORIES=	www
MASTER_SITES=	http://midori-browser.org/downloads/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://midori-browser.org/
COMMENT=	Lightweight web browser using WebKit
LICENSE=	gnu-lgpl-v2.1
EXTRACT_SUFX=	.tar.bz2

WRKSRC=		${WRKDIR}/${PKGNAME_NOREV}

HAS_CONFIGURE=	yes
USE_CMAKE=	yes
USE_TOOLS+=	gmake intltool msgfmt pkg-config

CONFIGURE_ARGS+=	--prefix=${PREFIX}
CONFIGURE_ARGS+=	--disable-zeitgeist
CMAKE_ARGS+=		-DUSE_ZEITGEIST=OFF
CMAKE_ARGS+=		-DPREFIX=${PREFIX}

CHECK_PORTABILITY_SKIP+=	win32/old/x86-mingw32-opensuse/install.sh
CHECK_PORTABILITY_SKIP+=	win32/makedist/makedist.midori

BUILD_DEPENDS+=		librsvg>=2.18:../../graphics/librsvg

DEPENDS+=		gnome-themes-standard-[0-9]*:../../graphics/gnome-themes-standard

EGDIR=			${PREFIX}/share/examples/midori
OWN_DIRS=		${PKG_SYSCONFDIR}/xdg/midori
CONF_FILES=		${EGDIR}/search ${PKG_SYSCONFDIR}/xdg/midori/search

# Otherwise build chokes on .orig files
pre-configure:
	${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} \;

.include "../../mk/bsd.prefs.mk"

OWN_DIRS+=	${PKG_SYSCONFDIR}/xdg/midori/extensions/adblock
CONF_FILES+=	${EGDIR}/extensions/adblock/config \
		${PKG_SYSCONFDIR}/xdg/midori/extensions/adblock/config

CONFIGURE_ENV=	VALAC=${VALAC}

NOT_PAX_MPROTECT_SAFE+=	bin/midori

.include "options.mk"

.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libidn/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/gnome-icon-theme/buildlink3.mk"
.include "../../net/libsoup/buildlink3.mk"
#.include "../../security/gnome-keyring/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../sysutils/libnotify/buildlink3.mk"
.include "../../x11/libXScrnSaver/buildlink3.mk"
BUILDLINK_DEPMETHOD.vala= build
.include "../../lang/vala/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"