svn commit: r443876 - in head/x11: . flruler flruler/files

Alexey Dokuchaev danfe at FreeBSD.org
Mon Jun 19 14:08:36 UTC 2017


Author: danfe
Date: Mon Jun 19 14:08:34 2017
New Revision: 443876
URL: https://svnweb.freebsd.org/changeset/ports/443876

Log:
  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/

Added:
  head/x11/flruler/
  head/x11/flruler/Makefile   (contents, props changed)
  head/x11/flruler/distinfo   (contents, props changed)
  head/x11/flruler/files/
  head/x11/flruler/files/patch-Makefile   (contents, props changed)
  head/x11/flruler/pkg-descr   (contents, props changed)
Modified:
  head/x11/Makefile

Modified: head/x11/Makefile
==============================================================================
--- head/x11/Makefile	Mon Jun 19 14:07:09 2017	(r443875)
+++ head/x11/Makefile	Mon Jun 19 14:08:34 2017	(r443876)
@@ -66,6 +66,7 @@
     SUBDIR += fireflies
     SUBDIR += fixesproto
     SUBDIR += florence
+    SUBDIR += flruler
     SUBDIR += fluxbg
     SUBDIR += fpc-x11
     SUBDIR += fstobdf

Added: head/x11/flruler/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/flruler/Makefile	Mon Jun 19 14:08:34 2017	(r443876)
@@ -0,0 +1,46 @@
+# Created by: Alexey Dokuchaev <danfe at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	flruler
+PORTVERSION=	1.05
+CATEGORIES=	x11
+MASTER_SITES=	http://seriss.com/people/erco/fltk/flruler/
+
+MAINTAINER=	danfe at 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>

Added: head/x11/flruler/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/flruler/distinfo	Mon Jun 19 14:08:34 2017	(r443876)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1470190812
+SHA256 (flruler-1.05.tar.gz) = ece02a65bb408eaa83e46e0359bb1d8c07852b331f6f59975d8ae06c7197faaf
+SIZE (flruler-1.05.tar.gz) = 25842

Added: head/x11/flruler/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/flruler/files/patch-Makefile	Mon Jun 19 14:08:34 2017	(r443876)
@@ -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

Added: head/x11/flruler/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/flruler/pkg-descr	Mon Jun 19 14:08:34 2017	(r443876)
@@ -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/


More information about the svn-ports-head mailing list