1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/devel/py-jep/Makefile
2023-04-23 09:09:58 +00:00

39 lines
916 B
Makefile

PORTNAME= jep
PORTVERSION= 3.9.1
PORTREVISION= 1
CATEGORIES= devel java python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Java Embedded Python
WWW= https://github.com/mrj0/jep
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python:3.6+
USE_PYTHON= distutils
CONFIGURE_ENV= JAVA_HOME=${JAVA_HOME}
MAKE_ENV= JAVA_HOME=${JAVA_HOME}
USE_JAVA= yes
USE_LDCONFIG= yes
PLIST_SUB+= VERSION=${PORTVERSION}
# Necessary, since the configure script does the LIBS and
# LDFLAGS detection wrong
CFLAGS+= -I${JAVA_HOME}/include/freebsd
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= NUMPY
OPTIONS_DEFAULT= NUMPY
NUMPY_BUILD_DEPENDS= ${PYNUMPY}
NUMPY_RUN_DEPENDS= ${PYNUMPY}
post-install:
${LN} -s ${PYTHON_SITELIBDIR}/jep/jep-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/jep.jar
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/jep/jep*.so
.include <bsd.port.mk>