aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/py-libtre/Makefile
blob: 8861cc45672ed7a9d6c7ccf748c22f652275a988 (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
35
36
# Created by: bf <bf2006a@yahoo.com>
# $FreeBSD$

PORTNAME=   libtre
PORTVERSION=    0.8.0
PORTREVISION=   1
CATEGORIES= textproc python
MASTER_SITES=   http://laurikari.net/tre/ \
        LOCAL/bf
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   tre-${PORTVERSION}

MAINTAINER= bf@FreeBSD.org
COMMENT=    Python interface for the tre regular expressions library

LIB_DEPENDS=    tre.5:${PORTSDIR}/textproc/libtre

LICENSE=    BSD
LICENSE_FILE=   ${WRKSRC}/LICENSE
USE_BZIP2=  yes
USE_PYTHON= yes
USE_PYDISTUTILS=    yes
PYDISTUTILS_AUTOPLIST=  yes

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

.include <bsd.port.mk>