freebsd-ports/textproc/tinyxml/Makefile
2021-04-06 16:31:07 +02:00

32 lines
718 B
Makefile

# Created by: Sergey Skvortsov <skv@protey.ru>
PORTNAME= tinyxml
PORTVERSION= 2.6.2
PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= SF
DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g}
MAINTAINER= ports@FreeBSD.org
COMMENT= Small C++ XML parser
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= compiler:c++11-lang uidfix
USE_LDCONFIG= YES
SHLIB_MAJOR= 3
PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
OPTIONS_DEFINE= DOCS PROFILE
OPTIONS_SUB= yes
post-patch:
${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.prev
@${SED} -e "s=%%SHLIB_MAJOR%%=${SHLIB_MAJOR}=g" \
${FILESDIR}/Makefile > ${WRKSRC}/Makefile
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>