aboutsummaryrefslogblamecommitdiff
path: root/security/py-m2crypto/Makefile
blob: 6105bb811747f6577a3573f33885e9d5bdfe1085 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                        
                    
                 
                               
                                                                
                                       
                                          
 
                                 
                                                 
 
                                                  

                                                   
                                          


                   
                   

                                        
 
           
                                                                                           
 







                                                                                                   
                                                                

                      
# New ports collection makefile for:	py-m2crypto
# Date created:				27 March 2001
# Whom:					Peter Haight <peterh@sapros.com>
#
# $FreeBSD$
#

PORTNAME=	m2crypto
PORTVERSION=	0.11
PORTREVISION=	1
CATEGORIES=	security python
MASTER_SITES=	# http://www.post1.com/home/ngps/m2/ unfetchable
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	${PORTNAME}-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Crypto and SSL toolkit for Python

BUILD_DEPENDS=	swig1.3:${PORTSDIR}/devel/swig13 \
		pinstall:${PORTSDIR}/devel/pinstall

WRKSRC=		${WRKDIR}/${DISTNAME}/SWIG
USE_PYTHON=	yes
USE_ZIP=	yes
USE_OPENSSL=	yes
USE_REINPLACE=	yes

PINSTALL_PLIST=	${WRKDIR}/pinstall-plist

post-patch:
	${REINPLACE_CMD} "s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|" ${WRKSRC}/Makefile

post-build:
	${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/../M2Crypto

do-install:
	${MKDIR} ${WRKDIR}/lib/${PYTHON_VERSION}/site-packages
	cd ${WRKDIR}/lib/${PYTHON_VERSION}/site-packages && ${LN} -sf ../../../${DISTNAME}/M2Crypto

post-install:
	${LOCALBASE}/bin/pinstall -v -f ${TMPPLIST} -d ${WRKDIR}

.include <bsd.port.mk>