diff --git a/databases/p5-postgresql-plperl/Makefile b/databases/p5-postgresql-plperl/Makefile index 4e99c9adf953..2f459f2c0ad7 100644 --- a/databases/p5-postgresql-plperl/Makefile +++ b/databases/p5-postgresql-plperl/Makefile @@ -1,28 +1,29 @@ # New ports collection makefile for: PostgreSQL PL/Perl # Date created: January 14, 2002 # Whom: Palle Girgensohn # # $FreeBSD$ # PORTNAME= postgresql-plperl CATEGORIES= databases perl5 PKGNAMEPREFIX= p5- MAINTAINER= girgen@pingpong.net +POSTGRESQL_PORT?= databases/postgresql7 POSTGRESQL_SUBPORT=YES -.include <${.CURDIR}/../postgresql7/Makefile> +.include <${PORTSDIR}/${POSTGRESQL_PORT}/Makefile> -RUN_DEPENDS= postgres:${PORTSDIR}/databases/postgresql7 +RUN_DEPENDS= postgres:${PORTSDIR}/${POSTGRESQL_PORT} USE_PERL5= yes CONFIGURE_ARGS= --with-perl MAKE_ARGS+= -C src/pl/plperl MAKEFILE= GNUmakefile post-install: @ ${CAT} ${PKGMESSAGE} .include diff --git a/databases/postgresql-pltcl/Makefile b/databases/postgresql-pltcl/Makefile index b54b45ebb9b9..417b8f594592 100644 --- a/databases/postgresql-pltcl/Makefile +++ b/databases/postgresql-pltcl/Makefile @@ -1,33 +1,34 @@ # New ports collection makefile for: PostgreSQL PL/Tcl # Date created: January 14, 2002 # Whom: Palle Girgensohn # # $FreeBSD$ # PORTNAME= postgresql-pltcl CATEGORIES= databases tcl83 MAINTAINER= girgen@pingpong.net +POSTGRESQL_PORT?= databases/postgresql7 POSTGRESQL_SUBPORT=YES -.include <${.CURDIR}/../postgresql7/Makefile> +.include <${PORTSDIR}/${POSTGRESQL_PORT}/Makefile> LIB_DEPENDS= tcl${TCLVERSION:S/.//}:${PORTSDIR}/lang/tcl${TCLVERSION:S/.//} -RUN_DEPENDS= postgres:${PORTSDIR}/databases/postgresql7 +RUN_DEPENDS= postgres:${PORTSDIR}/${POSTGRESQL_PORT} # you can use "make TCLVERSION=8.4" or similar for your favourite tcl version TCLVERSION?= 8.3 CONFIGURE_ARGS= --with-tcl --without-tk \ --with-tclconfig="${TCLCONFIG}" \ --with-includes="${TCL_INCDIR}" TCL_INCDIR= ${LOCALBASE}/include/tcl${TCLVERSION} TCLCONFIG= ${LOCALBASE}/lib/tcl${TCLVERSION} MAKE_ARGS+= -C src/pl/tcl MAKE_ENV+= TCL_INCDIR=${TCL_INCDIR} post-install: @ ${CAT} ${PKGMESSAGE} .include