blob: 89c51b7475945bd7aca6a5ff120ed8252ff7e7da (
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
|
# Created by: Marcin Cieslak <saper@SYSTEM.PL>
# $FreeBSD$
PORTNAME= tinypy
PORTVERSION= 1.1
CATEGORIES= lang python
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= saper@saper.info
COMMENT= A minimalist implementation of python in 64k of code
LICENSE= MIT PSFL
LICENSE_COMB= multi
LICENSE_FILE= LICENSE.txt
USE_PYTHON_BUILD= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_BUILD_TARGET= linux
PYDISTUTILS_NOEGGINFO= yes
PLIST_FILES= bin/tinypy
OPTIONS_DEFINE= PYGAME
PYGAME_DESC= PyGame support (requires SDL)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYGAME}
PYDISTUTILS_BUILD_TARGET+= pygame
USE_SDL= sdl
PORTEXAMPLES= *
.endif
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|-O.||; s|gcc $$WFLAGS|${CC} ${CFLAGS} -std=c89 -Wall|' \
-e 's|python |${PYTHON_CMD} |g' \
${WRKSRC}/setup.py
do-configure:
@${DO_NADA}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/build/tinypy ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MEXAMPLES} && ${PORT_OPTIONS:MPYGAME}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/julia.py ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>
|