blob: be5a0f789b32770d60d6cf21dfeeef2d986ad050 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#
# Ports collection makefile for: py-lucene
# Date created: Nov 2, 2006
# Whom: Frank J. Laszlo <laszlof@vonostingroup.com>
#
# $FreeBSD$
#
PORTNAME= PyLucene
PORTVERSION= 2.0.0
PATCHSET= -3
CATEGORIES= devel python java
MASTER_SITES= http://downloads.osafoundation.org/PyLucene/src/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-src-${PORTVERSION}${PATCHSET}
MAINTAINER= laszlof@vonostingroup.com
COMMENT= A GCJ-compiled version of Java Lucene integrated with Python
BUILD_DEPENDS+= ${LOCALBASE}/libdata/ldconfig/gcc41-withgcjawt:${PORTSDIR}/lang/gcc41-withgcjawt
BUILD_DEPENDS+= ant:${PORTSDIR}/devel/apache-ant
RUN_DEPENDS+= ${LOCALBASE}/libdata/ldconfig/gcc41-withgcjawt:${PORTSDIR}/lang/gcc41-withgcjawt
USE_PYTHON= yes
USE_JAVA= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
OPTIONSFILE?= ${PORT_DBDIR}/${PORTNAME}/options
OPTIONS= BDB "Compile with support for Berkley DB" Off
.include <bsd.port.pre.mk>
_GCC_LIBDIR!= (cd ${PORTSDIR}/lang/gcc41;make -V TARGLIB)
GCC_LIBDIR= ${_GCC_LIBDIR:S/${PREFIX}/${LOCALBASE}/}
MAKE_ARGS+= PREFIX=${PREFIX} PREFIX_PYTHON=${LOCALBASE} GCJ_HOME=${LOCALBASE} \
GCJ_LIBDIR=${GCC_LIBDIR} CC=${LOCALBASE}/bin/gcc41 CXX=${LOCALBASE}/bin/g++41 \
JCC=${LOCALBASE}/bin/gcj41 JCCH=${LOCALBASE}/bin/gcjh41 PYTHON=${PYTHON_CMD} ANT=${ANT} \
LDFLAGS+=-L${LOCALBASE}/lib
.if defined(WITH_BDB)
BROKEN= Will not compile with BDB support
REAL_BDB_VER= ${BDB_VER:C/([0-9])([0-9])/\1.\2/g}
_BDB_WRKSRC!= (cd ../../databases/db44;make -V WRKSRC)
BDB_WRKSRC= ${_BDB_WRKSRC:S/\/build_unix//}
MAKE_ARGS+= DB=${BDB_WRKSRC} PREFIX_DB=${LOCALBASE} DB_VER=${REAL_BDB_VER} DB_LIB_VER=${REAL_BDB_VER}
USE_BDB= 44
BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/databases/db44:extract
.endif
.include <bsd.port.post.mk>
|