blob: f89e4bc10bf8040fe12c4b4f15e96f6b81cc9ed6 (
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
52
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= gracetmpl
PORTVERSION= 0.3.2
PORTREVISION= 6
CATEGORIES= math print
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Provide an easy way to use existing grace-files as a template
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numarray/__init__.py:math/py-numarray@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/numarray/__init__.py:math/py-numarray@${PY_FLAVOR}
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake python:2.7 tar:bzip2
USE_PYTHON= flavors
MAKE_ARGS= PREFIX="${PREFIX}" \
BIN_PREFIX="${PREFIX}/bin" \
LIB_PREFIX="${PREFIX}/lib" \
INC_PREFIX="${PREFIX}/include" \
DOC_PREFIX="${DOCSDIR}" \
AR="${AR}" \
CPP="${CXX} ${LDFLAGS}" \
CPPFLAGS="${CXXFLAGS} ${CPPFLAGS}" \
CXX="${CXX}" \
PYTHON="${PYTHON_CMD}"
ALL_TARGET= all pythonwrap
INSTALL_TARGET= install
USE_GCC= yes
PLIST_SUB+= PYTHON_VER=${PYTHON_VER}
OPTIONS_DEFINE= DOCS
post-extract:
@${ECHO_CMD} -n > ${WRKSRC}/Makefile.defs
post-patch:
@${REINPLACE_CMD} -e 's|/gracetmpl\.a|/libgracetmpl.a|g' ${WRKSRC}/gracetmpl-config.in
post-install:
@(cd ${INSTALL_WRKSRC}/python; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py \
install --root=${STAGEDIR} --prefix=${PREFIX} -c -O1)
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/graceTMPL/graceTMPL.so
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|