diff options
Diffstat (limited to 'databases/ludia/Makefile')
-rw-r--r-- | databases/ludia/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/databases/ludia/Makefile b/databases/ludia/Makefile new file mode 100644 index 000000000000..47d46e421e14 --- /dev/null +++ b/databases/ludia/Makefile @@ -0,0 +1,49 @@ +# 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 + +.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> |