freebsd-ports/textproc/py-libtre/Makefile
Li-Wen Hsu 7c579589e3 Add py-libtre 0.7.5, python interface for the tre regular expressions
library.

PR:		ports/113446
Submitted by:	bf <bf2006a at yahoo.com>
2007-12-31 21:45:21 +00:00

38 lines
890 B
Makefile

# Ports collection makefile for: py-libtre
# Date created: 6 June 2007
# Whom: bf <bf2006a@yahoo.com>
#
# $FreeBSD$
#
PORTNAME= libtre
PORTVERSION= 0.7.5
CATEGORIES= textproc python
MASTER_SITES= http://laurikari.net/tre/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= tre-${PORTVERSION}
MAINTAINER= bf2006a@yahoo.com
COMMENT= Python interface for the tre regular expressions library
LIB_DEPENDS= tre.6:${PORTSDIR}/textproc/libtre
USE_BZIP2= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= tre
BUILD_WRKSRC= ${WRKSRC}/python
INSTALL_WRKSRC= ${WRKSRC}/python
CFLAGS+= -I${LOCALBASE}/include/ -L${LOCALBASE}/lib/
.if defined(WITH_OPTIMIZED_CFLAGS)
CFLAGS+= -Wuninitialized -ffast-math -finline-functions \
-fomit-frame-pointer -fexpensive-optimizations \
-fforce-mem -fforce-addr -O3
.endif
PLIST_FILES= %%PYTHON_SITELIBDIR%%/tre.so
.include <bsd.port.mk>