blob: a3ff3cba8975646c318cd31ec204cf1d3aae29e5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Created by: thinker <thinker@branda.to>
PORTNAME= clearsilver
PORTVERSION= 0.10.5
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.clearsilver.net/downloads/
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast, powerful, and language-neutral template system
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-apache --disable-perl --disable-ruby \
--disable-java --disable-csharp --disable-python
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
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/cs*
.include <bsd.port.mk>
|