blob: b57d9252503ef1fb0092385020842d297f32d3c3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# 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
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
BROKEN= "Does not compile on !i386"
.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:
.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>
|