mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
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/
This commit is contained in:
parent
45e461a4b5
commit
2af5bc2229
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=443876
@ -66,6 +66,7 @@
|
||||
SUBDIR += fireflies
|
||||
SUBDIR += fixesproto
|
||||
SUBDIR += florence
|
||||
SUBDIR += flruler
|
||||
SUBDIR += fluxbg
|
||||
SUBDIR += fpc-x11
|
||||
SUBDIR += fstobdf
|
||||
|
46
x11/flruler/Makefile
Normal file
46
x11/flruler/Makefile
Normal file
@ -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>
|
3
x11/flruler/distinfo
Normal file
3
x11/flruler/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1470190812
|
||||
SHA256 (flruler-1.05.tar.gz) = ece02a65bb408eaa83e46e0359bb1d8c07852b331f6f59975d8ae06c7197faaf
|
||||
SIZE (flruler-1.05.tar.gz) = 25842
|
30
x11/flruler/files/patch-Makefile
Normal file
30
x11/flruler/files/patch-Makefile
Normal file
@ -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
|
9
x11/flruler/pkg-descr
Normal file
9
x11/flruler/pkg-descr
Normal file
@ -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/
|
Loading…
Reference in New Issue
Block a user