aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-07-19 21:51:22 +0800
committermiwi <miwi@FreeBSD.org>2008-07-19 21:51:22 +0800
commit1a1e8dcb6472f28af9e77d9b604b46ebd17e7c85 (patch)
tree37c43dd2b0e3de9dbed1f5cdd6d0b344c241d977
parentdade0cf969c37adee395affff1e21b696ace459c (diff)
downloadfreebsd-ports-gnome-1a1e8dcb6472f28af9e77d9b604b46ebd17e7c85.tar.gz
freebsd-ports-gnome-1a1e8dcb6472f28af9e77d9b604b46ebd17e7c85.tar.zst
freebsd-ports-gnome-1a1e8dcb6472f28af9e77d9b604b46ebd17e7c85.zip
Simple X selection printer. Prints the X selection to stdout.
If there is no X client owning the selection it just exits. Useful for scripts where you can query the X selection without pressing mouse Button2 in cumbersome ways. WWW: http://www.suckless.org/programs/sselp.html PR: ports/125770 Submitted by: Julien Laffaye <kimelto at gmail.com>
-rw-r--r--x11/Makefile1
-rw-r--r--x11/sselp/Makefile21
-rw-r--r--x11/sselp/distinfo3
-rw-r--r--x11/sselp/files/patch-config.mk32
-rw-r--r--x11/sselp/pkg-descr6
5 files changed, 63 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index c5f4c8058f48..5322a8686d6c 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -263,6 +263,7 @@
SUBDIR += slim
SUBDIR += slock
SUBDIR += smproxy
+ SUBDIR += sselp
SUBDIR += stalonetray
SUBDIR += startup-notification
SUBDIR += swarp
diff --git a/x11/sselp/Makefile b/x11/sselp/Makefile
new file mode 100644
index 000000000000..4ea16fec73a6
--- /dev/null
+++ b/x11/sselp/Makefile
@@ -0,0 +1,21 @@
+# New ports collection makefile for: sselp
+# Date created: July 19, 2008
+# Whom: Julien Laffaye <kimelto@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= sselp
+PORTVERSION= 0.1
+CATEGORIES= x11
+MASTER_SITES= http://code.suckless.org/dl/tools/ \
+ http://laffaye.free.fr/distfiles/
+
+MAINTAINER= kimelto@gmail.com
+COMMENT= Simple SELection Printer for X11
+
+USE_XORG= x11
+
+PLIST_FILES= bin/sselp
+
+.include <bsd.port.mk>
diff --git a/x11/sselp/distinfo b/x11/sselp/distinfo
new file mode 100644
index 000000000000..9a5b6fb27b9f
--- /dev/null
+++ b/x11/sselp/distinfo
@@ -0,0 +1,3 @@
+MD5 (sselp-0.1.tar.gz) = 5c0c98469fbf21649eb13e5ff878dafb
+SHA256 (sselp-0.1.tar.gz) = 8f25b8d5cd62929618b8ba56d36f6d6556e4de1d1952f77aa160e087d3d79899
+SIZE (sselp-0.1.tar.gz) = 2694
diff --git a/x11/sselp/files/patch-config.mk b/x11/sselp/files/patch-config.mk
new file mode 100644
index 000000000000..296254590221
--- /dev/null
+++ b/x11/sselp/files/patch-config.mk
@@ -0,0 +1,32 @@
+--- config.mk.orig 2008-07-19 13:20:31.000000000 +0200
++++ config.mk 2008-07-19 14:18:14.000000000 +0200
+@@ -4,22 +4,22 @@
+ # Customize below to fit your system
+
+ # paths
+-PREFIX = /usr/local
+-MANPREFIX = ${PREFIX}/share/man
++PREFIX ?= /usr/local
++MANPREFIX = ${PREFIX}/man
+
+-X11INC = /usr/X11R6/include
+-X11LIB = /usr/X11R6/lib
++X11INC = $(LOCALBASE)/include
++X11LIB = $(LOCALBASE)/lib
+
+ # includes and libs
+ INCS = -I. -I/usr/include -I${X11INC}
+ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
+
+ # flags
+-CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
+-LDFLAGS = ${LIBS}
++CFLAGS += -Os ${INCS} -DVERSION=\"${VERSION}\"
++LDFLAGS += ${LIBS}
+ #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\"
+ #LDFLAGS = -g ${LIBS}
+
+ # compiler and linker
+-CC = cc
++CC ?= cc
+ LD = ${CC}
diff --git a/x11/sselp/pkg-descr b/x11/sselp/pkg-descr
new file mode 100644
index 000000000000..e3b74b00b4db
--- /dev/null
+++ b/x11/sselp/pkg-descr
@@ -0,0 +1,6 @@
+Simple X selection printer. Prints the X selection to stdout.
+If there is no X client owning the selection it just exits.
+Useful for scripts where you can query the X selection
+without pressing mouse Button2 in cumbersome ways.
+
+WWW: http://www.suckless.org/programs/sselp.html