summaryrefslogtreecommitdiff
path: root/finance/pfpro/Makefile
blob: 5dc0983cf44b5b5a4181275c33276ec62e59c226 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# New ports collection makefile for:	pfpro
# Date created:		November 29, 2005
# Whom:			durian@shadetreesoftware.com
#
# $FreeBSD$
#

PORTNAME=	pfpro
PORTVERSION=	3.0.8
CATEGORIES=	finance
MASTER_SITES=	#https://manager.verisign.com/
DISTNAME=	pfpro_freebsd

MAINTAINER=	durian@shadetreesoftware.com
COMMENT=	SDK for VeriSign's PayFlow Pro

ONLY_FOR_ARCHS=	i386
RESTRICTED=	"Only for VeriSign PayFlow Pro customers"
NO_BUILD=	yes
INSTALLS_SHLIB=	yes
NO_WRKSUBDIR=	yes
SUB_FILES=	pkg-message

PKGMESSAGE=	${WRKDIR}/pkg-message
LATEST_LINK=	verisign-pfpro

CERTDIR=	${PREFIX}/certs

FBSDDIR=	${WRKSRC}/verisign/payflowpro/freebsd

# XXX nees to be the same as DISTFILES
PFP_BUNDLE=	${DISTNAME}${EXTRACT_SUFX}

.include <bsd.port.pre.mk>

# Check for SDK bundle
.if !exists(${DISTDIR}/${PFP_BUNDLE})
ECHO_MSG=/usr/bin/printf
IGNORE= :\n\
The VeriSign PayFlow Pro SDK is only available to customers who have\n\
subscribed to this service.  Please access your account at\n\
https://manager.verisign.com/ and retrieve the FreeBSD 5.x version\n\
of the SDK from the Downloads area.  You will be required to agree to\n\
some terms and conditions.  After downing the SDK, place ${PFP_BUNDLE}\n\
in ${DISTDIR}.\n
.endif

do-install:
	${INSTALL_PROGRAM} ${FBSDDIR}/bin/pfpro ${PREFIX}/bin
	${INSTALL_PROGRAM} ${FBSDDIR}/bin/pfpro-file ${PREFIX}/bin
	${INSTALL_DATA} ${FBSDDIR}/lib/pfpro.h ${PREFIX}/include
	${INSTALL_DATA} ${FBSDDIR}/lib/libpfpro.so ${PREFIX}/lib
	${MKDIR} ${CERTDIR}
	${INSTALL_DATA} ${FBSDDIR}/certs/f73e89fd.0 ${CERTDIR}

post-install:
	${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>