blob: 57e2ca6d9321ed3b31b7bdb51608467ee8d169dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# $NetBSD: Makefile,v 1.21 2019/04/26 14:12:47 maya Exp $
DISTNAME= xmlada-${XMLADA_VERS}
PKGREVISION= 5
CATEGORIES= textproc
MASTER_SITES= http://downloads.dragonlace.net/src/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://libre.adacore.com/libre/tools/xmlada/
COMMENT= Adacore XML suite for the Ada language
LICENSE= gnu-gpl-v3
XMLADA_VERS= 4.4.0.0
GNU_CONFIGURE= yes
USE_LANGUAGES= c ada
USE_TOOLS= gmake makeinfo
MAKE_JOBS_SAFE= no
# Link options were added for the sax, dom, schema, and input_sources libraries
# "-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 docs
SUBST_STAGE.rpath= pre-configure
SUBST_MESSAGE.rpath= Adjust rpaths of shared libraries
SUBST_FILES.rpath= sax/sax.gpr
SUBST_FILES.rpath+= dom/dom.gpr
SUBST_FILES.rpath+= input_sources/input_sources.gpr
SUBST_FILES.rpath+= schema/schema.gpr
SUBST_SED.rpath= -e "s,@ADDITIONAL_RPATH@,${PREFIX}/lib,"
SUBST_STAGE.docs= pre-configure
SUBST_MESSAGE.docs= Set build xmlada documentation option
SUBST_FILES.docs= Makefile.in
SUBST_SED.docs= -e 's/^all: \(.*\)/all: \1 docs/g'
MAKE_ENV+= SPHINXBUILD=${PREFIX}/bin/sphinx-build${PYVERSSUFFIX}
DESTSTATIC= ${DESTDIR}${PREFIX}/lib/xmlada/static
DEPENDS+= ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx
PYTHON_VERSIONS_INCOMPATIBLE= 36 37 # not yet ported as of 4.4.0.0
post-install:
# There is no reason to install sphinx source files
${RM} -rf ${DESTDIR}${PREFIX}/share/doc/xmlada/_sources
# Fix static library permissions
${CHMOD} a-x ${DESTSTATIC}/libxmlada_dom.a \
${DESTSTATIC}/libxmlada_input_sources.a \
${DESTSTATIC}/libxmlada_sax.a \
${DESTSTATIC}/libxmlada_schema.a \
${DESTSTATIC}/libxmlada_unicode.a
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
|