mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
fed77bd3d6
PR: ports/177347 Submitted by: Klaus Aehlig <aehlig@linta.de> Approved by: culot / jpaetzel (mentors, implicit)
43 lines
893 B
Makefile
43 lines
893 B
Makefile
# Created by: Alexey Mikhailov <karma@ez.pereslavl.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xtrlock
|
|
PORTVERSION= 2.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11
|
|
MASTER_SITES= DEBIAN
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= X Transparent Lock
|
|
|
|
LICENSE= GPLv2 # (or later)
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
USE_XORG= x11
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lX11 -lcrypt
|
|
|
|
MAN1= xtrlock.1
|
|
PLIST_FILES= bin/xtrlock
|
|
BINMODE= 4555
|
|
|
|
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:
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} xtrlock ${PREFIX}/bin)
|
|
(cd ${WRKSRC} && ${INSTALL_MAN} xtrlock.1 ${MANPREFIX}/man/man1)
|
|
|
|
.include <bsd.port.mk>
|