aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/showdown/Makefile
blob: 289ddbb45c9fc9aaeb3c4ff548eab5e318f14179 (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
# $FreeBSD$

PORTNAME=   showdown
DISTVERSION=    0.6
CATEGORIES= deskutils

MAINTAINER= dg@syrec.org
COMMENT=    Simple markdown viewer, written in Vala and GTK 3

LICENSE=    GPLv3

BUILD_DEPENDS=  ${LOCALBASE}/lib/libmarkdown.a:textproc/discount \
        valac:lang/vala
LIB_DEPENDS=    libsoup-2.4.so:devel/libsoup \
        libwebkit2gtk-4.0.so:www/webkit2-gtk3

USES=       desktop-file-utils gmake pkgconfig
USE_GNOME=  atk cairo gdkpixbuf2 glib20 gtk30 pango
USE_XORG=   x11
USE_GITHUB= yes
GH_ACCOUNT= craigbarnes

MAKEFILE=   GNUmakefile
MAKE_ARGS=  V=1 prefix=${PREFIX}
INSTALLS_ICONS= yes

PORTDOCS=   README.md

PLIST_FILES=    bin/showdown \
        share/applications/io.gitlab.craigbarnes.Showdown.desktop \
        share/icons/hicolor/scalable/apps/showdown.svg

OPTIONS_DEFINE= DOCS

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/showdown

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>