1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/x11/lsw/Makefile
2024-01-09 13:47:17 +01:00

30 lines
819 B
Makefile

PORTNAME= lsw
PORTVERSION= 0.3
PORTREVISION= 3
CATEGORIES= x11
MASTER_SITES= http://dl.suckless.org/tools/
MAINTAINER= ports@FreeBSD.org
COMMENT= Lists the titles of all running X windows to stdout, similar to ls(1)
WWW= http://tools.suckless.org/lsw
MAKE_ARGS= PREFIX="${PREFIX}" X11LIB="${LOCALBASE}/lib" \
X11INC="${LOCALBASE}/include" CC="${CC}"
PLIST_FILES= bin/${PORTNAME} share/man/man1/${PORTNAME}.1.gz
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= xorg
USE_XORG= x11 xt xorgproto 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} ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
.include <bsd.port.mk>