summaryrefslogtreecommitdiff
path: root/www/vimb/Makefile
blob: 92ff440675f8c1e8caa4e738b4c635bac6a4dc3c (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
# $FreeBSD$

PORTNAME=	vimb
DISTVERSION=	3.4.0
CATEGORIES=	www

MAINTAINER=	tobik@FreeBSD.org
COMMENT=	Vim like browser

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libsoup-2.4.so:devel/libsoup \
		libwebkit2gtk-4.0.so:www/webkit2-gtk3

USES=		compiler:c11 desktop-file-utils gmake gnome pkgconfig
USE_GITHUB=	yes
GH_ACCOUNT=	fanglingsu
GH_PROJECT=	vimb
USE_GNOME=	cairo gdkpixbuf2 gtk30

LDFLAGS+=	-Wl,--as-needed
MAKE_ARGS=	MANPREFIX=${STAGEDIR}${PREFIX}/man \
		V=1 \
		version="${DISTVERSION}"
PLIST_FILES=	bin/vimb \
		lib/vimb/webext_main.so \
		man/man1/vimb.1.gz \
		share/applications/vimb.desktop

post-patch:
# .git/index needs to exist to generate version.h...
	${MKDIR} ${WRKSRC}/.git/index

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/vimb \
		${STAGEDIR}${PREFIX}/lib/vimb/webext_main.so

.include <bsd.port.mk>