mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
285d17fd3e
- Pet portlint(1) by removing unnecessary MAN1 entry PR: ports/187257 [1] Submitted by: A.J. van Werven <freebsd@skysmurf.nl> (maintainer)
43 lines
990 B
Makefile
43 lines
990 B
Makefile
# Created by: Alexey Mikhailov <karma@ez.pereslavl.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xtrlock
|
|
PORTVERSION= 2.6
|
|
CATEGORIES= x11
|
|
MASTER_SITES= DEBIAN \
|
|
http://www.skysmurf.nl/comp/FreeBSD/distfiles/
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
MAINTAINER= freebsd@skysmurf.nl
|
|
COMMENT= X Transparent Lock
|
|
|
|
LICENSE= GPLv2 GPLv3 # GPLv2 or later
|
|
LICENSE_COMB= dual
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
USE_XORG= x11
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lX11 -lcrypt
|
|
|
|
PLIST_FILES= bin/xtrlock man/man1/${PORTNAME}.1.gz
|
|
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 ${STAGEDIR}${PREFIX}/bin)
|
|
(cd ${WRKSRC} && ${INSTALL_MAN} xtrlock.1 ${STAGEDIR}${MANPREFIX}/man/man1)
|
|
|
|
.include <bsd.port.mk>
|