2001-03-28 16:38:51 +02:00
|
|
|
# New ports collection makefile for: py-omniorb
|
|
|
|
# Date created: 14 November 2000
|
|
|
|
# Whom: Johann Visagie <johann@egenetics.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= omniorb
|
2006-12-21 12:12:11 +01:00
|
|
|
PORTVERSION= 3.0
|
2001-03-28 16:38:51 +02:00
|
|
|
CATEGORIES= devel python
|
2002-11-28 04:20:05 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:L}
|
2001-03-28 16:38:51 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2002-11-28 04:20:05 +01:00
|
|
|
DISTNAME= omniORBpy-${PORTVERSION}
|
2001-03-28 16:38:51 +02:00
|
|
|
|
2004-07-07 21:20:02 +02:00
|
|
|
MAINTAINER= sem@FreeBSD.org
|
2003-02-21 12:23:04 +01:00
|
|
|
COMMENT= Python bindings for omniORB4, a CORBA 2.6 ORB
|
2001-03-28 16:38:51 +02:00
|
|
|
|
2006-12-21 12:12:11 +01:00
|
|
|
LIB_DEPENDS= omniORB4.1:${PORTSDIR}/devel/omniORB
|
2001-03-28 16:38:51 +02:00
|
|
|
RUN_DEPENDS= omniidl:${PORTSDIR}/devel/omniORB
|
2002-11-28 04:20:05 +01:00
|
|
|
# parts of omniORB4 source tree is required to build omniORBpy;
|
2001-03-28 16:38:51 +02:00
|
|
|
# see also the "post-extract" target below.
|
2002-11-28 04:20:05 +01:00
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/devel/omniORB:patch
|
|
|
|
|
2003-12-24 21:24:20 +01:00
|
|
|
CONFLICTS= py*-orbit-2*
|
2003-12-24 17:34:45 +01:00
|
|
|
|
2005-06-09 10:28:27 +02:00
|
|
|
PLIST_SUB+= SONUM=${PORTVERSION:C/.*\.//}
|
|
|
|
|
2002-11-28 04:20:05 +01:00
|
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/build
|
|
|
|
BUILD_WRKSRC= ${CONFIGURE_WRKSRC}
|
|
|
|
INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}
|
2003-08-23 23:39:37 +02:00
|
|
|
OMNIORB_WRKSRC!= cd ${.CURDIR}/../omniORB && ${MAKE} -V WRKSRC
|
2001-03-28 16:38:51 +02:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_GMAKE= yes
|
2004-11-20 12:07:45 +01:00
|
|
|
USE_OPENSSL= yes
|
2002-11-28 04:20:05 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2001-03-28 16:38:51 +02:00
|
|
|
MAKEFILE= GNUmakefile
|
2003-08-23 23:39:37 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
2002-11-28 04:20:05 +01:00
|
|
|
|
|
|
|
CONFIGURE_SCRIPT= ../configure
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2003-08-23 23:39:37 +02:00
|
|
|
CONFIGURE_ENV+= CC=${CC} CFLAGS="${CFLAGS}" CXX=${CXX} CXXFLAGS="${CXXFLAGS}" \
|
2002-11-28 04:20:05 +01:00
|
|
|
CPP=${CPP} PYTHON=${PYTHON_CMD}
|
2004-11-20 12:07:45 +01:00
|
|
|
CONFIGURE_ARGS= --with-openssl=${OPENSSLBASE} --with-omniorb=${LOCALBASE}
|
2001-03-28 16:38:51 +02:00
|
|
|
|
2003-05-07 05:04:30 +02:00
|
|
|
pre-configure:
|
2004-11-20 12:07:45 +01:00
|
|
|
@${MKDIR} ${CONFIGURE_WRKSRC}
|
|
|
|
@cd ${OMNIORB_WRKSRC} && ${FIND} idl | ${CPIO} --quiet -pdum ${WRKSRC}
|
2001-03-28 16:38:51 +02:00
|
|
|
|
2003-09-29 04:34:52 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -Ee 's#-pthread|-lc_r#${PTHREAD_LIBS}#' \
|
|
|
|
${WRKSRC}/mk/beforeauto.mk.in
|
|
|
|
|
2002-11-28 04:20:05 +01:00
|
|
|
pre-install:
|
2001-03-28 16:38:51 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-11-20 12:07:45 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}/html
|
|
|
|
@${MKDIR} ${DOCSDIR}/tex
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/omniORBpy.* ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/omniORBpy/* ${DOCSDIR}/html
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/tex/* ${DOCSDIR}/tex
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@cd ${WRKSRC}/examples && ${FIND} . \
|
|
|
|
| ${CPIO} --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
2001-03-28 16:38:51 +02:00
|
|
|
.endif
|
|
|
|
|
2006-02-09 14:52:08 +01:00
|
|
|
post-install:
|
|
|
|
@${PYTHON_CMD} -c "import py_compile;py_compile.compile('${PYTHON_SITELIBDIR}/CosNaming/__init__.py',None,'${PYTHON_SITELIBDIR}/CosNaming/__init__.pyc',True)"
|
|
|
|
@${PYTHON_CMD} -c "import py_compile;py_compile.compile('${PYTHON_SITELIBDIR}/CosNaming__POA/__init__.py',None,'${PYTHON_SITELIBDIR}/CosNaming__POA/__init__.pyc',True)"
|
|
|
|
@${PYTHON_CMD} -c "import py_compile;py_compile.compile('${PYTHON_SITELIBDIR}/omniidl_be/python.py',None,'${PYTHON_SITELIBDIR}/omniidl_be/python.pyc',True)"
|
|
|
|
|
2001-03-28 16:38:51 +02:00
|
|
|
.include <bsd.port.mk>
|