- Support multiple values in *_OLD_CMD, i.e. we can now fix both "/usr/bin/python" and "/usr/bin/env python" at the same time
- Default *_OLD_CMD values are now always appended, so you don't need to specify them in individual ports
- Add lua support (depends on USES=lua)
- Add more default values, such as "/usr/bin/env foo" for python, perl, bash, ruby and lua
- Shebangfix now matches whole words, e.g. we will no longer (erroneously) replace "/usr/bin/perl5.005" with "${perl_CMD}5.005" (but "/usr/bin/perl -tt" is still (correctly) replaced with "${perl_CMD} -tt")
Note that *_OLD_CMD items containing spaces must now be quoted (e.g. perl_OLD_CMD=/bin/perl /usr/bin/perl "/usr/bin/env perl")
Update shebangfix usage according to new rules in many ports:
- Remove *_OLD_CMD for patterns now replaced by default
- Quote custom *_OLD_CMD which contain spaces
Fix shebangfix usage in many ports (irrelevant to infrastructure change):
- Remove redundant SHEBANG_LANG (no need to duplicate default langs)
- Remove redundant *_CMD (such as python_CMD=${LOCALBASE}/bin/python${PYTHON_VER} when USES=python is present)
- Never use *_OLD_CMD in REINPLACE_CMD matchers, these should always look for exact string
Approved by: portmgr (bapt)
Differential Revision: D3756
75 lines
2.0 KiB
Makefile
75 lines
2.0 KiB
Makefile
# Created by: John Marino <marino@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= polyorb
|
|
PORTVERSION= 2.11.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://downloads.dragonlace.net/src/
|
|
DISTNAME= polyorb-gpl-${YEAR}-src
|
|
|
|
MAINTAINER= marino@FreeBSD.org
|
|
COMMENT= CORBA, SOAP, Ada 95 Distributed System Annex middleware
|
|
|
|
LICENSE= GPLv3
|
|
|
|
BUILD_DEPENDS= xmlada>=3.2:${PORTSDIR}/textproc/xmlada
|
|
|
|
USES= ada gmake python:build shebangfix
|
|
GNU_CONFIGURE= yes
|
|
NO_MTREE= yes
|
|
YEAR= 2014
|
|
WRKSRC= ${WRKDIR}/polyorb-${YEAR}-src
|
|
|
|
ALL_TARGET= default
|
|
MAKE_ENV= PROCESSORS=${MAKE_JOBS_NUMBER}
|
|
CONFIGURE_ENV= PYTHON=${PYTHON_CMD} \
|
|
ac_cv_prog_CXXCPP="cpp -E" \
|
|
ac_cv_prog_SVN=false
|
|
PORTDOCS= html \
|
|
info/polyorb_ug.info \
|
|
pdf/polyorb_ug.pdf \
|
|
txt/polyorb_ug.txt
|
|
SHEBANG_FILES= compilers/idlac/*.py testsuite/*.py testsuite/tests/*.py
|
|
|
|
CONFIGURE_ARGS= --with-appli-perso="corba dsa moma" \
|
|
--with-proto-perso="giop soap srp" \
|
|
--with-corba-services="event ir naming notification time"
|
|
|
|
# Polyorb 2011 = PCS version 4 GNAT GCC 4.6 = PCS version 4
|
|
# Polyorb 2012 = PCS version 5 GNAT GCC 4.7 = PCS version 5
|
|
# Polyorb 2013 = PCS version 6 GNAT GCC 4.9 = PCS version 6
|
|
# Polyorb 2014 = PCS version 6 GNAT GCC 4.9 = PCS version 6
|
|
|
|
OPTIONS_DEFINE= DOCS TESTSUITE
|
|
OPTIONS_SUB= TESTSUITE
|
|
|
|
TESTSUITE_ALL_TARGET= testsuite
|
|
TESTSUITE_BUILD_DEPENDS=gnatpython>=20101207:${PORTSDIR}/devel/gnatpython
|
|
TESTSUITE_DESC= Enable 'make run-testsuite' target
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
.if !${PORT_OPTIONS:MDOCS}
|
|
${MV} ${WRKSRC}/docs/polyorb_ug.html ${WRKSRC}/docs/ug.html
|
|
.endif
|
|
@${REINPLACE_CMD} -e 's|bash|/bin/sh|' ${WRKSRC}/testsuite/testsuite.py
|
|
|
|
do-build:
|
|
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET})
|
|
|
|
post-install:
|
|
(cd ${STAGEDIR}${PREFIX}; \
|
|
${FIND} * -type d -empty -print | ${XARGS} ${RMDIR})
|
|
|
|
.if ${PORT_OPTIONS:MTESTSUITE}
|
|
# must be run after "make install"
|
|
run-testsuite:
|
|
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} run_tests)
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|