First pass of .oe cleanups.
[openembedded.git] / ssmtp / ssmtp_2.60.4.oe
1 DEPENDS = "virtual/libc openssl"
2 RDEPENDS = "libc6 libssl"
3
4 SRC_URI := ${DEBIAN_MIRROR}/main/s/ssmtp/ssmtp_2.60.4.tar.gz \
5            file://${FILESDIR}/ldflags.patch;patch=1 \
6            file://${FILESDIR}/configure.patch;patch=1
7 S := ${WORKDIR}/${PN}-2.60
8
9 inherit autotools
10
11 EXTRA_OECONF = --enable-ssl
12 do_compile () {
13         oe_runmake 'LDFLAGS=${LDFLAGS}'
14 }
15
16 do_install () {
17         oe_runmake 'prefix=${D}/${prefix}' 'exec_prefix=${D}/${exec_prefix}' \
18                    'bindir=${D}/${bindir}' 'mandir=${D}/${mandir}' \
19                    'etcdir=${D}/${sysconfdir}' GEN_CONFIG="`which echo`" install
20         install -d ${D}/${sysconfdir}/ssmtp
21         install -m 0644 ${FILESDIR}/ssmtp.conf ${D}/${sysconfdir}/ssmtp/ssmtp.conf
22 }