summaryrefslogtreecommitdiffstats
path: root/x11/tint-devel/Makefile
blob: 40733be059cd4ca69cd5607b9874709c3c85828a (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
# $FreeBSD$

PORTNAME=	tint2
PORTVERSION=	2.00.${DATE}
PORTREVISION=	1
CATEGORIES=	x11
MASTER_SITES=	http://deponie.yamagi.org/freebsd/distfiles/tint/
PKGNAMESUFFIX=	-devel
DISTNAME=	tint2-devel-${DATE}

MAINTAINER=	yamagi@yamagi.org
COMMENT=	Lightweight freedesktop-compliant panel (development version)

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libcairo.so:graphics/cairo \
		libImlib2.so:graphics/imlib2 \
		librsvg-2.so:graphics/librsvg2 \
		libstartup-notification-1.so:x11/startup-notification

CONFLICTS=	tint2-[0-9]*

IGNORE=		-devel version is older than x11/tint

USES=		alias cmake pkgconfig tar:xz
USE_GNOME=	glib20 gtk20 pango
USE_XORG=	xcomposite xdamage xinerama xrandr

CMAKE_ARGS=	-DENABLE_BATTERY:BOOL=ON -DMANDIR:PATH=man

OPTIONS_DEFINE=	DOCS EXAMPLES
OPTIONS_SUB=	yes

DATE=	20150710

PORTEXAMPLES=	icon_and_text_1.tint2rc icon_and_text_2.tint2rc \
		icon_and_text_3.tint2rc icon_and_text_4.tint2rc \
		icon_only_1.tint2rc icon_only_2.tint2rc icon_only_3.tint2rc \
		icon_only_4.tint2rc icon_only_6.tint2rc icon_only_7.tint2rc \
		text_only_1.tint2rc text_only_2.tint2rc text_only_3.tint2rc \
		text_only_4.tint2rc text_only_5.tint2rc text_only_6.tint2rc tint2rc
PORTDOCS=	AUTHORS ChangeLog README.md

.include <bsd.port.options.mk>

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/tint2 ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/tint2-devel
	${INSTALL_DATA} ${WRKSRC}/default_icon.png ${STAGEDIR}${PREFIX}/share/tint2-devel
	${INSTALL_MAN} ${WRKSRC}/doc/tint2.1 ${STAGEDIR}${MANPREFIX}/man/man1
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	@${MKDIR}  ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/sample/|} ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud