1 |
laffer1 |
3797 |
# New ports collection makefile for: alpine |
2 |
|
|
# Date created: December 21, 2007 |
3 |
|
|
# Whom: Lucas Holt <luke@midnightbsd.org> |
4 |
|
|
# |
5 |
laffer1 |
15462 |
# $MidnightBSD$ |
6 |
laffer1 |
3797 |
# |
7 |
|
|
|
8 |
|
|
PORTNAME?= alpine |
9 |
laffer1 |
24838 |
DISTVERSION= 2.21.9999 |
10 |
|
|
PORTREVISION?= 0 |
11 |
laffer1 |
3797 |
CATEGORIES?= mail news ipv6 |
12 |
laffer1 |
24838 |
MASTER_SITES= http://repo.or.cz/alpine.git/snapshot/${GIT_COMMIT}${EXTRACT_SUFX}?dummy=/ |
13 |
laffer1 |
3797 |
|
14 |
|
|
MAINTAINER= ports@MidnightBSD.org |
15 |
|
|
COMMENT= Mail and news client descended from Pine |
16 |
laffer1 |
16786 |
|
17 |
laffer1 |
3797 |
LICENSE= apache2 |
18 |
|
|
|
19 |
laffer1 |
24838 |
USES+= ssl libtool ncurses gettext-runtime |
20 |
|
|
GNU_CONFIGURE= yes |
21 |
|
|
MAKE_JOBS_UNSAFE= yes |
22 |
|
|
CONFIGURE_ARGS+= --with-debug-level=2 \ |
23 |
|
|
--enable-background-post \ |
24 |
|
|
--without-krb5 \ |
25 |
|
|
--without-tcl \ |
26 |
|
|
--with-system-pinerc=${PREFIX}/etc/alpine.conf \ |
27 |
|
|
--with-system-fixed-pinerc=${PREFIX}/etc/alpine.conf.fixed \ |
28 |
|
|
--with-password-prog=/usr/bin/passwd \ |
29 |
|
|
--with-system-mail-directory=/var/mail \ |
30 |
|
|
--with-ssl-dir=${OPENSSLDIR} \ |
31 |
|
|
--with-ssl-include-dir=${OPENSSLINC} \ |
32 |
|
|
--with-ssl-lib-dir=${OPENSSLLIB} \ |
33 |
|
|
--with-ssl-certs-dir=${OPENSSLDIR}/certs |
34 |
|
|
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd10.4 |
35 |
|
|
MAKE_ARGS+= CC="${CC}" CXX="${CXX}" GCCCFLAGS="${CFLAGS}" |
36 |
|
|
# When you update please double check that the commit corresponds to |
37 |
|
|
# the actual version you've set in PORTVERSION. |
38 |
|
|
GIT_COMMIT= d3e6f3932f2af9deca8eed09e30a55e9bd524362 |
39 |
|
|
GIT_COMMIT_SHORT= d3e6f39 |
40 |
|
|
WRKSRC= ${WRKDIR}/alpine-${GIT_COMMIT_SHORT} |
41 |
laffer1 |
22460 |
|
42 |
laffer1 |
24838 |
OPTIONS_DEFINE= ASPELL CONS25 DOCS IPV6 LDAP MAILDIR MOUSE NLS NTLM PASSFILE THREADS |
43 |
|
|
OPTIONS_DEFAULT= ASPELL MOUSE THREADS |
44 |
|
|
.if defined(PICO_ALPINE_SLAVE) |
45 |
|
|
OPTIONS_EXCLUDE= CONS25 IPV6 LDAP PASSFILE |
46 |
|
|
.endif |
47 |
laffer1 |
22460 |
|
48 |
|
|
CONS25_DESC= Add a patch to support color for default console |
49 |
laffer1 |
24838 |
NTLM_DESC= Support for Windows NT Lan Manager authentication |
50 |
|
|
PASSFILE_DESC= Support for a stored password file |
51 |
laffer1 |
3797 |
|
52 |
laffer1 |
24838 |
# Option ASPELL |
53 |
|
|
ASPELL_CONFIGURE_ON= --with-interactive-spellcheck=${LOCALBASE}/bin/aspell |
54 |
|
|
ASPELL_CONFIGURE_OFF= --with-simple-spellcheck |
55 |
|
|
ASPELL_BUILD_DEPENDS= aspell:textproc/aspell |
56 |
|
|
ASPELL_RUN_DEPENDS= aspell:textproc/aspell |
57 |
laffer1 |
22460 |
|
58 |
laffer1 |
24838 |
# Option CONS25 |
59 |
|
|
CONS25_EXTRA_PATCHES= ${FILESDIR}/cons25-alpine_keymenu.c |
60 |
laffer1 |
8109 |
|
61 |
laffer1 |
24838 |
# Option IPV6 |
62 |
|
|
IPV6_CONFIGURE_WITH= ipv6 |
63 |
laffer1 |
3797 |
|
64 |
laffer1 |
24838 |
# Option LDAP |
65 |
|
|
LDAP_USE= openldap=yes |
66 |
|
|
LDAP_CONFIGURE_WITH= ldap |
67 |
|
|
LDAP_CONFIGURE_ON= --with-ldap-dir=${LOCALBASE} |
68 |
laffer1 |
22460 |
|
69 |
laffer1 |
24838 |
# Option MAILDIR |
70 |
|
|
MAILDIR_PATCH_SITES= http://alpine.x10host.com/alpine/patches/alpine-2.21/ |
71 |
|
|
MAILDIR_PATCHFILES+= maildir.patch.gz:-p1 |
72 |
laffer1 |
22460 |
|
73 |
laffer1 |
24838 |
# Option MOUSE |
74 |
|
|
MOUSE_CONFIGURE_ENABLE= mouse |
75 |
laffer1 |
22460 |
|
76 |
laffer1 |
24838 |
# Option NLS |
77 |
|
|
NLS_CONFIGURE_ENABLE= nls |
78 |
laffer1 |
22460 |
|
79 |
laffer1 |
24838 |
# Option NTLM |
80 |
|
|
NTLM_CONFIGURE_WITH= ntlm |
81 |
|
|
NTLM_LIB_DEPENDS= libntlm.so:security/libntlm |
82 |
laffer1 |
3797 |
|
83 |
laffer1 |
24838 |
# Option PASSFILE |
84 |
|
|
PASSFILE_CONFIGURE_WITH= passfile |
85 |
|
|
PASSFILE_CONFIGURE_ON= --with-passfile=.alpine.pwd |
86 |
laffer1 |
3797 |
|
87 |
laffer1 |
24838 |
# Option THREADS |
88 |
|
|
THREADS_CONFIGURE_WITH= pthread |
89 |
laffer1 |
3797 |
|
90 |
|
|
.if !defined(PICO_ALPINE_SLAVE) |
91 |
laffer1 |
24838 |
PORTDOCSbase= NOTICE README |
92 |
|
|
PORTDOCSdoc= brochure.txt |
93 |
|
|
PORTDOCShtml= tech-notes/background.html tech-notes/cmd-line.html \ |
94 |
|
|
tech-notes/config-notes.html tech-notes/config.html \ |
95 |
|
|
tech-notes/index.html tech-notes/installation.html \ |
96 |
|
|
tech-notes/introduction.html tech-notes/low-level.html \ |
97 |
|
|
tech-notes/tech-notes.txt |
98 |
|
|
PORTDOCS= ${PORTDOCSbase} ${PORTDOCSdoc} ${PORTDOCShtml} |
99 |
laffer1 |
3797 |
|
100 |
|
|
post-patch: |
101 |
|
|
@${CP} ${WRKSRC}/imap/Makefile ${WRKSRC}/imap/Makefile.presed |
102 |
|
|
@${SED} -e "s#^\(all:.*\) bundled\$$#\1#" \ |
103 |
|
|
${WRKSRC}/imap/Makefile.presed > ${WRKSRC}/imap/Makefile |
104 |
|
|
@${CP} ${WRKSRC}/pico/Makefile.in ${WRKSRC}/pico/Makefile.in.presed |
105 |
|
|
@${SED} -e "s#^bin_PROGRAMS = pico.*#bin_PROGRAMS =#" \ |
106 |
|
|
-e "s#\$$(pico_SOURCES) \$$(pilot_SOURCES)##" \ |
107 |
|
|
${WRKSRC}/pico/Makefile.in.presed > ${WRKSRC}/pico/Makefile.in |
108 |
|
|
@${CP} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.presed |
109 |
laffer1 |
24838 |
@${SED} -e "s#doc/man1/pico.1 doc/man1/pilot.1 ##" \ |
110 |
laffer1 |
3797 |
${WRKSRC}/Makefile.in.presed > ${WRKSRC}/Makefile.in |
111 |
laffer1 |
8109 |
@${CP} ${WRKSRC}/imap/src/osdep/unix/Makefile \ |
112 |
|
|
${WRKSRC}/imap/src/osdep/unix/Makefile.presed |
113 |
|
|
@${SED} -e "s#^LOCKPGM=.*#LOCKPGM= ${PREFIX}/libexec/mlock#" \ |
114 |
|
|
${WRKSRC}/imap/src/osdep/unix/Makefile.presed \ |
115 |
|
|
> ${WRKSRC}/imap/src/osdep/unix/Makefile |
116 |
laffer1 |
24838 |
@for i in ${WRKSRC}/README ${WRKSRC}/doc/man1/alpine.1 \ |
117 |
laffer1 |
22460 |
${WRKSRC}/doc/*.txt \ |
118 |
|
|
${WRKSRC}/doc/tech-notes/*.txt \ |
119 |
|
|
${WRKSRC}/doc/tech-notes/*.html \ |
120 |
laffer1 |
3797 |
${WRKSRC}/pith/pine.hlp ; do \ |
121 |
|
|
${CP} $$i $$i.presed ; \ |
122 |
laffer1 |
22460 |
${SED} -e "s:/usr/local/lib/:${PREFIX}/etc/:g" \ |
123 |
|
|
-e "s:/usr/local/pine.conf:${PREFIX}/etc/pine.conf:g" \ |
124 |
|
|
-e "s:pine\.conf:alpine.conf:g" \ |
125 |
|
|
-e "s:/usr/local:${PREFIX}:g" \ |
126 |
laffer1 |
3797 |
-e "s:@@PREFIX@@:${PREFIX}:g" \ |
127 |
|
|
$$i.presed > $$i ; \ |
128 |
|
|
done |
129 |
|
|
|
130 |
|
|
post-install: |
131 |
laffer1 |
22460 |
${STAGEDIR}${PREFIX}/bin/alpine -conf > ${STAGEDIR}${PREFIX}/etc/alpine.conf.sample |
132 |
|
|
${INSTALL} -d ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/tech-notes |
133 |
|
|
.for f in ${PORTDOCSbase} |
134 |
laffer1 |
24838 |
${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR} |
135 |
laffer1 |
22460 |
.endfor |
136 |
|
|
.for f in ${PORTDOCSdoc} |
137 |
laffer1 |
24838 |
${INSTALL_DATA} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR} |
138 |
laffer1 |
22460 |
.endfor |
139 |
|
|
.for f in ${PORTDOCShtml} |
140 |
laffer1 |
24838 |
${INSTALL_DATA} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}/tech-notes |
141 |
laffer1 |
22460 |
.endfor |
142 |
laffer1 |
24838 |
.endif # !defined(PICO_ALPINE_SLAVE) |
143 |
laffer1 |
3797 |
|
144 |
laffer1 |
24838 |
.include <bsd.port.mk> |