aboutsummaryrefslogtreecommitdiffstats
path: root/mail/libdkim/Makefile
blob: 932bbbf8aa6bc38a757a0f623db0ccf8d738eaf5 (plain) (blame)
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
# New ports collection makefile for:    libdkim
# Date created:    03 Oct 2008
# Whom:        Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD$
#

PORTNAME=   libdkim
PORTVERSION=    1.0.17
CATEGORIES= mail
MASTER_SITES=   http://duncanthrax.net/exim-experimental/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-tk

MAINTAINER= skv@FreeBSD.org
COMMENT=    DKIM (DomainKeys Identified Mail) library

USE_LDCONFIG=   YES
SHLIB_MAJOR=    1
PLIST_SUB=  SHLIB_MAJOR="${SHLIB_MAJOR}"

USE_OPENSSL=    YES

WRKSRC=     ${WRKDIR}/${DISTNAME}/src

#Check for OPENSSL 0.9.8 in BASE:  If not present require PORT
.if !exists(${DESTDIR}/lib/libcrypto.so.5)
WITH_OPENSSL_PORT=  YES
.endif

.include <bsd.port.pre.mk>

post-patch:
    ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.prev
    @${SED} -e "s=%%SHLIB_MAJOR%%=${SHLIB_MAJOR}=g" \
        ${FILESDIR}/Makefile > ${WRKSRC}/Makefile

.include <bsd.port.post.mk>