mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
44eaadcb75
Where possible, correct a few instances where PORTDOCS was being used to flag stuff in EXAMPLESDIR. For some ports, mostly those owned by ruby@, PORTDOCS is applied to pretty much everything whether it's documentation or example.
43 lines
954 B
Makefile
43 lines
954 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:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for i in ${DOCS}
|
|
${INSTALL_MAN} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
BROKEN= Does not compile on sparc64: TLS not supported
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|