2013-09-12 15:38:36 +02:00
|
|
|
# Created by: ijliao
|
2001-11-25 12:08:56 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= biggles
|
2010-07-24 10:15:33 +02:00
|
|
|
PORTVERSION= 1.6.6
|
2018-03-10 18:46:04 +01:00
|
|
|
PORTREVISION= 6
|
2001-11-25 12:08:56 +01:00
|
|
|
CATEGORIES= math
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SF
|
2006-05-11 13:30:57 +02:00
|
|
|
DISTNAME= python2-${PORTNAME}-${PORTVERSION}
|
2001-11-25 12:08:56 +01:00
|
|
|
|
2007-08-05 14:18:20 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Create publication-quality 2D scientific plots
|
2001-11-25 12:08:56 +01:00
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+
|
2015-05-26 02:03:45 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2010-07-24 10:15:33 +02:00
|
|
|
|
2008-04-27 11:35:40 +02:00
|
|
|
BUILD_DEPENDS= ${PYNUMPY}
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libplot.so:graphics/plotutils
|
2001-11-25 12:08:56 +01:00
|
|
|
|
2018-02-19 12:10:43 +01:00
|
|
|
USES= gmake python:2.7
|
2008-04-27 11:35:40 +02:00
|
|
|
MAKE_ARGS= CC="${CC}" \
|
|
|
|
CFLAGS="${CFLAGS} -fPIC" \
|
|
|
|
LIBPLOT_CPPFLAGS="-I${LOCALBASE}/include" \
|
2013-12-15 18:17:09 +01:00
|
|
|
LIBPLOT_LDFLAGS="-L${LOCALBASE}/lib -lplot" \
|
|
|
|
PYTHON="${PYTHON_CMD}"
|
2006-12-02 00:58:52 +01:00
|
|
|
|
2013-09-12 15:38:36 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/CC/s,gcc,$$\{CC\},' ${WRKSRC}/make.inc
|
2013-12-15 22:33:13 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|= python|= ${PYTHON_CMD}|' ${WRKSRC}/make.inc
|
2013-09-12 15:38:36 +02:00
|
|
|
|
2008-04-27 11:35:40 +02:00
|
|
|
pre-build:
|
|
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
|
|
|
|
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
|
|
|
|
|
|
|
|
do-install:
|
2014-06-06 23:23:49 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/biggles/libplot
|
2015-05-26 02:03:45 +02:00
|
|
|
(cd ${WRKSRC}/src && ${INSTALL_DATA} *.ini *.py *.pyc *.pyo \
|
2014-06-06 23:23:49 +02:00
|
|
|
${STAGEDIR}${PYTHON_SITELIBDIR}/biggles)
|
2015-05-26 02:03:45 +02:00
|
|
|
(cd ${WRKSRC}/src && ${INSTALL_LIB} *.so \
|
|
|
|
${STAGEDIR}${PYTHON_SITELIBDIR}/biggles)
|
|
|
|
(cd ${WRKSRC}/src/libplot/ && ${INSTALL_DATA} *.py *.pyc *.pyo \
|
|
|
|
${STAGEDIR}${PYTHON_SITELIBDIR}/biggles/libplot)
|
|
|
|
(cd ${WRKSRC}/src/libplot/ && ${INSTALL_LIB} *.so \
|
2014-06-06 23:23:49 +02:00
|
|
|
${STAGEDIR}${PYTHON_SITELIBDIR}/biggles/libplot)
|
2001-11-25 12:08:56 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|