4c46ca73d8
Add USES=xorg and USES=gl to ports in categories starting with 'x' While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
36 lines
783 B
Makefile
36 lines
783 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 xorg
|
|
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>
|