8c97f4f1c9
GMGPL is always coupled with GPLv2.
55 lines
1.6 KiB
Makefile
55 lines
1.6 KiB
Makefile
# Created by: Rod Kay <rodakay@internode.on.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= simple_components
|
|
PORTVERSION= 4.8
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.dmitry-kazakov.de/ada/
|
|
DISTNAME= components_4_8
|
|
|
|
MAINTAINER= rodakay@internode.on.net
|
|
COMMENT= Simple Ada Components
|
|
|
|
LICENSE= GPLv2 GMGPL
|
|
LICENSE_COMB= multi
|
|
|
|
BUILD_DEPENDS= gprbuild:${PORTSDIR}/devel/gprbuild
|
|
|
|
USES= ada tar:tgz
|
|
DEST= ${STAGEDIR}${PREFIX}
|
|
NO_WRKSUBDIR= yes
|
|
|
|
CS= components
|
|
SV= ${CS}-connections_server
|
|
HS= ${SV}-http_server
|
|
PROJECT_LIST= strings_edit tables ${CS} ${CS}-sqlite ${CS}-odbc \
|
|
${CS}-gnutls ${SV} ${SV}-secure ${SV}-modbus \
|
|
${HS} ${HS}-sqlite_browser #${CS}-gnade ${CS}-apq
|
|
PLIST_SUB= ISC=include/${PORTNAME} LSC=lib/${PORTNAME} \
|
|
SV=${SV} HS=${HS} SSM=gnat-sockets-connection_state_machine \
|
|
SE=strings_edit PR=${CS}/parsers GN=${CS}/generic \
|
|
PT=${CS}/persistent OD=${CS}-odbc OB=${CS}/object
|
|
|
|
do-build:
|
|
.for PROJECT in ${PROJECT_LIST}
|
|
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gprbuild -P${PROJECT})
|
|
.endfor
|
|
|
|
do-install:
|
|
# Work around gprbuild's inability to handle separate package bodies
|
|
# Create a dummy file, otherwise none of strings_edit gets installed
|
|
${TOUCH} ${WRKSRC}/strings_edit-text_edit.o
|
|
.for PROJECT in ${PROJECT_LIST}
|
|
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gprinstall -p \
|
|
--prefix=${DEST} \
|
|
--project-subdir=${DEST}/lib/gnat \
|
|
--sources-subdir=${DEST}/include/${PORTNAME}/${PROJECT} \
|
|
--lib-subdir=${DEST}/lib/${PORTNAME}/${PROJECT} \
|
|
${PROJECT}.gpr)
|
|
.endfor
|
|
# end of workaround: remove dummy object file
|
|
${RM} ${WRKSRC}/strings_edit-text_edit.o
|
|
# Eject manifests, we don't use them
|
|
${RM} -r ${DEST}/lib/gnat/manifests
|
|
|
|
.include <bsd.port.mk>
|