aboutsummaryrefslogtreecommitdiffstats
path: root/www/vimb-gtk2/Makefile
blob: eded5fa0464d7f8ce53d323b226bce931b65f32c (plain) (blame)
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
# $FreeBSD$

PORTNAME?=  vimb-gtk2
PORTVERSION=    2.12
CATEGORIES= www

MAINTAINER= mike.d.ft402@gmail.com
COMMENT=    Vim like browser

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/LICENSE

LIB_DEPENDS?=   libwebkitgtk-1.0.so:www/webkit-gtk2 \
        libfontconfig.so:x11-fonts/fontconfig \
        libfreetype.so:print/freetype2 \
        libsoup-2.4.so:devel/libsoup

USES=       gmake pkgconfig
USE_GNOME?= gtk20 cairo gdkpixbuf2

USE_GITHUB= yes
GH_ACCOUNT= fanglingsu
GH_PROJECT= vimb
PLIST_FILES=    bin/vimb man/man1/vimb.1.gz

MAKE_ENV?=  GTK="2"

CONFLICTS?= vimb-gtk3-*

OPTIONS_DEFINE= HTML5 NOSCROLLBARS
OPTIONS_DEFAULT=    HTML5

HTML5_DESC= HTML5 support
NOSCROLLBARS_DESC=  Disable scrollbars

HTML5_RUN_DEPENDS=  gstreamer1-libav>=1.6.3:multimedia/gstreamer1-libav\
    gstreamer1-plugins-good>=1.6.3:multimedia/gstreamer1-plugins-good

NOSCROLLBARS_CFLAGS+=   -DFEATURE_NO_SCROLLBARS

post-extract:
    ${MV} ${WRKSRC}/src/config.def.h ${WRKSRC}/src/config.h

do-install:
    ${INSTALL_MAN} ${WRKSRC}/doc/vimb.1 ${STAGEDIR}${MANPREFIX}/man/man1/
    ${INSTALL_PROGRAM} ${WRKSRC}/src/vimb ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>