aboutsummaryrefslogtreecommitdiff
path: root/x11/xmenu/Makefile
blob: 8c0db837ead9982729055bbe0e9452a87628c93e (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
PORTNAME=	xmenu
DISTVERSIONPREFIX=	v
DISTVERSION=	4.6.1
PORTREVISION=	3
CATEGORIES=	x11

MAINTAINER=	lcook@FreeBSD.org
COMMENT=	X11 menu utility
WWW=		https://github.com/phillbush/xmenu

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
		libImlib2.so:graphics/imlib2

USES=		compiler:c11 xorg
USE_GITHUB=	yes
GH_ACCOUNT=	phillbush
USE_XORG=	x11 xft xinerama

MAKE_ARGS=	FREETYPEINC="${LOCALBASE}/include/freetype2" \
		MANPREFIX="${PREFIX}/share/man" \
		PREFIX="${PREFIX}"

PLIST_FILES=	bin/${PORTNAME} \
		share/man/man1/${PORTNAME}.1.gz
PORTDOCS=	CHANGELOG README.md
PORTEXAMPLES=	icons/* xmenu.sh

OPTIONS_DEFINE=	DOCS EXAMPLES

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

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>