Clean-up Makefile

Use release archive as suggested by section 5.4.3 in Porter's Handbook. [1]
Remove --prefix= as this is already passed by the framework. [1]

While here re-arrange the definitions and targets based on portclippy.

No change to the generated package, thus no change to the port revision.

PR:	     	250041
Submitted by:	daniel.engberg.lists@pyret.net [1]
This commit is contained in:
Stefan Eßer 2020-10-25 13:22:24 +00:00
parent 35256111ed
commit e8de086635
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=553265
2 changed files with 16 additions and 18 deletions

View File

@ -2,11 +2,12 @@
# $FreeBSD$
PORTNAME= fusefs
DISTVERSIONPREFIX= fuse-
DISTVERSION= 2.9.9
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= https://github.com/libfuse/libfuse/releases/download/fuse-${DISTVERSION}/
PKGNAMESUFFIX= -libs
DISTNAME= fuse-${DISTVERSION}
MAINTAINER= se@FreeBSD.org
COMMENT= FUSE allows filesystem implementation in userspace
@ -16,19 +17,16 @@ LICENSE_FILE= ${WRKSRC}/COPYING.LIB
IGNORE_DragonFly= fusefs has not been implemented on DragonFly
USES= autoreconf gettext-tools iconv libtool
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
CONFIGURE_ENV= MOUNT_FUSE_PATH=${PREFIX}/sbin
INSTALL_TARGET= install-strip
PORTSCOUT= limit:^2\.
USE_GITHUB= yes
GH_ACCOUNT= libfuse
GH_PROJECT= libfuse
USES= autoreconf gettext-tools iconv libtool
GNU_CONFIGURE= yes
CONFIGURE_ENV= MOUNT_FUSE_PATH=${PREFIX}/sbin
CONFIGURE_ARGS= --prefix=${PREFIX} \
--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
PLIST_SUB= VERSION=${PORTVERSION}
PORTDOCS= *
@ -37,11 +35,11 @@ OPTIONS_DEFINE= DOCS
pre-configure:
${CP} ${LOCALBASE}/share/gettext/config.rpath ${WRKSRC}
post-install:
${INSTALL_DATA} ${WRKSRC}/include/fuse_kernel.h ${STAGEDIR}${PREFIX}/include/fuse
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/libs
${INSTALL_DATA} ${WRKSRC}/doc/how-fuse-works ${WRKSRC}/doc/kernel.txt ${STAGEDIR}${DOCSDIR}/libs
post-install:
${INSTALL_DATA} ${WRKSRC}/include/fuse_kernel.h ${STAGEDIR}${PREFIX}/include/fuse
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1546701052
SHA256 (libfuse-libfuse-fuse-2.9.9_GH0.tar.gz) = e57a24721177c3b3dd71cb9239ca46b4dee283db9388d48f7ccd256184982194
SIZE (libfuse-libfuse-fuse-2.9.9_GH0.tar.gz) = 212017
TIMESTAMP = 1601617112
SHA256 (fuse-2.9.9.tar.gz) = d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5
SIZE (fuse-2.9.9.tar.gz) = 1813177