From 3564f82faad33c20390bc52a0b0f9ff644ae2c95 Mon Sep 17 00:00:00 2001 From: Dennis Herrmann Date: Mon, 4 Jul 2011 16:35:07 +0000 Subject: [PATCH] LSW Lists the titles of all running X windows to stdout, similar to ls(1). Might be useful for script integration. WWW: http://tools.suckless.org/lsw --- x11/Makefile | 1 + x11/lsw/Makefile | 35 +++++++++++++++++++++++++++++++++++ x11/lsw/distinfo | 2 ++ x11/lsw/pkg-descr | 6 ++++++ 4 files changed, 44 insertions(+) create mode 100644 x11/lsw/Makefile create mode 100644 x11/lsw/distinfo create mode 100644 x11/lsw/pkg-descr diff --git a/x11/Makefile b/x11/Makefile index 487a6dc34998..3085aa9461f3 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -186,6 +186,7 @@ SUBDIR += linux-f10-xorg-libs SUBDIR += linux-xorg-libs SUBDIR += listres + SUBDIR += lsw SUBDIR += luit SUBDIR += lupe SUBDIR += lxde-meta diff --git a/x11/lsw/Makefile b/x11/lsw/Makefile new file mode 100644 index 000000000000..b2b42e9e6ca8 --- /dev/null +++ b/x11/lsw/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: lsw +# Date created: 2011-07-03 +# Whom: Dennis Herrmann +# +# $FreeBSD$ +# + +PORTNAME= lsw +PORTVERSION= 0.2 +CATEGORIES= x11 +MASTER_SITES= http://dl.suckless.org/tools/ + +MAINTAINER= dhn@FreeBSD.org +COMMENT= Lists the titles of all running X windows to stdout, similar to ls(1) + +MAKE_ARGS= PREFIX="${PREFIX}" X11LIB="${LOCALBASE}/lib" \ + X11INC="${LOCALBASE}/include" CC="${CC}" +PLIST_FILES= bin/lsw + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +MAN1= lsw.1 +MAKE_JOBS_SAFE= yes +USE_XORG= x11 xt xproto xext + +post-patch: + @${REINPLACE_CMD} -e 's|-I/usr/include||;s|-L/usr/lib||;s|= -Os|+=|'\ + -e 's|-DHAVE_SHADOW_H||' ${WRKSRC}/config.mk + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1 + +.include diff --git a/x11/lsw/distinfo b/x11/lsw/distinfo new file mode 100644 index 000000000000..1fa4091388a5 --- /dev/null +++ b/x11/lsw/distinfo @@ -0,0 +1,2 @@ +SHA256 (lsw-0.2.tar.gz) = 307dcb49d5fd814ca58e3c7cae06008a0c68343b69847e59ddf0e34a555d5f60 +SIZE (lsw-0.2.tar.gz) = 2946 diff --git a/x11/lsw/pkg-descr b/x11/lsw/pkg-descr new file mode 100644 index 000000000000..c48e4217e17c --- /dev/null +++ b/x11/lsw/pkg-descr @@ -0,0 +1,6 @@ +LSW + +Lists the titles of all running X windows to stdout, similar to ls(1). +Might be useful for script integration. + +WWW: http://tools.suckless.org/lsw