summaryrefslogtreecommitdiff
path: root/mail/libdomainkeys/Makefile
blob: 70262f8fd5ff8ff35534594a8bf6f553dd7fd403 (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
# New ports collection makefile for:	libdomainkeys
# Date created:	   16 May 2005
# Whom:		   Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD$
#

PORTNAME=	libdomainkeys
PORTVERSION=	0.68
PORTREVISION=	2
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	domainkeys

MAINTAINER=	skv@FreeBSD.org
COMMENT=	DomainKeys library

MAKE_ENV=	PREFIX=${PREFIX} OPENSSLBASE="${OPENSSLBASE}"
USE_LDCONFIG=	YES
SHLIB_MAJOR=	3
PLIST_SUB=	SHLIB_MAJOR="${SHLIB_MAJOR}"

USE_OPENSSL=	YES

.if defined(NOPROFILE)
PLIST_SUB+=	PROFILE="@comment "
.else
PLIST_SUB+=	PROFILE=""
.endif

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

post-install:
	@${MKDIR} ${DATADIR}
	${INSTALL_SCRIPT} ${WRKSRC}/dknewkey ${DATADIR}
	${INSTALL_SCRIPT} ${WRKSRC}/test ${DATADIR}/dktest

.include <bsd.port.mk>