Dear all,

I've been trying to create a port for PostgreSQL-plJava, I've tried to copy
the same structure as in postgresql-pl*, however these seem to be slave
ports, and I can't find any adequate information in the portershandbook on
how to handle these.  That's why I turn to you my friends. Is there any
documentation you can point me to to finish this port?

Kind regards, Gabor

# New ports collection makefile for: PostgreSQL PL/Java
# Date created: September 25, 2007
# Whom: G.V. Tjong A Hung <[EMAIL PROTECTED]>
#
# $FreeBSD$
#

PORTNAME= postgresql
#PORTVERSION= 1.3.0
CATEGORIES= databases java
PKGNAMESUFFIX= -pljava

MAINTAINER= [EMAIL PROTECTED]
COMMENT= A module for using Java to write SQL functions

RUN_DEPENDS= postgres:${PORTSDIR}/${POSTGRESQL_PORT}
MASTERDIR= ${.CURDIR}/../postgresql${PGSQL_VER}-server
MASTER_SITES= ${MASTER_SITE_PGSQL}
MASTER_SITE_SUBDIR=projects/pgFoundry/pljava/
#ftp://ftp2.nl.postgresql.org/mirror/postgresql/projects/pgFoundry/pljava/
#http://pgfoundry.org/frs/download.php/966/pljava-src-1.3.0.tar.gz
#http://wwwmaster.postgresql.org/redir?setmir=107&typ=f&url=
ftp://ftp2.nl.postgresql.org/mirror/postgresql/projects/pgFoundry/pljava/pljava-src-1.3.0.tar.gz
#http://wwwmaster.postgresql.org/download/mirrors-ftp?file=projects/pgFoundry/pljava/pljava-
src-1.3.0.tar.gz
DISTNAME= pljava-src-${PORTVERSION}

# The following options are recognized (aside from normal options like
# CFLAGS etc.)
#
# PGSQLDIR=<pgsql root> For old style (not pgxs based) compilation
# USE_GCJ=1 Builds a shared object file containing both
# C and Java code. Requires GCJ 3.4 or later.

# can't include <bsd.port.pre.mk> in a slave port
# so set these instead:
LOCALBASE?= /usr/local
SED?= /usr/bin/sed

# Setting/finding PostgreSQL version we want.
.if exists(${LOCALBASE}/bin/postmaster)
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | ${SED} -n
's/.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
.elif exists(${LOCALBASE}/bin/pg_config)
PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | ${SED} -n
's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
.else
PGSQL_VER= ${DEFAULT_PGSQL_VER}
.endif

USE_PYTHON= yes
CONFIGURE_ARGS= --with-python

BUILD_DIRS= src/pl/pljava
SLAVE_ONLY= yes

POSTGRESQL_PORT=databases/postgresql${PGSQL_VER}-server

.include "${MASTERDIR}/Makefile"


-- 
"If you don't know where you are going, any road will take you there" –
George Harrison
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to