blob: 33711a36742e16e9d4226e46fd8df2d75713ae2c (
plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
# New ports collection makefile for: Arrow
# Date created: 14 June 2000
# Whom: Mario S F Ferreira <lioux@linf.unb.br> et al.
#
# $FreeBSD$
#
PORTNAME= arrow
PORTVERSION= 1.0.8
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.uniovi.es/pub/unix/mail/
DISTNAME= Arrow_source-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Mail Reader for X: view, compose and organize; e.g, PGP, GnuPG, POP & APOP
EXTRACT_DEPENDS= ${NONEXISTENT}:${JXPORT}:configure
BUILD_DEPENDS= makemake:${JXPORT}
LIB_DEPENDS= jx-1_5_3.1:${JXPORT} \
jsearch-0_5_6.0:${PORTSDIR}/x11-toolkits/libjsearch \
jtoolbar-0_5_4.0:${PORTSDIR}/x11-toolkits/libjtoolbar \
jtree-1_1_7.1:${PORTSDIR}/x11-toolkits/libjtree
RUN_DEPENDS= procmail:${PORTSDIR}/mail/procmail
WRKSRC= ${WRKDIR}/JX-1.5.3
USE_XLIB= yes
USE_PERL5_BUILD=yes
USE_GMAKE= yes
MAKE_ARGS= CC="${CC}" CXX="${CXX}" \
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
MAKE_ENV= JX_INSTALL_ROOT="${X11BASE}/bin" \
JX_LIB_ROOT="${X11BASE}/lib"
PLIST_SUB= PORTNAME="${PORTNAME}"
# Make environment
PORTINCLUDES= -I${X11BASE}/include/jx \
-I${X11BASE}/include/jcore \
-I${X11BASE}/include/jsearch \
-I${X11BASE}/include/jtoolbar \
-I${X11BASE}/include/jtree \
-I${X11BASE}/share/jx
# Installs dir with proper permissions
INSTALL_DATA_DIR= ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755
# program files
PROGRAMFILES= arrow/arrow
# documents
DOCFILES= LICENSE README.binary
DOCDIR_PREFIX= ${PREFIX}/share/doc/${PORTNAME}
# additional configuration and header files
EXTRALIB_PREFIX= ${X11BASE}/lib/jx
EXTRALIBFILES_MAKE_WRKSRC= include/make
# main jx distribution files needed for building
COPY_JXDIRS= include
COPY_JXFILES= Makefile
.include <bsd.port.pre.mk>
# main jx distribution port wrksrc
JXPORT= ${PORTSDIR}/x11-toolkits/jx
JXPORT_WRKSRC!= cd ${JXPORT} && ${MAKE} -V WRKSRC
JX_MAKE_CONSTANTS= jsearch_constants jtoolbar_constants jtree_constants
.if ${OSVERSION} >= 300000
ALL_TARGET= freebsd3.x
.else
ALL_TARGET= freebsd2.x
.endif
post-extract:
.for i in ${COPY_JXDIRS}
@${CP} -Rp ${JXPORT_WRKSRC}/${i} ${WRKSRC}
.endfor
.for i in ${COPY_JXFILES}
@${CP} -p ${JXPORT_WRKSRC}/${i} ${WRKSRC}
.endfor
post-patch:
@${ECHO_CMD} "SEARCHDIRS += ${PORTINCLUDES}" >> \
${WRKSRC}/${EXTRALIBFILES_MAKE_WRKSRC}/jx_constants
@${PERL} -pi -e 's|/var/spool/mail/|/var/mail/|' \
${WRKSRC}/programs/arrow/code/*.cc
pre-build:
.for i in ${JX_MAKE_CONSTANTS}
@${LN} -sf ${EXTRALIB_PREFIX}/make/${i} ${WRKSRC}/include/make
.endfor
post-build:
@cd ${WRKSRC}/programs/${PORTNAME}; ${SETENV} ${MAKE_ENV} makemake; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS}
do-install:
.if !defined(NOPORTDOCS)
# Install all documentation
@${INSTALL_DATA_DIR} ${DOCDIR_PREFIX}
.for i in ${DOCFILES}
@${INSTALL_DATA} ${WRKSRC}/programs/${PORTNAME}/${i} ${DOCDIR_PREFIX}
.endfor
.endif # !defined(NOPORTDOCS)
# Install all programs
.for i in ${PROGRAMFILES}
@${INSTALL_PROGRAM} ${WRKSRC}/programs/${i} ${PREFIX}/bin
.endfor
.include <bsd.port.post.mk>
|