aboutsummaryrefslogtreecommitdiff
path: root/databases/postgresql-tcltk/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql-tcltk/Makefile')
-rw-r--r--databases/postgresql-tcltk/Makefile30
1 files changed, 11 insertions, 19 deletions
diff --git a/databases/postgresql-tcltk/Makefile b/databases/postgresql-tcltk/Makefile
index 38d1e28b7d5c..84f960fc845e 100644
--- a/databases/postgresql-tcltk/Makefile
+++ b/databases/postgresql-tcltk/Makefile
@@ -4,31 +4,23 @@
#
# $FreeBSD$
#
-POSTGRESQL_PORT?= databases/postgresql7
-PORTNAME= postgresql
-PORTVERSION!= cd ${.CURDIR}/../../${POSTGRESQL_PORT} && ${MAKE} -V PORTVERSION
-PORTREVISION?= 0
-CATEGORIES= databases tcl83 tk83
-MASTER_SITES= ${MASTER_SITE_PGSQL}
-MASTER_SITE_SUBDIR!= cd ${.CURDIR}/../../${POSTGRESQL_PORT} && ${MAKE} -V MASTER_SITE_SUBDIR
+PORTREVISION= 0
+CATEGORIES= databases tcl${TCLVERSION:S/.//}
PKGNAMESUFFIX= -tcltk
-DISTFILES!= cd ${.CURDIR}/../../${POSTGRESQL_PORT} && ${MAKE} -V DISTFILES
-DIST_SUBDIR= postgresql
MAINTAINER= girgen@pingpong.net
COMMENT= An TCL interface to the database PostgreSQL, including a tk GUI
+POSTGRESQL_PORT?= databases/postgresql7
+POSTGRESQL_SUBPORT=YES
+.include <${.CURDIR}/../../${POSTGRESQL_PORT}/Makefile>
+
LIB_DEPENDS= tcl${TCLVERSION:S/.//}:${PORTSDIR}/lang/tcl${TCLVERSION:S/.//} \
pq:${PORTSDIR}/${POSTGRESQL_PORT}
-MD5_FILE= ${.CURDIR}/../../${POSTGRESQL_PORT}/distinfo
-
-USE_GMAKE= yes
-GNU_CONFIGURE= yes
-
# you can use "make TCLVERSION=8.4" or similar for your favourite tcl version
-TCLVERSION?= 8.3
+TCLVERSION?= 8.4
PLIST_SUB+= TCLVERSION=${TCLVERSION}
CONFIGURE_ARGS= --with-tcl \
--with-tclconfig=${TCLCONFIG} \
@@ -47,10 +39,6 @@ WITHOUT_TK= yes
CONFIGURE_ENV+= LIBS="-lm -L${LOCALBASE}/lib -ltcl${TCLVERSION:S/.//}" \
CFLAGS=-DPGTCL_USE_TCLOBJ
-.if defined(WITHOUT_X11)
-WITHOUT_TK= yes
-.endif
-
.if defined(WITHOUT_TK)
CONFIGURE_ARGS+= --without-tk
INCDIRS= ${TCL_INCDIR}
@@ -63,8 +51,12 @@ LIB_DEPENDS+= tk${TCLVERSION:S/.//}:${PORTSDIR}/x11-toolkits/tk${TCLVERSION:S/./
TKCONFIG= ${LOCALBASE}/lib/tk${TCLVERSION}
INCDIRS= ${TCL_INCDIR}:${TK_INCDIR}
PLIST_SUB+= TK=""
+CATEGORIES+= tk${TCLVERSION:S/.//}
.endif
+pre-build:
+ cd ${WRKSRC}/src/port; ${GMAKE}
+
do-build:
@ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/bin/pgtclsh
@ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/interfaces/libpgtcl