The pkg-plist isn't absurdly long, especially when docs are omitted, so convert port from using generated plist to a static one with PORTDOCS defined. While here, allow the possibility of not installing docs although this saves no effort and is not recommended since it removes polyorb from GPS (Gnat Programming Studio IDE) menus. Also import Makefile.in patch to properly strip binaries. The main reason for the update was to support the ability to run the testsuite. When selected (off by default), the "run-testsuite" target is available, and is intended to be executed after "make install". The testsuite target will build the examples along with the tests to be run, but the examples are not installed. However, additional .ali files are installed as a result (before only their source files were installed).
77 lines
2 KiB
Makefile
77 lines
2 KiB
Makefile
# Created by: John Marino <marino@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= polyorb
|
|
PORTVERSION= 2.11.1
|
|
PORTREVISION= 1
|
|
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
|
|
|
|
python_OLD_CMD= /usr/bin/env python
|
|
python_CMD= ${PYTHON_CMD}
|
|
|
|
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>
|