Lines 1-14
Link Here
|
1 |
# New ports collection makefile for: elm ME+ (unofficial Elm) |
1 |
# New ports collection makefile for: elm ME+ (unofficial Elm) |
2 |
# Date created: 26 June 1995 |
2 |
# Date created: 26 June 1995 |
3 |
# Whom: ache |
3 |
# Whom: ache |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/mail/elm+ME/Makefile,v 1.67 2001/02/15 17:01:01 sf Exp $ |
5 |
# $FreeBSD: ports/mail/elm+ME/Makefile,v 1.67 2001/02/15 17:01:01 sf Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= elm+ME |
8 |
PORTNAME= elm+ME |
9 |
PORTVERSION= 2.4.88 |
9 |
PORTVERSION= 2.4.92 |
10 |
PORTREVISION= 1 |
|
|
11 |
PORTEPOCH= 1 |
12 |
CATEGORIES= mail |
10 |
CATEGORIES= mail |
13 |
DISTNAME= ${PORTNAME:S/+ME//}-${PORTVERSION:R}ME+${PORTVERSION:E} |
11 |
DISTNAME= ${PORTNAME:S/+ME//}-${PORTVERSION:R}ME+${PORTVERSION:E} |
14 |
|
12 |
|
Lines 17-23
Link Here
|
17 |
http://www.ozone.fmi.fi/KEH/ |
15 |
http://www.ozone.fmi.fi/KEH/ |
18 |
|
16 |
|
19 |
# the following repositories conform to the main repository. |
17 |
# the following repositories conform to the main repository. |
20 |
MASTER_SITES+= ftp://ftp.tu-darmstadt.de/pub/networking/mail/elm+ME/ \ |
18 |
MASTER_SITES+= ftp://ftp.lip6.fr/pub/unix/mail/elm-me/ \ |
|
|
19 |
ftp://ftp.tu-darmstadt.de/pub/networking/mail/elm+ME/ \ |
21 |
ftp://ftp.cs.tu-berlin.de/pub/net/mail/elm-me-plus/ \ |
20 |
ftp://ftp.cs.tu-berlin.de/pub/net/mail/elm-me-plus/ \ |
22 |
ftp://ftp.ntua.gr/pub/net/mail/elm-me/ \ |
21 |
ftp://ftp.ntua.gr/pub/net/mail/elm-me/ \ |
23 |
ftp://ftp.eos.hokudai.ac.jp/pub/network/mail/elm-2.4ME+/ \ |
22 |
ftp://ftp.eos.hokudai.ac.jp/pub/network/mail/elm-2.4ME+/ \ |
Lines 28-37
Link Here
|
28 |
ftp://ftp.rge.com/pub/mail/elm/elm-2.4ME+/ \ |
27 |
ftp://ftp.rge.com/pub/mail/elm/elm-2.4ME+/ \ |
29 |
ftp://ftp.uni-trier.de/pub/unix/network/mail/elm-me+/ |
28 |
ftp://ftp.uni-trier.de/pub/unix/network/mail/elm-me+/ |
30 |
|
29 |
|
31 |
# fetch doesn't work w/ ftp.lip6.fr and ftp doesn't work w/ the http protocol. |
|
|
32 |
# MASTER_SITES+= ftp://ftp.lip6.fr/pub/unix/mail/elm-me/ |
33 |
# FETCH_CMD= /usr/bin/ftp |
34 |
|
35 |
MAINTAINER= clefevre@poboxes.com |
30 |
MAINTAINER= clefevre@poboxes.com |
36 |
|
31 |
|
37 |
# not needed since config.sh is generated by scripts/pre-configure. |
32 |
# not needed since config.sh is generated by scripts/pre-configure. |
Lines 40-119
Link Here
|
40 |
# BUILD_DEPENDS= pgp:${PORTSDIR}/security/pgp |
35 |
# BUILD_DEPENDS= pgp:${PORTSDIR}/security/pgp |
41 |
# BUILD_DEPENDS= gpg:${PORTSDIR}/security/gnupg |
36 |
# BUILD_DEPENDS= gpg:${PORTSDIR}/security/gnupg |
42 |
|
37 |
|
43 |
WRKSRC= ${WRKDIR}/${DISTNAME:S/-//:S/ME+/.ME+./} |
|
|
44 |
|
45 |
# |
38 |
# |
46 |
# Global variables |
39 |
# Global variables |
47 |
# |
40 |
# |
48 |
|
41 |
|
|
|
42 |
WRKSRC= ${WRKDIR}/${DISTNAME:S/-//:S/ME+/.ME+./} |
43 |
|
49 |
HAS_CONFIGURE= yes |
44 |
HAS_CONFIGURE= yes |
50 |
|
45 |
|
51 |
CONFIGURE_SCRIPT= Configure |
46 |
CONFIGURE_SCRIPT= Configure |
52 |
SCRIPTS_ENV= CFLAGS="${CFLAGS}" PREFIX="${PREFIX}" |
47 |
SCRIPTS_ENV= CFLAGS="${CFLAGS}" ${PLIST_SUB} \ |
53 |
CONFIGURE_ARGS= -S -d -P${PREFIX} |
48 |
PREFIX="${PREFIX}" MAN1PREFIX="${MAN1PREFIX}" |
|
|
49 |
CONFIGURE_ARGS= -S -P ${PREFIX} |
50 |
|
51 |
MAKE_ARGS= MJ="FORMATTER=groff FORMATTER_OPTS=-Tlatin1" |
52 |
ALL_TARGET= all documentation |
53 |
|
54 |
PLIST_SUB= SO_REV="${SO_REV}" DOC_SUBDIR="${DOC_SUBDIR}" \ |
55 |
LIB_SUBDIR="${LIB_SUBDIR}" SHLIB_SUBDIR="${SHLIB_SUBDIR}" |
54 |
|
56 |
|
55 |
MAN1= answer.1 checkalias.1 elm.1 elmalias.1 elmcharset.1 \ |
57 |
MAN1= answer.1 checkalias.1 elm.1 elmalias.1 elmcharset.1 \ |
56 |
elmterminal.1 fastmail.1 frm.1 listalias.1 messages.1 \ |
58 |
elmterminal.1 elmunidata.1 fastmail.1 frm.1 listalias.1 \ |
57 |
newalias.1 newmail.1 printmail.1 readmsg.1 |
59 |
messages.1 newalias.1 newmail.1 printmail.1 readmsg.1 |
58 |
MLINKS= frm.1 nfrm.1 newmail.1 wnewmail.1 |
60 |
MLINKS= frm.1 nfrm.1 newmail.1 wnewmail.1 |
59 |
|
61 |
|
60 |
# |
62 |
# |
61 |
# Local variables |
63 |
# Local variables |
62 |
# |
64 |
# |
63 |
|
65 |
|
64 |
DESTLIBDIR= ${PREFIX}/lib/${PORTNAME:S/+ME//} |
66 |
SO_REV= `${AWK} '/SHAREDTAG:/{print $$2}' ${WRKSRC}/hdrs/patchlevel.h` |
65 |
MIMETYPES= elm.mimetypes |
67 |
MSECS= 1 |
66 |
|
68 |
|
|
|
69 |
RCD_SUBDIR= etc/rc.d |
70 |
LIB_SUBDIR= lib/elm |
71 |
SHLIB_SUBDIR= libexec/elm |
72 |
DOC_SUBDIR= share/doc/elm |
73 |
|
74 |
RCD_FILE= 00elm.sh |
75 |
MIME_TYPES= elm.mimetypes |
76 |
DOC_FILES= README.ME+ shared_libs/tls/README.TLS \ |
77 |
doc/Alias.fmtd doc/Config.fmtd doc/Cover.fmtd \ |
78 |
doc/Form.fmtd doc/Ref.fmtd doc/Users.fmtd |
79 |
|
80 |
AWK?= awk |
81 |
|
67 |
# |
82 |
# |
68 |
# Post-patch |
83 |
# Post-patch |
69 |
# |
84 |
# |
70 |
|
85 |
|
|
|
86 |
post-patch: patch-install-script patch-setgid patch-nls-files |
87 |
|
88 |
patch-install-script: |
89 |
@${SED} -e 's,%%SHLIB_SUBDIR%%,${SHLIB_SUBDIR},' \ |
90 |
${FILESDIR}/${RCD_FILE} > ${WRKSRC}/${RCD_FILE} |
91 |
|
71 |
# d_savegrpmboxid is currently broken using setgid(2) instead of setegid(2). |
92 |
# d_savegrpmboxid is currently broken using setgid(2) instead of setegid(2). |
72 |
# will probably be fixed in the next release, for instance, fake a patch. |
93 |
# will probably be fixed in a next release, for instance, fake a patch. |
73 |
# the alternative would be to disable this option in pre-configure script. |
94 |
# the alternative would be to disable this option in pre-configure script. |
74 |
post-patch: |
95 |
patch-setgid: |
75 |
@${PERL} -pi.fbsd -e 's,setgid,setegid,' \ |
96 |
@${PERL} -pi.fbsd -e 's,setgid,setegid,' \ |
76 |
${WRKSRC}/lib/localmbx.c \ |
97 |
${WRKSRC}/lib/localmbx.c \ |
77 |
${WRKSRC}/src/init.c ${WRKSRC}/src/lock.c |
98 |
${WRKSRC}/src/init.c ${WRKSRC}/src/lock.c |
78 |
|
99 |
|
79 |
# |
100 |
patch-nls-files: |
80 |
# Post-configure |
|
|
81 |
# |
82 |
|
83 |
post-configure: |
84 |
@${PERL} -pi.fbsd -e 's,/usr/local,${PREFIX},' ${WRKSRC}/nls/LANGS |
101 |
@${PERL} -pi.fbsd -e 's,/usr/local,${PREFIX},' ${WRKSRC}/nls/LANGS |
85 |
|
102 |
|
86 |
# |
103 |
# |
87 |
# Post-install |
104 |
# Post-install |
88 |
# |
105 |
# |
89 |
|
106 |
|
90 |
post-install: install-nls install-mime-types \ |
107 |
post-install: install-startup-files install-nls-files \ |
|
|
108 |
install-doc-files install-mime-types \ |
91 |
remove-catman-files remove-catman-links |
109 |
remove-catman-files remove-catman-links |
|
|
110 |
|
111 |
install-startup-files: |
112 |
@${INSTALL_SCRIPT} ${WRKSRC}/${RCD_FILE} ${PREFIX}/${RCD_SUBDIR} |
92 |
|
113 |
|
93 |
install-nls: |
114 |
install-nls-files: |
94 |
@cd ${WRKSRC}/nls; ${MAKE} install |
115 |
@cd ${WRKSRC}/nls; ${MAKE} install |
95 |
|
116 |
|
|
|
117 |
install-doc-files: |
118 |
.if !defined(NOPORTSDOC) |
119 |
@${MKDIR} ${PREFIX}/${DOC_SUBDIR} |
120 |
.for file in ${DOC_FILES} |
121 |
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/${DOC_SUBDIR} |
122 |
@${GZIP_CMD} ${PREFIX}/${DOC_SUBDIR}/${file:T} |
123 |
.endfor |
124 |
.endif |
125 |
|
96 |
install-mime-types: |
126 |
install-mime-types: |
97 |
@${INSTALL_DATA} \ |
127 |
@${INSTALL_DATA} ${FILESDIR}/${MIME_TYPES} \ |
98 |
${FILESDIR}/${MIMETYPES} ${DESTLIBDIR}/${MIMETYPES}-dist |
128 |
${PREFIX}/${LIB_SUBDIR}/${MIME_TYPES}-dist |
99 |
@if [ ! -f ${DESTLIBDIR}/${MIMETYPES} ]; then \ |
129 |
@if [ ! -f ${PREFIX}/${LIB_SUBDIR}/${MIME_TYPES} ]; then \ |
100 |
${INSTALL_DATA} ${FILESDIR}/${MIMETYPES} ${DESTLIBDIR}; \ |
130 |
${INSTALL_DATA} ${FILESDIR}/${MIME_TYPES} \ |
|
|
131 |
${PREFIX}/${LIB_SUBDIR}; \ |
101 |
fi |
132 |
fi |
102 |
|
133 |
|
103 |
remove-catman-files: |
134 |
remove-catman-files: |
104 |
.for sect in 1 |
135 |
.for sect in ${MSECS} |
105 |
.for page in ${MAN${sect}} |
136 |
.for page in ${MAN${sect}} |
106 |
@${RM} -f ${MAN${sect}PREFIX}/man/cat${sect}/${page} |
137 |
@${RM} -f ${MAN${sect}PREFIX}/man/cat${sect}/${page} |
107 |
.endfor |
138 |
.endfor |
108 |
.endfor |
139 |
.endfor |
109 |
|
140 |
|
110 |
remove-catman-links: |
141 |
remove-catman-links: |
111 |
.for sect in 1 |
142 |
.for sect in ${MSECS} |
112 |
.for page in ${MLINKS} |
143 |
.for page in ${MLINKS} |
113 |
.if ${MAN${sect}:M${page}} == "" |
144 |
.if ${MAN${sect}:M${page}} == "" |
114 |
@${RM} -f ${MAN${sect}PREFIX}/man/cat${sect}/${page} |
145 |
@${RM} -f ${MAN${sect}PREFIX}/man/cat${sect}/${page} |
115 |
.endif |
146 |
.endif |
116 |
.endfor |
147 |
.endfor |
117 |
.endfor |
148 |
.endfor |
|
|
149 |
|
150 |
.include <bsd.port.pre.mk> |
151 |
|
152 |
# some sketchy hackery |
153 |
FETCH_CMD_INTERIOR= ${FETCH_CMD:M*fetch*} |
154 |
|
155 |
# only enable the hack if FETCH_CMD is fetch |
156 |
.if !empty(FETCH_CMD_INTERIOR) |
157 |
|
158 |
# lip6 dislike $USER@localhost... |
159 |
FETCH_ENV= FTP_PASSWORD=${FTP_PASSWORD} |
160 |
|
161 |
AWK?= awk |
162 |
IFCONFIG?= ifconfig |
163 |
|
164 |
# well, this is a hack to make fetch happy on lip6, ugh! |
165 |
HOSTIPADDR= ${IFCONFIG} | ${AWK} '/inet /{print $$2; exit}' |
166 |
FTP_PASSWORD?= ${USER}@`${HOSTIPADDR}` |
167 |
.endif |
118 |
|
168 |
|
119 |
.include <bsd.port.mk> |
169 |
.include <bsd.port.post.mk> |