diff options
author | danfe <danfe@FreeBSD.org> | 2017-06-19 22:08:34 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2017-06-19 22:08:34 +0800 |
commit | e3a6a7105c2f731b079cee40e7522da3e2b4f792 (patch) | |
tree | 65bf4ec8977b421687e74ccbc7ab04fd2023cb2a /x11/flruler | |
parent | 2f198f8898d3435e6ff6cd6af212861a4eb4a4a7 (diff) | |
download | freebsd-ports-gnome-e3a6a7105c2f731b079cee40e7522da3e2b4f792.tar.gz freebsd-ports-gnome-e3a6a7105c2f731b079cee40e7522da3e2b4f792.tar.zst freebsd-ports-gnome-e3a6a7105c2f731b079cee40e7522da3e2b4f792.zip |
A program for measuring the pixel size of on-screen elements. Intended for
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/
Diffstat (limited to 'x11/flruler')
-rw-r--r-- | x11/flruler/Makefile | 46 | ||||
-rw-r--r-- | x11/flruler/distinfo | 3 | ||||
-rw-r--r-- | x11/flruler/files/patch-Makefile | 30 | ||||
-rw-r--r-- | x11/flruler/pkg-descr | 9 |
4 files changed, 88 insertions, 0 deletions
diff --git a/x11/flruler/Makefile b/x11/flruler/Makefile new file mode 100644 index 000000000000..daf9005da4cb --- /dev/null +++ b/x11/flruler/Makefile @@ -0,0 +1,46 @@ +# 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> diff --git a/x11/flruler/distinfo b/x11/flruler/distinfo new file mode 100644 index 000000000000..70af7fb1c748 --- /dev/null +++ b/x11/flruler/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1470190812 +SHA256 (flruler-1.05.tar.gz) = ece02a65bb408eaa83e46e0359bb1d8c07852b331f6f59975d8ae06c7197faaf +SIZE (flruler-1.05.tar.gz) = 25842 diff --git a/x11/flruler/files/patch-Makefile b/x11/flruler/files/patch-Makefile new file mode 100644 index 000000000000..2026b700cfa5 --- /dev/null +++ b/x11/flruler/files/patch-Makefile @@ -0,0 +1,30 @@ +--- Makefile.orig 2016-08-03 02:19:58 UTC ++++ Makefile +@@ -2,15 +2,13 @@ + SHELL=/bin/sh + VERSION=$(shell awk '/^[0-9]*\.[^ \t]/ {print $$1; exit(0);}' CHANGES.txt) + +-FLTK_DIR=/usr/local/src/fltk-1.3.x-svn +- + # FLTK BUILD +-CXX = $(shell $(FLTK_DIR)/fltk-config --cxx) +-CC = $(shell $(FLTK_DIR)/fltk-config --cxx) ++CXX = $(shell fltk-config --cxx) ++CC = $(shell fltk-config --cxx) + DEBUG = -g +-CXXFLAGS = $(shell $(FLTK_DIR)/fltk-config --cxxflags ) -I. -DVERSION=\"$(VERSION)\" -Wall ++CXXFLAGS = $(shell fltk-config --cxxflags ) -I. -DVERSION=\"$(VERSION)\" -Wall + CFLAGS = -Wall +-LDLIBS = $(shell $(FLTK_DIR)/fltk-config --ldstaticflags ) ++LDLIBS = $(shell fltk-config --ldstaticflags ) + LINK = $(CXX) + OS = $(shell uname -s) + +@@ -30,7 +28,6 @@ all: flruler docs + + flruler: flruler.o + $(LINK) flruler.o -o flruler $(LDLIBS) +- strip flruler + ifeq ($(OS),Darwin) + echo Creating flruler.app + rm -rf flruler.app diff --git a/x11/flruler/pkg-descr b/x11/flruler/pkg-descr new file mode 100644 index 000000000000..1022cc79a305 --- /dev/null +++ b/x11/flruler/pkg-descr @@ -0,0 +1,9 @@ +A program for measuring the pixel size of on-screen elements. Intended for +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/ |