mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
162304d1ce
Reporeted by: erwin, pav
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# New ports collection makefile for: Ludia
|
|
# Date created: January 5, 2008
|
|
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ludia
|
|
PORTVERSION= 1.4.0
|
|
CATEGORIES= databases
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
|
|
MASTER_SITE_SUBDIR= ludia/28482
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
|
COMMENT= PostgreSQL extension for full-text search indexing
|
|
|
|
PGSQL_PORT= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/postmaster:${PGSQL_PORT} \
|
|
senna-cfg:${PORTSDIR}/textproc/senna
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/postmaster:${PGSQL_PORT} \
|
|
senna-cfg:${PORTSDIR}/textproc/senna
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_AUTOTOOLS= libtool:15
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# let configure find postgres stuff in non-standard places
|
|
CONFIGURE_ARGS+=--with-pgconfigdir=${LOCALBASE}/bin \
|
|
--with-pgbindir=${LOCALBASE}/bin \
|
|
--with-pgincludedir=${LOCALBASE}/include \
|
|
--with-pgincludeserverdir=${LOCALBASE}/include/postgresql/server \
|
|
--with-pglibdir=${LOCALBASE}/lib \
|
|
--with-pgpkglibdir=${LOCALBASE}/lib/postgresql \
|
|
--with-pgsharedir=${LOCALBASE}/share/postgresql
|
|
|
|
DEFAULT_PGSQL_VER?=82
|
|
|
|
# Setting/finding PostgreSQL version we want.
|
|
.if exists(${LOCALBASE}/bin/postmaster)
|
|
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
|
${SED} -En 's/.*PostgreSQL[^0-9]*([0-9]+)\.([0-9]+)\..*/\1\2/p'
|
|
.elif exists(${LOCALBASE}/bin/pg_config)
|
|
PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | \
|
|
${SED} -En 's/PostgreSQL[^0-9]*([0-9]*)\.([0-9]+)\..*/\1\2/p'
|
|
.else
|
|
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|