freebsd-ports/lang/phc/Makefile
Dmitry Marakasov ad3bc4a882 - Fix build on 11.x+ (only add -fgnu89-inline to CFLAGS, not CXXFLAGS)
- Add LICENSE

Approved by:	portmgr blanket
2016-09-04 13:19:28 +00:00

25 lines
566 B
Makefile

# Created by: Conor McDermottroe <ports@mcdermottroe.com>
# $FreeBSD$
PORTNAME= phc
PORTVERSION= 0.1.7
CATEGORIES= lang
MASTER_SITES= http://www.phpcompiler.org/src/archive/
MAINTAINER= eg@fbsd.lt
COMMENT= Compiler for the PHP language
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/license/LICENSE
USES= gmake
GNU_CONFIGURE= yes
MAKE_ARGS= CFLAGS="${CFLAGS} -fgnu89-inline"
post-patch: .SILENT
${REINPLACE_CMD} 's/g++/$$CXX/' \
${WRKSRC}/phc_compile_plugin.in
${REINPLACE_CMD} 's/insert/this->&/' \
${WRKSRC}/include/phc/lib/List.h
.include <bsd.port.mk>