2013-03-23 18:00:59 +00:00
|
|
|
# Created by: Alexey Mikhailov <karma@ez.pereslavl.ru>
|
2004-05-23 11:40:52 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xtrlock
|
2014-03-05 17:30:05 +00:00
|
|
|
PORTVERSION= 2.6
|
2004-05-23 11:40:52 +00:00
|
|
|
CATEGORIES= x11
|
2013-09-14 06:51:03 +00:00
|
|
|
MASTER_SITES= DEBIAN \
|
|
|
|
http://www.skysmurf.nl/comp/FreeBSD/distfiles/
|
2013-03-23 18:00:59 +00:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
2004-05-23 11:40:52 +00:00
|
|
|
|
2013-09-06 15:30:07 +00:00
|
|
|
MAINTAINER= freebsd@skysmurf.nl
|
2004-05-23 11:40:52 +00:00
|
|
|
COMMENT= X Transparent Lock
|
|
|
|
|
2013-09-14 06:51:03 +00:00
|
|
|
LICENSE= GPLv2 GPLv3 # GPLv2 or later
|
|
|
|
LICENSE_COMB= dual
|
2013-03-23 18:00:59 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2012-05-11 20:42:10 +00:00
|
|
|
|
2008-03-25 22:44:48 +00:00
|
|
|
USE_XORG= x11
|
2004-05-23 11:40:52 +00:00
|
|
|
|
2013-03-23 18:00:59 +00:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lX11 -lcrypt
|
2004-05-23 11:40:52 +00:00
|
|
|
|
2014-01-10 09:32:14 +00:00
|
|
|
PLIST_FILES= bin/xtrlock man/man1/${PORTNAME}.1.gz
|
2013-06-09 13:15:18 +00:00
|
|
|
BINMODE= 4555
|
2004-05-23 11:40:52 +00:00
|
|
|
|
2013-03-23 18:00:59 +00:00
|
|
|
post-extract:
|
|
|
|
@${LN} -sf xtrlock.man ${WRKSRC}/xtrlock.1
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|<crypt.h>|<unistd.h>| ; \
|
|
|
|
s|<values.h>|<limits.h>|' ${WRKSRC}/xtrlock.c
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
(cd ${WRKSRC} && ${CC} ${CFLAGS} -o xtrlock xtrlock.c ${LDFLAGS})
|
|
|
|
|
|
|
|
do-install:
|
2014-01-10 09:32:14 +00:00
|
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} xtrlock ${STAGEDIR}${PREFIX}/bin)
|
|
|
|
(cd ${WRKSRC} && ${INSTALL_MAN} xtrlock.1 ${STAGEDIR}${MANPREFIX}/man/man1)
|
2013-03-23 18:00:59 +00:00
|
|
|
|
2004-05-23 11:40:52 +00:00
|
|
|
.include <bsd.port.mk>
|