diff options
author | sada <sada@FreeBSD.org> | 2002-11-13 09:42:44 +0800 |
---|---|---|
committer | sada <sada@FreeBSD.org> | 2002-11-13 09:42:44 +0800 |
commit | d85ffceb0c53571ca1c64b1ee1e58c625eee4b8a (patch) | |
tree | e5aef6a276c21c8cb08e58245485901c47b2b4d1 /databases | |
parent | 94c5a771fbffad1c61328981e099e65911039324 (diff) | |
download | freebsd-ports-gnome-d85ffceb0c53571ca1c64b1ee1e58c625eee4b8a.tar.gz freebsd-ports-gnome-d85ffceb0c53571ca1c64b1ee1e58c625eee4b8a.tar.zst freebsd-ports-gnome-d85ffceb0c53571ca1c64b1ee1e58c625eee4b8a.zip |
fix for different tcl versions
PR: ports/42010
Submitted by: unknown -- see the PR
Approved by: maintainer
Diffstat (limited to 'databases')
-rw-r--r-- | databases/postgresql-tcltk/Makefile | 10 | ||||
-rw-r--r-- | databases/postgresql-tcltk/files/patch-libpgtcl | 9 |
2 files changed, 17 insertions, 2 deletions
diff --git a/databases/postgresql-tcltk/Makefile b/databases/postgresql-tcltk/Makefile index 153eaed06295..714339482ee2 100644 --- a/databases/postgresql-tcltk/Makefile +++ b/databases/postgresql-tcltk/Makefile @@ -26,13 +26,19 @@ CONFIGURE_ARGS= --with-tcl \ TCL_INCDIR= ${LOCALBASE}/include/tcl${TCLVERSION} TCLCONFIG= ${LOCALBASE}/lib/tcl${TCLVERSION} MAKE_ENV+= TCL_INCDIR=${TCL_INCDIR} +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 +CONFIGURE_ARGS+= --without-tk INCDIRS= ${TCL_INCDIR} PLIST_SUB+= TK="@comment " .else -CONFIGURE_ARGS+= --with-tkconfig="${TKCONFIG}" +CONFIGURE_ARGS+= --with-tkconfig="${TKCONFIG}" TK_INCDIR= ${LOCALBASE}/include/tk${TCLVERSION} CONFIGURE_ENV+= WISH=${LOCALBASE}/bin/wish${TCLVERSION} LIB_DEPENDS+= tk${TCLVERSION:S/.//}:${PORTSDIR}/x11-toolkits/tk${TCLVERSION:S/.//} diff --git a/databases/postgresql-tcltk/files/patch-libpgtcl b/databases/postgresql-tcltk/files/patch-libpgtcl new file mode 100644 index 000000000000..831a4622f761 --- /dev/null +++ b/databases/postgresql-tcltk/files/patch-libpgtcl @@ -0,0 +1,9 @@ +--- src/interfaces/libpgtcl/Makefile Thu May 10 21:46:33 2001 ++++ src/interfaces/libpgtcl/Makefile Fri Mar 29 05:11:10 2002 +@@ -26,5 +26,5 @@ + # to be referenced separately to keep (broken) linkers happy. (This is + # braindead; users of libpq should not need to know what it depends on.) +-SHLIB_LINK+= $(filter -L%, $(LDFLAGS)) $(filter -lcrypt, $(LIBS)) ++SHLIB_LINK+= $(filter -L%, $(LDFLAGS)) $(filter -lcrypt -L% -ltcl83 -ltcl84, $(LIBS)) + + all: submake all-lib |