freebsd-ports/devel/libredblack/Makefile
Antoine Brodin 1d00aa2b00 - Those ports fail to build with python3
- Add some explicit FLAVOR to dependencies where needed
2017-12-11 16:54:20 +00:00

37 lines
763 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:2.7
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>