aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xtrlock
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2017-06-20 17:01:27 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2017-06-20 17:01:27 +0800
commit64e9b806c1bb51aba8685830f4fa6b17f9795d2f (patch)
treee48b22efb4088ac50a55fc7cc6d6dc10567f963d /x11/xtrlock
parentac56c1a8092cf230c6b79049c34ac4016a62461f (diff)
downloadfreebsd-ports-gnome-64e9b806c1bb51aba8685830f4fa6b17f9795d2f.tar.gz
freebsd-ports-gnome-64e9b806c1bb51aba8685830f4fa6b17f9795d2f.tar.zst
freebsd-ports-gnome-64e9b806c1bb51aba8685830f4fa6b17f9795d2f.zip
- Add LICENSE_FILE
- Switch to USES=localbase - Simplify installation, cosmetic fixes - Update WWW
Diffstat (limited to 'x11/xtrlock')
-rw-r--r--x11/xtrlock/Makefile17
-rw-r--r--x11/xtrlock/pkg-descr2
-rw-r--r--x11/xtrlock/pkg-plist2
3 files changed, 9 insertions, 12 deletions
diff --git a/x11/xtrlock/Makefile b/x11/xtrlock/Makefile
index 2750dc1b397e..a802468c52e3 100644
--- a/x11/xtrlock/Makefile
+++ b/x11/xtrlock/Makefile
@@ -11,19 +11,14 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= X Transparent Lock
LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/GPL-3.txt
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USES= localbase
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
+LIBS+= -lX11 -lcrypt
post-patch:
@${REINPLACE_CMD} -e \
@@ -31,10 +26,10 @@ post-patch:
s|<values.h>|<limits.h>|' ${WRKSRC}/xtrlock.c
do-build:
- (cd ${WRKSRC} && ${CC} ${CFLAGS} -o xtrlock xtrlock.c ${LDFLAGS})
+ (cd ${WRKSRC} && ${CC} ${CFLAGS} -o xtrlock xtrlock.c ${LDFLAGS} ${LIBS})
do-install:
- (cd ${WRKSRC} && ${INSTALL_PROGRAM} xtrlock ${STAGEDIR}${PREFIX}/bin)
- (cd ${WRKSRC} && ${INSTALL_MAN} xtrlock.1 ${STAGEDIR}${MANPREFIX}/man/man1)
+ ${INSTALL_PROGRAM} ${WRKSRC}/xtrlock ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/xtrlock.man ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1
.include <bsd.port.mk>
diff --git a/x11/xtrlock/pkg-descr b/x11/xtrlock/pkg-descr
index 9e3880e33b44..fe78a6c7e330 100644
--- a/x11/xtrlock/pkg-descr
+++ b/x11/xtrlock/pkg-descr
@@ -1,3 +1,3 @@
A minimal xlock with minimum usage of resources.
-WWW: http://packages.qa.debian.org/x/xtrlock.html
+WWW: https://packages.qa.debian.org/x/xtrlock.html
diff --git a/x11/xtrlock/pkg-plist b/x11/xtrlock/pkg-plist
new file mode 100644
index 000000000000..da33696db497
--- /dev/null
+++ b/x11/xtrlock/pkg-plist
@@ -0,0 +1,2 @@
+@(,,4555) bin/xtrlock
+man/man1/xtrlock.1.gz