openbsd-ports/www/clearsilver/Makefile
sthen 5cafe8835d move WANTLIB+=${MODPY_WANTLIB} within the .if ${FLAVOR:L:Mpython} block;
no package change as the python module is only included if the python
flavour is selected (and unless that's included, MODPY_WANTLIB is blank),
but it's clearer this way.

side-note, python bindings should probably be split into a subpackage
sometime, there seems to be no need to have a separate flavour for this.
2011-06-15 23:33:00 +00:00

53 lines
1003 B
Makefile

# $OpenBSD: Makefile,v 1.22 2011/06/15 23:33:00 sthen Exp $
SHARED_ONLY= Yes
COMMENT= fast, powerful, and language-neutral HTML template system
DISTNAME= clearsilver-0.10.4
EPOCH= 0
REVISION= 5
CATEGORIES= www net
HOMEPAGE= http://www.clearsilver.net/
MAINTAINER= Markus Friedl <markus@openbsd.org>
# Apache 1
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c pthread z
MASTER_SITES= ${HOMEPAGE}/downloads/
USE_GMAKE= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --disable-csharp \
--disable-java \
--disable-ruby \
LDFLAGS="-L${LOCALBASE}/lib"
USE_GROFF = Yes
FLAVORS+= python
FLAVOR?=
.if ${FLAVOR:L:Mpython}
MODULES= lang/python
CONFIGURE_ARGS+= --with-python=${MODPY_BIN}
WANTLIB+= ${MODPY_WANTLIB}
.else
CONFIGURE_ARGS+= --disable-python
.endif
pre-configure:
@perl -pi -e 's|%%WRKSRC%%|${WRKSRC}|g' ${WRKSRC}/python/setup.py
do-regress:
@cd ${WRKSRC}/perl && ${MAKE_PROGRAM} test
.include <bsd.port.mk>