blob: 44ce95cf57c1df1dd26f769f4c9d27b2746d8827 (
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
42
43
44
45
46
47
48
49
50
51
|
# $NetBSD: Makefile,v 1.11 2000/08/21 21:01:33 hubertf Exp $
DISTNAME= pycrypt100
PKGNAME= py-crypto-1.0.0
CATEGORIES= security
MASTER_SITES= ftp://ftp.cwi.nl/pub/pct/
EXTRACT_SUFX= .tgz
MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://starship.skyport.net/crew/amk/writing/pct/
DEPENDS+= python-1.5.2:../../lang/python
RESTRICTED= "Cryptographic software"
NO_SRC_ON_FTP= ${RESTRICTED}
WRKSRC= ${WRKDIR}/Extensions/Crypto
MAKE_FLAGS= 'OPT=${CFLAGS}'
INFO_FILES= pct.info
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "vax"
IGNORE="${PKGNAME} needs dynamic loading"
.endif
post-extract:
@(cd ${WRKDIR}; tar xf pycrypt.tar)
do-configure:
@(cd ${WRKSRC}; ${PREFIX}/bin/python buildkit)
${CP} ${PREFIX}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}/src
${CP} ${WRKSRC}/Setup.in ${WRKSRC}/src
@(cd ${WRKSRC}/src; ${MAKE} -f Makefile.pre.in boot)
do-build:
@(cd ${WRKSRC}/src; ${MAKE})
${PREFIX}/bin/python ${PREFIX}/lib/python1.5/compileall.py \
${WRKSRC}/Lib
${PREFIX}/bin/python -O ${PREFIX}/lib/python1.5/compileall.py \
${WRKSRC}/Lib
do-install:
${MKDIR} ${PREFIX}/lib/python1.5/site-packages
(cd ${WRKSRC}/Lib ; ${INSTALL_DATA} *.py *.pyc *.pyo \
${PREFIX}/lib/python1.5/site-packages)
(cd ${WRKSRC}/src ; ${INSTALL_DATA} *.so \
${PREFIX}/lib/python1.5/site-packages)
(cd ${WRKSRC}/Doc ; ${INSTALL_MAN} *info* \
${PREFIX}/info)
.include "../../mk/bsd.pkg.mk"
|