0be9a6a12a
In file included from xsd/xsd/xsd.cxx:5: In file included from /usr/include/c++/v1/map:480: In file included from /usr/include/c++/v1/__tree:15: In file included from /usr/include/c++/v1/iterator:417: In file included from /usr/include/c++/v1/__functional_base:15: In file included from /usr/include/c++/v1/type_traits:406: In file included from /usr/include/c++/v1/cstddef:38: libxsd-frontend/version:1:1: error: expected unqualified-id 2.0.0 ^ PR: 236192 Reported by: pkg-fallout Approved by: portmgr blanket
52 lines
1.6 KiB
Makefile
52 lines
1.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= xsd
|
|
PORTVERSION= 4.0.0
|
|
DISTVERSIONSUFFIX= +dep
|
|
PORTREVISION= 3
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.codesynthesis.com/download/${PORTNAME}/${PORTVERSION:R}/
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
|
COMMENT= W3C XML Schema to C++ translator
|
|
|
|
LICENSE= FLOSSE GPLv2
|
|
LICENSE_COMB= dual
|
|
LICENSE_NAME_FLOSSE= FLOSS Exception
|
|
LICENSE_FILE_FLOSSE= ${WRKSRC}/xsd/FLOSSE
|
|
LICENSE_PERMS_FLOSSE= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/build-0.3/abspath.make:devel/build
|
|
# libxsd-frontend should come from a separate port as well, but at the moment
|
|
# its distribution as a separate tarball is so poor that it does not even have
|
|
# a `make install'.
|
|
LIB_DEPENDS= libcutl.so:devel/libcutl \
|
|
libxerces-c.so:textproc/xerces-c3
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
ALL_TARGET= # no default target should be passed to gmake.
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
MAKEFILE= makefile
|
|
MAKE_ARGS= EXTERNAL_LIBCUTL=y \
|
|
install_prefix=${STAGEDIR}${PREFIX} \
|
|
install_man_dir=${STAGEDIR}${MANPREFIX}/man \
|
|
verbose=1
|
|
USES= compiler:c++11-lang gmake tar:bzip2
|
|
|
|
post-patch:
|
|
# Use devel/build instead of the port's bundled copy.
|
|
${RM} -r ${WRKSRC}/build-0.3
|
|
${LN} -s ${LOCALBASE}/include/build-0.3 ${WRKSRC}/build-0.3
|
|
# Avoid conflict with C++20 <version> by adding .txt suffix
|
|
@${MV} ${WRKSRC}/libxsd-frontend/version \
|
|
${WRKSRC}/libxsd-frontend/version.txt
|
|
|
|
post-install:
|
|
# Install examples into the right directory.
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${MV} ${STAGEDIR}${DOCSDIR}/examples/* ${STAGEDIR}${EXAMPLESDIR}
|
|
${RMDIR} ${STAGEDIR}${DOCSDIR}/examples
|
|
|
|
.include <bsd.port.mk>
|