blob: 018c7dab94a81527dbd87febf236d30c467f6cd7 (
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
|
DESCRIPTION = "Pine(R) - a Program for Internet News & Email"
SECTION = "console/network"
LICENSE = "Pine"
DEPENDS = "ncurses"
RDEPENDS_pine = "pico"
HOMEPAGE = "http://www.washington.edu/pine/"
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
SRC_URI = "ftp://ftp.cac.washington.edu/pine/pine.tar.bz2"
S = "${WORKDIR}/pine${PV}"
inherit autotools
#
# ~lart Pine's build structure...
#
PARALLEL_MAKE = ""
EXTRA_OEMAKE = "-e"
export MAKE = 'MAKE="make -e" make -e'
CFLAGS += "-I${S}/imap/c-client"
LDFLAGS += "${S}/imap/c-client/c-client.a -lssl -lcrypt"
export SSLDEFINES = "-DSSL_CERT_DIRECTORY=\\"/etc/ssl/certs\\" -DSSL_KEY_DIRECTORY=\\"/etc/ssl/private\\""
export SSLCFLAGS = "${CFLAGS} -I${STAGING_INCDIR}/openssl ${SSLDEFINES}"
export SSLLDFLAGS = "-lssl -lcrypt ${LDFLAGS} -L${STAGING_LIBDIR}/openssl"
export EXTRALDFLAGS = "${LDFLAGS}"
do_configure() {
ln -sf ${S}/imap/c-client ${S}/c-client
cd ${S}/pico/osdep && \
${BUILD_CC} -o includer includer.c
cd ${S}/pine/osdep && \
${BUILD_CC} -o includer includer.c
}
do_compile() {
unset CFLAGS && unset LDFLAGS
cd ${S}/imap && oe_runmake slx
for i in pico pine
do
cd ${S}/$i && oe_runmake -f makefile.lnx
done
}
BINARIES = "imap/mailutil/mailutil imap/mlock/mlock pico/pico pico/pilot pine/pine"
do_install() {
install -d 0644 ${D}${bindir}
for binary in ${BINARIES}
do
install -m 0755 $binary ${D}${bindir}
done
}
PACKAGES = "pico pine"
FILES_pico = "${bindir}/pico ${bindir}/pilot"
|