freebsd-ports/devel/libredblack/Makefile
Marcus von Appen 89e07f4a18 - Convert ports of devel/ to USES=python
Approved by:	portmgr (implicit)
2014-10-20 16:04:12 +00:00

37 lines
759 B
Makefile

# Created by: smace@FreeBSD.org
# $FreeBSD$
PORTNAME= libredblack
PORTVERSION= 1.3
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= SF
MAINTAINER= rodrigo@FreeBSD.org
COMMENT= Library that provides the red-black balanced tree algorithm
LICENSE= GPLv2
USES= libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
.if defined(WITHOUT_PYTHON)
CONFIGURE_ARGS+= --without-rbgen
PLIST_SUB+= PYTHON="@comment "
.else
USES+= python
CONFIGURE_ARGS+= --with-python=${PYTHON_CMD}
PLIST_SUB+= PYTHON=""
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|^CFLAGS =.*$$|CFLAGS = @CFLAGS@|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|implemented.*Various||g' ${WRKSRC}/rbgen.in
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libredblack.so
.include <bsd.port.mk>