freebsd-ports/x11/slock/Makefile

28 lines
657 B
Makefile
Raw Normal View History

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= slock
2015-01-12 17:17:14 +01:00
PORTVERSION= 1.2
CATEGORIES= x11
MASTER_SITES= http://dl.suckless.org/tools/
2014-12-10 23:29:14 +01:00
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple X screen locker
MAKE_ARGS= PREFIX="${PREFIX}" X11LIB="${LOCALBASE}/lib" \
X11INC="${LOCALBASE}/include" CC="${CC}" \
MANPREFIX="${MANPREFIX}/man"
PLIST_FILES= bin/slock
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
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|-DHAVE_PAM|' -e '/^LDFLAGS/s|$$| -lpam|' \
${WRKSRC}/config.mk
.include <bsd.port.mk>