mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
640e99a0f6
The templates parser was split out from AWS and due to quirk how GPRBuild interacts with aggregate library projects, linking it as a separate library was more than challenging. It would drop a library exchange file (aws.lexch) in /usr/local/lib/templates_parser during the linking process. Ports are not support to touch areas outside of their work directory -- if they do, builders will notice and fail the port. After hours of trying to get GPRLib to behave, I was reduced to copying the *.ali files over to the work directory and creating a custom gpr file to make linking legal. In the process, I noticed AWS was linking back to work directory (sanity checks don't flag this yet) so that was fixed the the custom "-R" option that I added to GPRBuild a couple of years ago. I had to create a custom aws.gpr file for lib/gnat, and it works really well. Currently something like 238 of 243 tests are passing and the failing ones are socket related and may looking for linux-specific output in a couple of cases. * Documentation is now based on Sphinx. * A fixed package list has replaced the generated one (due to number of options, this was a real chore to generate and validate) * The option to generate only a shared library was removed. It was confusing and not really useful. It produces static and shared libraries by default, and the shared ones can be suppressed optionally. * The FreeBSD-specific makefile was removed. The previous issue was caused by the way the compiler was built which has since been fixed * ASIS was added as dependency * RUN_DEPENDS were defined (they were missing before) * GNUTLS support was fixed. It requires version 3 now and does not required gcrypt or openssl anymore which indicated a previous problem. The aws-demos port had some missing files and other problems. It has been updated at the same time. Note that the output directory has changed from share/examples/aws-demos to share/examples/aws. A couple of tests that were broken now build, and a new test was added. This update comes straight from the latest repositories and was custom packaged. The annual Adacore release was about 5 months old.
110 lines
2.5 KiB
Makefile
110 lines
2.5 KiB
Makefile
# Created by: John Marino <marino@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= aws
|
|
PORTVERSION= 3.2.0.0
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://downloads.dragonlace.net/src/
|
|
PKGNAMESUFFIX= -demos
|
|
|
|
MAINTAINER= marino@FreeBSD.org
|
|
COMMENT= Adacore Ada Web Server demos
|
|
|
|
LICENSE= GPLv3 GPLv3RLE
|
|
LICENSE_COMB= multi
|
|
|
|
BUILD_DEPENDS= gprbuild:${PORTSDIR}/devel/gprbuild \
|
|
xmlada>=4.4:${PORTSDIR}/textproc/xmlada \
|
|
aws>=3.1:${PORTSDIR}/www/aws
|
|
|
|
USES= ada gmake tar:bzip2
|
|
|
|
DISTINFO_FILE= ${PORTSDIR}/www/aws/distinfo
|
|
|
|
CONF_ARGS= PROCESSORS=1
|
|
CONF_ARGS+= GCC=ada
|
|
CONF_ARGS+= prefix=${PREFIX}
|
|
|
|
OPTIONS_DEFINE= SSL LDAP
|
|
OPTIONS_DEFAULT= SSL
|
|
OPTIONS_SUB= yes
|
|
|
|
DEMO_DIRS+= auth
|
|
DEMO_DIRS+= autobahn
|
|
DEMO_DIRS+= cert
|
|
DEMO_DIRS+= com
|
|
DEMO_DIRS+= dispatch
|
|
DEMO_DIRS+= dowload_manager
|
|
DEMO_DIRS+= hello_world
|
|
DEMO_DIRS+= hello_wsdl
|
|
DEMO_DIRS+= hotplug
|
|
DEMO_DIRS+= interoplab
|
|
DEMO_DIRS+= jabber_demo
|
|
DEMO_DIRS+= multiple_sessions
|
|
DEMO_DIRS+= res_demo
|
|
DEMO_DIRS+= soap_demo
|
|
DEMO_DIRS+= soap_disp
|
|
DEMO_DIRS+= soap_vs
|
|
DEMO_DIRS+= split
|
|
DEMO_DIRS+= test_mail
|
|
DEMO_DIRS+= text_input
|
|
DEMO_DIRS+= upload
|
|
DEMO_DIRS+= vh_demo
|
|
DEMO_DIRS+= web_block
|
|
DEMO_DIRS+= web_block_ajax
|
|
DEMO_DIRS+= web_block_ajax_templates
|
|
DEMO_DIRS+= web_elements
|
|
DEMO_DIRS+= web_mail
|
|
DEMO_DIRS+= websockets
|
|
DEMO_DIRS+= wps
|
|
DEMO_DIRS+= ws
|
|
DEMO_DIRS+= ws_candy
|
|
DEMO_DIRS+= zdemo
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MSSL}
|
|
CONF_ARGS+= SOCKET=openssl
|
|
DEMO_DIRS+= agent
|
|
DEMO_DIRS+= runme
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLDAP}
|
|
CONF_ARGS+= LDAP=true
|
|
DEMO_DIRS+= test_ldap
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|@PREFIX@|${LOCALBASE}|g' \
|
|
${WRKSRC}/demos/test_ldap/test_ldap.gpr
|
|
@${REINPLACE_CMD} -e 's| setup_tp | |' ${WRKSRC}/makefile
|
|
|
|
do-configure:
|
|
${MKDIR} ${WRKSRC}/.build/native/debug/static/obj
|
|
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
|
|
${GMAKE} setup ${CONF_ARGS}
|
|
|
|
do-build:
|
|
.for dd in ${DEMO_DIRS}
|
|
@${ECHO_MSG} "=== BUILD ${dd} ==="
|
|
cd ${WRKSRC}/demos/${dd} && ${SETENV} ${MAKE_ENV} ${GMAKE}
|
|
.endfor
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/templates \
|
|
${STAGEDIR}${EXAMPLESDIR}/images
|
|
.for dd in ${DEMO_DIRS}
|
|
${FIND} ${WRKSRC}/demos/${dd} -type f -perm -0001 \
|
|
-exec ${INSTALL} {} ${STAGEDIR}${EXAMPLESDIR}/ \;
|
|
.endfor
|
|
cd ${WRKSRC} && \
|
|
${COPYTREE_SHARE} web_elements ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/demos/runme/aws_*.png \
|
|
${STAGEDIR}${EXAMPLESDIR}/images
|
|
${INSTALL_DATA} ${WRKSRC}/demos/web_mail/*html \
|
|
${STAGEDIR}${EXAMPLESDIR}/templates
|
|
${INSTALL_DATA} ${FILESDIR}/templates.tads \
|
|
${STAGEDIR}${EXAMPLESDIR}/templates
|
|
|
|
.include <bsd.port.mk>
|