Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Sep 2007 09:49:01 +0200
From:      "Gabor Tjong A Hung" <g.v.tjongahung@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   PostgreSQL-PL\Java
Message-ID:  <822946050709270049q7be7382bo900a6402776b4fee@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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 <gvtjongahung@users.sourceforge.net>
#
# $FreeBSD$
#

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

MAINTAINER=3D ports@FreeBSD.org
COMMENT=3D A module for using Java to write SQL functions

RUN_DEPENDS=3D postgres:${PORTSDIR}/${POSTGRESQL_PORT}
MASTERDIR=3D ${.CURDIR}/../postgresql${PGSQL_VER}-server
MASTER_SITES=3D ${MASTER_SITE_PGSQL}
MASTER_SITE_SUBDIR=3Dprojects/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=3D107&typ=3Df&url=3D
ftp://ftp2.nl.postgresql.org/mirror/postgresql/projects/pgFoundry/pljava/pl=
java-src-1.3.0.tar.gz
#http://wwwmaster.postgresql.org/download/mirrors-ftp?file=3Dprojects/pgFou=
ndry/pljava/pljava-
src-1.3.0.tar.gz
DISTNAME=3D pljava-src-${PORTVERSION}

# The following options are recognized (aside from normal options like
# CFLAGS etc.)
#
# PGSQLDIR=3D<pgsql root> For old style (not pgxs based) compilation
# USE_GCJ=3D1 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?=3D /usr/local
SED?=3D /usr/bin/sed

# Setting/finding PostgreSQL version we want.
.if exists(${LOCALBASE}/bin/postmaster)
PGSQL_VER!=3D ${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!=3D ${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=3D ${DEFAULT_PGSQL_VER}
.endif

USE_PYTHON=3D yes
CONFIGURE_ARGS=3D --with-python

BUILD_DIRS=3D src/pl/pljava
SLAVE_ONLY=3D yes

POSTGRESQL_PORT=3Ddatabases/postgresql${PGSQL_VER}-server

.include "${MASTERDIR}/Makefile"


--=20
"If you don't know where you are going, any road will take you there" =96
George Harrison



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?822946050709270049q7be7382bo900a6402776b4fee>