summaryrefslogtreecommitdiff
path: root/x11/jgmenu/Makefile
blob: 2e1a63cecd715529633163a5e62aab67752ac23d (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

PORTNAME=	jgmenu
DISTVERSIONPREFIX=	v
DISTVERSION=	4.3.0
CATEGORIES=	x11

MAINTAINER=	lcook@FreeBSD.org
COMMENT=	Simple X11 menu

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libpng16.so:graphics/png

USES=		compiler:c11 gmake gnome pkgconfig python:3.4+ shebangfix xorg
USE_GITHUB=	yes
GH_ACCOUNT=	johanmalm
USE_GNOME=	cairo gdkpixbuf2 glib20 librsvg2 libxml2 pango
INSTALLS_ICONS=	yes
USE_XORG=	x11 xrandr

SHEBANG_FILES=		contrib/gtktheme/*.py contrib/pmenu/*.py src/*.py
HAS_CONFIGURE=		yes
CONFIGURE_ARGS+=	--libexecdir=${PREFIX}/libexec \
			--prefix=${PREFIX}

PORTDOCS=	${_DOCS:T}

OPTIONS_DEFINE=		DOCS LX PMENU
OPTIONS_DEFAULT=	LX PMENU
OPTIONS_SUB=		yes

LX_DESC=	Generate menu data for freedesktop defined application menus
PMENU_DESC=	Generate menu data based on desktop and directory files

LX_LIB_DEPENDS+=	libmenu-cache.so:x11/menu-cache
LX_CONFIGURE_ON=	--with-lx
PMENU_CONFIGURE_ON=	--with-pmenu

_LIBEXEC=	greeneye apps socket i18n obtheme config ob
_DOCS=		AUTHORS.md CONTRIBUTING.md INSTALL.md NEWS.md README.md TODO.md \
		docs/coding_style docs/default.csv docs/notes_on_icons \
		docs/relnotes/${DISTVERSION}.txt

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MLX}
_LIBEXEC+=	lx
.endif

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.for f in ${_LIBEXEC}
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/${PORTNAME}-${f}
.endfor

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${_DOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>