Skip to content

Commit

Permalink
mail/mailx: Unbreak on HEAD
Browse files Browse the repository at this point in the history
- Pet portclippy
  • Loading branch information
5u623l20 committed May 14, 2023
1 parent 8520008 commit 67cb88a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions mail/mailx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= PORTS_JP
DISTFILES= mail-2.2.8.tar.gz mailx-memo-2.2.8R
EXTRACT_ONLY= mail-2.2.8.tar.gz

PATCH_SITES= PORTS_JP
PATCHFILES= mailx.v05.patch.gz
Expand All @@ -14,12 +15,18 @@ COMMENT= Mail command with mailx extensions

LICENSE= BSD4CLAUSE

USES= perl5
USE_PERL5= run build patch

CONFLICTS= heirloom-mailx

EXTRACT_ONLY= mail-2.2.8.tar.gz
WRKSRC= ${WRKDIR}/mail-2.2.8
USES= perl5
USE_PERL5= run build patch

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
CFLAGS+= -Wno-error=int-conversion
.endif

post-patch:
${PERL5} -pi.bak -e 's/^(\.Nm mail)/$$1x/i; s/^(\.Dt MAIL)/$$1X/' \
Expand All @@ -33,4 +40,4 @@ do-install:
${INSTALL_DATA} ${DISTDIR}/mailx-memo-2.2.8R \
${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit 67cb88a

Please sign in to comment.