aboutsummaryrefslogtreecommitdiff
path: root/x11/flruler/Makefile
blob: ca739286503cefead4c45d1b6d2500dd18ff9e3a (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
PORTNAME=	flruler
PORTVERSION=	1.05
PORTREVISION=	1
CATEGORIES=	x11
MASTER_SITES=	${WWW}

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	On-screen pixel ruler
WWW=		https://www.seriss.com/people/erco/fltk/flruler/

LICENSE=	GPLv2

BUILD_DEPENDS=	${LOCALBASE}/lib/libfltk.a:x11-toolkits/fltk

USES=		gmake perl5 xorg
USE_PERL5=	build
USE_XORG=	x11 xcursor xext xfixes xft xinerama

PLIST_FILES=	bin/flruler share/man/man1/flruler.1.gz \
		share/icons/hicolor/128x128/apps/flruler.png
PORTDOCS=	*

DESKTOP_ENTRIES=	"Flruler" "${COMMENT}" "${PORTNAME}.png" \
			"${PORTNAME}" "Utility;" false

OPTIONS_DEFINE=	DOCS

post-patch:
# New windows won't get created with zero width and height for some reason
	@${REINPLACE_CMD} -e 's/,0,0/,1,1/' ${WRKSRC}/flruler.C

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/docs/${PORTNAME}.1 \
		${STAGEDIR}${PREFIX}/share/man/man1
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps
	${INSTALL_DATA} ${WRKSRC}/misc/flruler-icon.png \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/${PORTNAME}.png

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} CHANGES.txt TODO.txt \
		docs/${PORTNAME}.html ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>