Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Sep 2020 18:55:28 +0000 (UTC)
From:      =?UTF-8?Q?Stefan_E=c3=9fer?= <se@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r549819 - head/sysutils/hexpeek
Message-ID:  <202009231855.08NItS6Z029153@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: se
Date: Wed Sep 23 18:55:27 2020
New Revision: 549819
URL: https://svnweb.freebsd.org/changeset/ports/549819

Log:
  Improve port's Makefile:
  
  - use LOCALBASE instead of PREFIX in reference to local library directory
  - install man-page to share/man/man1 instead of man/man1
  - use DISTVERSIONPREFIX instead of complex DISTNAME specification
  
  Submitted by:	0mp

Modified:
  head/sysutils/hexpeek/Makefile

Modified: head/sysutils/hexpeek/Makefile
==============================================================================
--- head/sysutils/hexpeek/Makefile	Wed Sep 23 18:53:53 2020	(r549818)
+++ head/sysutils/hexpeek/Makefile	Wed Sep 23 18:55:27 2020	(r549819)
@@ -3,9 +3,10 @@
 
 PORTNAME=	hexpeek
 DISTVERSION=	1.0.20200804
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	https://www.hexpeek.com/releases/${DISTNAME}/
-DISTNAME=	${PORTNAME}-v${PORTVERSION}
+DISTVERSIONPREFIX=	v
 
 MAINTAINER=	se@freebsd.org
 COMMENT=	Hex file editor
@@ -15,13 +16,13 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		tar:bzip2 libedit ncurses
 
-CFLAGS+=	-Isrc -D_WITH_GETLINE -L${PREFIX}/lib
+CFLAGS+=	-Isrc -D_WITH_GETLINE -L${LOCALBASE}/lib
 
 PLIST_FILES=	bin/hexdiff bin/hexDump bin/hexpack bin/hexpeek bin/hexview
-PLIST_FILES+=	man/man1/hexpeek.1.gz
+PLIST_FILES+=	share/man/man1/hexpeek.1.gz
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_MAN}  ${WRKSRC}/etc/hexpeek.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_MAN}  ${WRKSRC}/etc/hexpeek.1 ${STAGEDIR}${MANPREFIX}/share/man/man1
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009231855.08NItS6Z029153>