mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
2af5bc2229
GUI debugging to verify widget separations and sizes, though may also be used for general computer graphics debugging purposes, including measuring pixel distances of images, web applications, etc. You can easily make copies of the ruler and reoriented it via either the keyboard or mouse. WWW: http://seriss.com/people/erco/fltk/flruler/
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= flruler
|
|
PORTVERSION= 1.05
|
|
CATEGORIES= x11
|
|
MASTER_SITES= http://seriss.com/people/erco/fltk/flruler/
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= On-screen pixel ruler
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libfltk.a:x11-toolkits/fltk
|
|
|
|
USES= gmake perl5
|
|
USE_PERL5= build
|
|
USE_XORG= x11 xcursor xext xfixes xft xinerama
|
|
|
|
PLIST_FILES= bin/flruler 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}${MANPREFIX}/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>
|