The new gprbuild configuration files must have a slight difference because it can no longer work with the standard buildlink. Passing an additional directory in the pass will fix it though.
71 lines
2.4 KiB
Makefile
71 lines
2.4 KiB
Makefile
# $NetBSD: Makefile,v 1.16 2014/04/30 16:30:33 marino Exp $
|
|
#
|
|
|
|
DISTNAME= aws-${AWS_VERSION}
|
|
PKGREVISION= 4
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://downloads.dragonlace.net/src/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= draco@marino.st
|
|
HOMEPAGE= http://libre.adacore.com/libre/tools/aws/
|
|
COMMENT= Adacore Ada Web Server and framework
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
AWS_VERSION= 3.1.0.0
|
|
USE_TOOLS+= gmake makeinfo sed awk
|
|
USE_LANGUAGES= c ada c++ fortran
|
|
|
|
# Note: c++ and fortran aren't used, but gprconfig probes for them.
|
|
# When that happens, pkgsrc wrapper emits a warning message which causes
|
|
# gprconfig to crash due to output text not matching expected regexp
|
|
# Adding c++ and fortran to USE_LANGUAGES avoids this issue.
|
|
|
|
.include "options.mk"
|
|
|
|
MY_MAKE_ENV+= ADA_PROJECT_PATH=${PREFIX}/lib/gnat
|
|
MY_MAKE_ENV+= AWK=awk
|
|
MY_MAKE_ENV+= PATH=${PREFIX}/gcc-aux/bin:${PATH}
|
|
MY_CONF_ENV+= PATH=${PREFIX}/gcc-aux/bin:${PATH}
|
|
CONFIGURE_ARGS+= LPATH=${PREFIX}/lib ZPATH=/usr/lib
|
|
|
|
# Link options were added for the aws library
|
|
# "-R" option disables all rpaths except adalib and compiler libs. This is
|
|
# done because by default the rpaths will points at the WRKOBJDIR because
|
|
# it doesn't support the concept of DESTDIR.
|
|
# "-Wl,-R" adds a second rpath string.
|
|
# -Wl,-rpath is a better choice, but synonym -Wl,-R works on all BSD and SunOS
|
|
SUBST_CLASSES+= rpath
|
|
SUBST_STAGE.rpath= pre-configure
|
|
SUBST_MESSAGE.rpath= Adjust rpaths of shared libraries
|
|
SUBST_FILES.rpath= src/src.gpr include/include.gpr \
|
|
demos/test_ldap/test_ldap.gpr
|
|
SUBST_SED.rpath= -e "s,@ADDITIONAL_RPATH@,${ADDITIONAL_RPATH}," \
|
|
-e "s,@PREFIX@,${PREFIX},g"
|
|
ADDITIONAL_RPATH= ${PREFIX}/lib:${PREFIX}/lib/aws/relocatable
|
|
|
|
GENERATE_PLIST= cd ${DESTDIR}${PREFIX};
|
|
GENERATE_PLIST+= ${FIND} * -type f | ${SORT};
|
|
|
|
do-configure:
|
|
cd ${WRKSRC} && ${SETENV} ${MY_CONF_ENV} \
|
|
${GMAKE} setup ${CONFIGURE_ARGS}
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${SETENV} ${MY_MAKE_ENV} \
|
|
${GMAKE} build build_doc
|
|
|
|
do-test: install
|
|
cd ${WRKSRC}/regtests && ${SETENV} ${MY_MAKE_ENV} \
|
|
python${PYVERSSUFFIX} testsuite.py
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${SETENV} ${INSTALL_ENV} ${GMAKE} install
|
|
@cd ${DESTDIR}/${PREFIX} && ${FIND} * -type d -empty -exec rmdir {} \;
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../lang/python/pyversion.mk"
|
|
.include "../../devel/gnatpython/buildlink3.mk"
|
|
.include "../../textproc/xmlada/buildlink3.mk"
|
|
.include "../../devel/gprbuild-aux/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|