mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
3c175cb569
Reviewed by: marcus
60 lines
1.5 KiB
Makefile
60 lines
1.5 KiB
Makefile
# New ports collection makefile for: xpbiff
|
|
# Date created: 2 April 1997
|
|
# Whom: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME?= xpbiff
|
|
PORTVERSION?= 1.27
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ftp://ftp.ics.es.osaka-u.ac.jp/pub/xpbiff/
|
|
DISTNAME= xpbiff
|
|
DISTFILES= xpbiff-1.27-with-YOUBIN.tar.gz.uu
|
|
|
|
MAINTAINER?= ports@FreeBSD.org
|
|
COMMENT?= A replacement for xbiff that handles popup window with mail header
|
|
|
|
USE_IMAKE= yes
|
|
USE_XPM= yes
|
|
NO_INSTALL_MANPAGES= yes
|
|
PLIST_FILES= bin/xpbiff
|
|
WRKSRC= ${WRKDIR}/xpbiff
|
|
|
|
.if defined(PREFIX) && ${PREFIX} != ${LOCALBASE}
|
|
YOUBINBINDIR= ${PREFIX}
|
|
.else
|
|
YOUBINBINDIR= ${LOCALBASE}
|
|
.endif
|
|
|
|
do-extract:
|
|
@${RM} -rf ${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} -rf ${WRKSRC}/LocPixmap.c; \
|
|
${CP} ${FILESDIR}/LocPixmap.c ${WRKSRC} );
|
|
|
|
post-patch:
|
|
@(for libfile in /usr/lib/libxpg4*; do \
|
|
if [ ! "$$libfile" = "" ]; then \
|
|
${ECHO_MSG} "===> Finding the xpg4 library in /usr/lib"; \
|
|
(cd ${WRKSRC}; ${PATCH} -s < ${FILESDIR}/Imakefile.xpg4.diff );\
|
|
break 1; \
|
|
fi; \
|
|
done)
|
|
.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.mk>
|