Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2017 01:56:51 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r436464 - head/archivers/zstd
Message-ID:  <201703190156.v2J1upSe056192@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Mar 19 01:56:51 2017
New Revision: 436464
URL: https://svnweb.freebsd.org/changeset/ports/436464

Log:
  Clean up Makefile
  
  - Use BSD_INSTALL_*
  - Cosmetic change

Modified:
  head/archivers/zstd/Makefile
  head/archivers/zstd/pkg-plist

Modified: head/archivers/zstd/Makefile
==============================================================================
--- head/archivers/zstd/Makefile	Sun Mar 19 01:52:29 2017	(r436463)
+++ head/archivers/zstd/Makefile	Sun Mar 19 01:56:51 2017	(r436464)
@@ -12,19 +12,16 @@ COMMENT=	Zstandard - Fast real-time comp
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+ALL_TARGET=	default
+MAKE_ARGS=	INCLUDEDIR="${PREFIX}/include" LIBDIR="${PREFIX}/lib" MANDIR="${PREFIX}/man/man1"
 USES=		gmake
-USE_GITHUB=	yes
+
+PLIST_SUB=	PORTVERSION=${PORTVERSION}
+
 GH_ACCOUNT=	facebook
+USE_GITHUB=	yes
 
-PLIST_SUB=	LIBVER=${PORTVERSION}
-ALL_TARGET=	default
-MAKE_ARGS=	MANDIR="${PREFIX}/man/man1" \
-		LIBDIR="${PREFIX}/lib" \
-		INCLUDEDIR="${PREFIX}/include"
-MAKE_ENV=	INSTALL_LIB="${INSTALL_LIB}" \
-		INSTALL_MAN="${INSTALL_MAN}" \
-		INSTALL_DATA="${INSTALL_DATA}" \
-		INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
-		INSTALL_PROGRAM="${INSTALL_PROGRAM}"
+post-patch:
+	@${REINPLACE_CMD} -e 's|INSTALL_|BSD_&|' ${WRKSRC}/lib/Makefile ${WRKSRC}/programs/Makefile
 
 .include <bsd.port.mk>

Modified: head/archivers/zstd/pkg-plist
==============================================================================
--- head/archivers/zstd/pkg-plist	Sun Mar 19 01:52:29 2017	(r436463)
+++ head/archivers/zstd/pkg-plist	Sun Mar 19 01:56:51 2017	(r436464)
@@ -10,7 +10,7 @@ include/zstd_errors.h
 lib/libzstd.a
 lib/libzstd.so
 lib/libzstd.so.1
-lib/libzstd.so.%%LIBVER%%
+lib/libzstd.so.%%PORTVERSION%%
 libdata/pkgconfig/libzstd.pc
 man/man1/unzstd.1.gz
 man/man1/zstd.1.gz



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