1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/mail/xpbiff/Makefile
Muhammad Moinur Rahman e9b6b65e68 mail/xpbiff: Fix build with llvm15
- Pet portclippy

Approved by:	portmgr (blanket)
2023-06-13 12:06:14 +02:00

54 lines
1.3 KiB
Makefile

PORTNAME?= xpbiff
PORTVERSION?= 1.27
PORTREVISION= 5
CATEGORIES= mail
MASTER_SITES= LOCAL/sanpei
DISTNAME= xpbiff
DISTFILES= xpbiff-1.27-with-YOUBIN.tar.gz.uu
MAINTAINER?= sanpei@FreeBSD.org
COMMENT?= Replacement for xbiff that handles popup window with mail header
USES= imake:noman xorg
USE_XORG= xpm xaw xmu
WRKSRC= ${WRKDIR}/xpbiff
PLIST_FILES= bin/xpbiff
.if defined(PREFIX) && ${PREFIX} != ${LOCALBASE}
YOUBINBINDIR= ${PREFIX}
.else
YOUBINBINDIR= ${LOCALBASE}
.endif
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif
do-extract:
@${RM} -r ${WRKDIR}
@${MKDIR} ${WRKDIR}
@(cd ${WRKDIR}; \
if [ ! -f ${DISTDIR}/${DISTNAME}.tar.gz ]; then \
uudecode -p ${DISTDIR}/${DISTFILES} | ${TAR} xzf -; \
else \
${TAR} xzf ${DISTDIR}/${DISTNAME}.tar.gz; \
fi)
pre-patch:
@(${RM} -r ${WRKSRC}/LocPixmap.c; \
${CP} ${FILESDIR}/LocPixmap.c ${WRKSRC} );
post-patch:
.if defined(YOUBIN)
@(cd ${WRKSRC}; ${PATCH} -s < ${FILESDIR}/xpbiff.youbin.diff );
.endif
@${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.org
@${SED} "s=%YOUBINBINDIR%=${YOUBINBINDIR}/bin=" < ${WRKSRC}/config.h.org > ${WRKSRC}/config.h
.include <bsd.port.post.mk>