1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/x11/xtrlock/Makefile
2017-10-20 14:50:02 +00:00

36 lines
778 B
Makefile

# Created by: Alexey Mikhailov <karma@ez.pereslavl.ru>
# $FreeBSD$
PORTNAME= xtrlock
PORTVERSION= 2.8
CATEGORIES= x11
MASTER_SITES= DEBIAN
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= romain@FreeBSD.org
COMMENT= X Transparent Lock
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/GPL-3.txt
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= localbase
USE_XORG= x11
LIBS+= -lX11 -lcrypt
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} ${LIBS})
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xtrlock ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/xtrlock.man ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1
.include <bsd.port.mk>