2009-07-07 20:14:15 +02:00
|
|
|
# $NetBSD: Makefile,v 1.2 2009/07/07 18:14:15 joerg Exp $
|
2008-02-11 23:48:17 +01:00
|
|
|
|
|
|
|
DISTNAME= slock-0.7
|
|
|
|
CATEGORIES= x11
|
|
|
|
MASTER_SITES= http://suckless.org/download/
|
|
|
|
|
|
|
|
MAINTAINER= reed@reedmedia.net
|
|
|
|
HOMEPAGE= http://www.suckless.org/wiki/tools/xlib
|
|
|
|
COMMENT= Simple X11 screen locker
|
|
|
|
|
2009-07-07 20:14:15 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2008-02-11 23:48:17 +01:00
|
|
|
NO_CONFIGURE= yes
|
|
|
|
INSTALLATION_DIRS= bin share/doc/slock
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if !(${OPSYS:M*BSD} != "" || ${OPSYS} == "Darwin")
|
|
|
|
CFLAGS+=-DHAVE_SHADOW_H
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# TODO: handle -lcrypt too
|
|
|
|
LIBS+= -lcrypt
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${CC} -c -DVERSION=\"0.7\" ${CFLAGS} slock.c && \
|
|
|
|
${CC} -o slock slock.o -lc ${LIBS} ${X11_LDFLAGS} -lX11
|
|
|
|
|
2009-07-07 20:14:15 +02:00
|
|
|
SPECIAL_PERMS+= bin/slock ${SETUID_ROOT_PERMS}
|
|
|
|
|
2008-02-11 23:48:17 +01:00
|
|
|
do-install:
|
2009-07-07 20:14:15 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/slock ${DESTDIR}${PREFIX}/bin/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/slock/
|
2008-02-11 23:48:17 +01:00
|
|
|
|
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|