1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/devel/loki/Makefile
Alexey Dokuchaev a247b2f47d Do not abuse INSTALL_MAN when installing documentation, examples, and
other miscellaneous files that are not actually manual pages (part 2).
2018-01-11 14:18:01 +00:00

37 lines
841 B
Makefile

# Created by: Sun Chang-Ming
# $FreeBSD$
PORTNAME= loki
PORTVERSION= 0.1.7
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}-lib/Loki/Loki%20${PORTVERSION}
MAINTAINER= snnn119@gmail.com
COMMENT= C++ library of common design patterns
USES= gmake dos2unix
USE_LDCONFIG= yes
CXXFLAGS+= -Wno-return-type
DOCS= README CHANGES doc/flex/flex_string.html \
doc/yasli/Notes.txt \
doc/yasli/yasli.html
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} 's/bad_function_call/Loki::bad_function_call/g' \
${WRKSRC}/test/Function/FunctionTest.cpp
@${REINPLACE_CMD} -e '/CXXWARNFLAGS/s/$$/ ${CXXFLAGS}/g' \
-e 's/\$${PREFIX}/$${DESTDIR}$${PREFIX}/g' \
${WRKSRC}/Makefile.common
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>