summaryrefslogtreecommitdiffstats
path: root/devel/shedskin/Makefile
blob: e7bd5f6ee468980b3a933b365ef56ad610222704 (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
# Created by: lightside <lightside@gmx.com>
# $FreeBSD$

PORTNAME=	shedskin
PORTVERSION=	0.9.4
DISTVERSIONPREFIX=	v
CATEGORIES=	devel python

MAINTAINER=	python@FreeBSD.org
COMMENT=	Experimental (restricted) Python-to-C++ compiler

LICENSE=	GPLv3 MIT BSD3CLAUSE
LICENSE_COMB=	multi
LICENSE_FILE_GPLv3=	${WRKSRC}/LICENSE

RUN_DEPENDS=	${LOCALBASE}/lib/libgc.so:devel/boehm-gc \
		${LOCALBASE}/lib/libpcre.so:devel/pcre

USE_GITHUB=	yes

USES=		python:2
USE_PYTHON=	autoplist distutils
NO_ARCH=	yes

PORTEXAMPLES=	*

OPTIONS_DEFINE=	EXAMPLES

post-patch:
	@${REINPLACE_CMD} -e '/^CC/s|g++|$$(CXX)| ; \
		/^CCFLAGS/s|-O2 -march=native|$$(CXXFLAGS) -I${LOCALBASE}/include| ; \
		/^LFLAGS/s|=|&-L${LOCALBASE}/lib |' \
			${WRKSRC}/shedskin/FLAGS

do-install-EXAMPLES-on:
	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} "${PORTEXAMPLES}" \
		${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>
OpenPOWER on IntegriCloud