summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/dotconf++/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/devel/dotconf++/Makefile b/devel/dotconf++/Makefile
index 04527b55c362..2682ec94f118 100644
--- a/devel/dotconf++/Makefile
+++ b/devel/dotconf++/Makefile
@@ -7,16 +7,22 @@ CATEGORIES= devel
MASTER_SITES= SF \
http://voodoo.com.ua/dotconfpp/
-
MAINTAINER= ports@FreeBSD.org
COMMENT= Configuration file parser written in C++
+USES= compiler:env
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|<stdint.h>|<inttypes.h>|' \
${WRKSRC}/src/dotconfpp.h ${WRKSRC}/src/mempool.h
+.if ${COMPILER_TYPE} == "clang"
+ @${REINPLACE_CMD} -e 's|-fexpensive-optimizations||' \
+ ${WRKSRC}/src/example?/Makefile.in
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>