1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/www/clearsilver/Makefile
Jimmy Olgeni 96a38c7c3a Remove indefinite articles and trailing periods from COMMENT, plus
minor COMMENT typos and surrounding whitespace fixes. A few Makefiles
where not included as they contain Latin-1 characters that break
the Phabricator workflow. Category W.

CR:		D510
Approved by:	portmgr (bapt)
2014-08-06 09:11:57 +00:00

43 lines
1.3 KiB
Makefile

# Created by: thinker <thinker@branda.to>
# $FreeBSD$
PORTNAME= clearsilver
PORTVERSION= 0.10.5
CATEGORIES= www
MASTER_SITES= http://www.clearsilver.net/downloads/
MAINTAINER= clsung@FreeBSD.org
COMMENT= Fast, powerful, and language-neutral template system
GNU_CONFIGURE= yes
USES= gmake
CONFIGURE_ARGS= --disable-apache --disable-perl --disable-ruby \
--disable-java --disable-csharp
.if defined(WITH_PYTHON)
CONFIGURE_ARGS+= --with-python=${PYTHON_CMD}
USE_PYTHON= yes
PLIST_SUB+= PYTHON=""
PKGNAMESUFFIX= -python
.else
CONFIGURE_ARGS+= --disable-python
PLIST_SUB+= PYTHON="@comment "
.endif
post-patch:
@# Remove CFLAGS when building the python module, pydistfile is used
@# and will do the right thing.
@${REINPLACE_CMD} -E 's,(\$$\(PYTHON\)),CFLAGS="" \1,g' ${WRKSRC}/python/Makefile
@# insert -fPIC into CFLAGS to fix non-i386 builds
@${REINPLACE_CMD} -e 's|= @CFLAGS@|= @CFLAGS@ -fPIC|g' ${WRKSRC}/rules.mk.in
@# don't hardcode gcc for make depend
@${REINPLACE_CMD} -e '/Makefile.depends:/,/^$$/s/gcc/$$(CC)/' ${WRKSRC}/rules.mk.in
@# Set PYTHON_SITE
@${REINPLACE_CMD} -E 's|(PYTHON=\$$.*)|\1;PYTHON_SITE="${PYTHONPREFIX_SITELIBDIR}"|g' ${WRKSRC}/configure
@# Create the features.h files that are needed to build
@${ECHO_CMD} "/* Dummy file */" > ${WRKSRC}/features.h
@${ECHO_CMD} "/* Dummy file */" > ${WRKSRC}/cgi/features.h
.include <bsd.port.mk>