blob: dc017b70cbe5af7028692d6d26a5238e7d0edd5a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= slock
PORTVERSION= 1.3
CATEGORIES= x11
MASTER_SITES= http://dl.suckless.org/tools/
MAINTAINER= portmaster@BSDforge.com
COMMENT= Simple X screen locker
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cpe
CPE_VENDOR= suckless
USE_XORG= x11 xext xproto xrandr xt
MAKE_ARGS= PREFIX="${PREFIX}" X11LIB="${LOCALBASE}/lib" \
X11INC="${LOCALBASE}/include" CC="${CC}" \
MANPREFIX="${MANPREFIX}/man"
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>
|