- Remove always-false OSVERSION conditions

- Convert the remaining one into IGNORE_DragonFly and fix message correspondingly

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2018-06-15 17:36:22 +00:00
parent 75a8c68569
commit dcc58cd479
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=472467

View file

@ -13,22 +13,14 @@ COMMENT= Userspace tools for MMC/SD devices
LICENSE= BSD3CLAUSE GPLv2
LICENSE_COMB= multi
IGNORE_DragonFly= only supported on FreeBSD
USES= gmake tar:bzip2
PLIST_FILES= man/man1/mmc.1.gz sbin/mmc
MMC_GITURL= git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git
.include <bsd.port.pre.mk>
.if (${OPSYS} == FreeBSD && \
(${OSVERSION} < 1003514 || \
(${OSVERSION} > 1100000 && ${OSVERSION} < 1100513) || \
(${OSVERSION} > 1200000 && ${OSVERSION} < 1200025))) || \
${OPSYS} == DragonFly
IGNORE= only supported on recent OS versions
.endif
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;\
@ -49,4 +41,4 @@ maintainer-fetch:
@${MAKE} makesum
@${MAKE} clean
.include <bsd.port.post.mk>
.include <bsd.port.mk>