2013-09-20 20:55:04 +00:00
|
|
|
# Created by: ijliao
|
2003-10-28 10:07:02 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gracetmpl
|
2005-06-17 17:38:36 +00:00
|
|
|
PORTVERSION= 0.3.2
|
2003-10-28 10:07:02 +00:00
|
|
|
CATEGORIES= math print
|
2009-08-22 00:28:34 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
2003-10-28 10:07:02 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= Provide an easy way to use existing grace-files as a template
|
|
|
|
|
2005-06-17 17:38:36 +00:00
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numarray/__init__.py:${PORTSDIR}/math/py-numarray
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/numarray/__init__.py:${PORTSDIR}/math/py-numarray
|
|
|
|
|
2014-08-16 17:27:02 +00:00
|
|
|
USES= gmake python tar:bzip2
|
2005-06-17 17:38:36 +00:00
|
|
|
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}" \
|
2014-09-08 16:23:56 +00:00
|
|
|
CXX="${CXX}" \
|
|
|
|
PYTHON="${PYTHON_CMD}"
|
2003-10-28 10:07:02 +00:00
|
|
|
ALL_TARGET= all pythonwrap
|
2014-08-16 17:27:02 +00:00
|
|
|
INSTALL_TARGET= install
|
2003-11-14 16:16:56 +00:00
|
|
|
|
2014-08-16 17:27:02 +00:00
|
|
|
PLIST_SUB+= PYTHON_VER=${PYTHON_VER}
|
2007-07-30 09:42:28 +00:00
|
|
|
|
2003-10-28 10:07:02 +00:00
|
|
|
post-extract:
|
2005-06-17 17:38:36 +00:00
|
|
|
@${ECHO_CMD} -n > ${WRKSRC}/Makefile.defs
|
2003-10-28 10:07:02 +00:00
|
|
|
|
|
|
|
post-patch:
|
2005-06-17 17:38:36 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/gracetmpl\.a|/libgracetmpl.a|g' ${WRKSRC}/gracetmpl-config.in
|
2003-10-28 10:07:02 +00:00
|
|
|
|
|
|
|
post-install:
|
2014-08-16 17:27:02 +00:00
|
|
|
@(cd ${INSTALL_WRKSRC}/python; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py \
|
|
|
|
install --root=${STAGEDIR} --prefix=${LOCALBASE} -c -O1)
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${STAGEDIR}${DOCSDIR}
|
2003-10-28 10:07:02 +00:00
|
|
|
|
2005-06-17 17:38:36 +00:00
|
|
|
.include <bsd.port.mk>
|