1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/textproc/webcpp/Makefile
Gerald Pfeifer c1952ad8ef Require GCC 3.4 or later instead of forcing GCC 3.2 for FreeBSD 4.x to
avoid extraneous dependencies on the no longer really maintained GCC 3.2.

Approved by:	chip-set@mail.ru (maintainer)
2005-05-08 17:04:03 +00:00

44 lines
1013 B
Makefile

# New ports collection makefile for: webcpp
# Date created: 12 May 2003
# Whom: Nosov Artem <chip-set@mail.ru>
#
# $FreeBSD$
#
PORTNAME= webcpp
PORTVERSION= 0.8.4
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= chip-set@mail.ru
COMMENT= Convert your source code to syntax highlighted HTML
.include <bsd.port.pre.mk>
USE_GCC= 3.4+
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
USE_REINPLACE= yes
.if defined(WANT_FINAL)
CONFIGURE_ARGS+= --enable-final
USE_GMAKE= yes
.endif
pre-patch:
${FIND} ${WRKSRC} -name '*.h' | ${XARGS} ${REINPLACE_CMD} \
's|IO->close()|if(IO) IO->close()|g'
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in AUTHORS COPYING README TODO docs.html
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>