freebsd-ports/devel/py-omniorb-3/Makefile
Thierry Thomas 6c0cb7e99c In order to rescue the Salomé's ports, devel/omniNotify and
devel/py-omniorb are needed. But since omniNotify depends on
devel/omniORB-4.1, a version of py-omniorb depending on the same omniORB
is needed, to avoid conflicts.

- Repocopy devel/py-omniorb to devel/py-omniorb-3

- Downgrade it to 3.7

- Set CONFLICTS.

CR:		D970
2014-10-21 16:53:38 +00:00

67 lines
2.3 KiB
Makefile

# Created by: Johann Visagie <johann@egenetics.com>
# $FreeBSD$
PORTNAME= omniorb
PORTVERSION= 3.7
CATEGORIES= devel python
MASTER_SITES= SF/${PORTNAME}/omniORBpy/omniORBpy-${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= 3
DISTNAME= omniORBpy-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Python bindings for omniORB4, a CORBA 2.6 ORB
LICENSE= LGPL21
LIB_DEPENDS= libomniORB4.so.1:${PORTSDIR}/devel/omniORB-4.1
# parts of omniORB4 source tree is required to build omniORBpy;
# see also the "post-extract" target below.
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/devel/omniORB-4.1:patch
CONFLICTS= py${PYTHON_SUFFIX}-orbit-2* py${PYTHON_SUFFIX}-omniorb-4.2*
OPTIONS_DEFINE= DOCS EXAMPLES
PLIST_SUB= SONUM=${PORTVERSION:C/.*\.//}
CONFIGURE_WRKSRC= ${WRKSRC}/build
BUILD_WRKSRC= ${CONFIGURE_WRKSRC}
INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}
OMNIORB_WRKSRC!= cd ${.CURDIR}/../omniORB-4.1 && ${MAKE} -V WRKSRC
USE_OPENSSL= yes
GNU_CONFIGURE= yes
MAKEFILE= GNUmakefile
USE_LDCONFIG= yes
USES= gmake python tar:bzip2
CONFIGURE_SCRIPT= ../configure
CONFIGURE_ENV+= PYTHON=${PYTHON_CMD}
CONFIGURE_ARGS= --with-openssl=${OPENSSLBASE} --with-omniorb=${LOCALBASE}
.include <bsd.port.options.mk>
pre-configure:
${MKDIR} ${CONFIGURE_WRKSRC}
cd ${OMNIORB_WRKSRC} && ${FIND} idl | ${CPIO} --quiet -pdum ${WRKSRC}
post-install:
${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/omniidl_be/__init__.py
cd ${STAGEDIR}${PYTHON_SITELIBDIR} && ${PYTHON_CMD} -c "import py_compile;py_compile.compile('CosNaming/__init__.py',None,'CosNaming/__init__.pyc',True)"
cd ${STAGEDIR}${PYTHON_SITELIBDIR} && ${PYTHON_CMD} -c "import py_compile;py_compile.compile('CosNaming__POA/__init__.py',None,'CosNaming__POA/__init__.pyc',True)"
cd ${STAGEDIR}${PYTHON_SITELIBDIR} && ${PYTHON_CMD} -c "import py_compile;py_compile.compile('omniidl_be/python.py',None,'omniidl_be/python.pyc',True)"
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
@${MKDIR} ${STAGEDIR}${DOCSDIR}/tex
${INSTALL_DATA} ${WRKSRC}/doc/omniORBpy.* ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/omniORBpy/* ${STAGEDIR}${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/doc/tex/* ${STAGEDIR}${DOCSDIR}/tex
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${FIND} . \
| ${CPIO} --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>