opnsense-ports/devel/loki/Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

42 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>