freebsd-ports/sysutils/mmc-utils/Makefile
Marius Strobl e9dba04db7 sysutils/mmc-utils: Minor changes to port
- Fetch the distfile directly from the master git repository based on
  the nifty approach taken by mail/alpine instead of using a local copy.
  Note that this bumps the PORTVERSION to the last commit date (rather
  than last change date) of the repository w/o a change in source. [1]
- Chase outdated repository URL in pkg-descr (still wrong in WWW). [2]

PR:		260527
Obtained from:	mail/alpine [1]
Submitted by:	diizzy [2]
2021-12-19 16:39:40 +01:00

32 lines
947 B
Makefile

# Created by: Marius Strobl <marius@FreeBSD.org>
PORTNAME= mmc-utils
DISTVERSION= 20211202
DISTVERSIONSUFFIX= -${MMC_GITSHASH}
CATEGORIES= sysutils
MASTER_SITES= https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/${MMC_GITHASH}${EXTRACT_SUFX}?dummy=/
MAINTAINER= marius@FreeBSD.org
COMMENT= Userspace tools for MMC/SD devices
LICENSE= BSD3CLAUSE GPLv2
LICENSE_COMB= multi
IGNORE_DragonFly= only supported on FreeBSD
MMC_GITHASH= a1b233c2a31baa5b77cb67c0c3be4767be86f727
MMC_GITSHASH= ${MMC_GITHASH:C/^(........).*/\1/}
PLIST_FILES= man/man1/mmc.1.gz sbin/mmc
USES= gmake
WRKSRC= ${WRKDIR}/${MMC_GITHASH}
post-patch:
.for i in Makefile mmc_cmds.c mmc.c man/mmc.1
@${REINPLACE_CMD} -e 's|^AM_CFLAGS|#^|; s|path/to|dev|g;\
s|mmcblk|mmcsd|g' ${WRKSRC}/${i}
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mmc ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/man/mmc.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.mk>