diff options
author | Mikhail Teterin <mi@FreeBSD.org> | 2001-02-07 22:45:36 +0000 |
---|---|---|
committer | Mikhail Teterin <mi@FreeBSD.org> | 2001-02-07 22:45:36 +0000 |
commit | 5bb98992bfedc51399eb0d4e7c45bd08dc41edc9 (patch) | |
tree | f6ea7af478b3daf59cf43fc908c41d5170fd7d0f /graphics/gdtclft | |
parent | cf390065f5ff18d3571054d68a6a324e1baf0d84 (diff) |
Notes
Diffstat (limited to 'graphics/gdtclft')
-rw-r--r-- | graphics/gdtclft/files/Makefile.bsd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/graphics/gdtclft/files/Makefile.bsd b/graphics/gdtclft/files/Makefile.bsd index f9a16cd9919f..da8d1a98b4e6 100644 --- a/graphics/gdtclft/files/Makefile.bsd +++ b/graphics/gdtclft/files/Makefile.bsd @@ -9,8 +9,16 @@ SRCS = gdhandle.c gdCmd.c PREFIX ?=/usr/local TCL_VER ?=8.2 +.if exists(${PREFIX}/lib/tcl${TCL_VER}/tclConfig.sh) +# If for some reason the file does not exist -- make the best guess. In +# reality, it will exist by the time we are actually doing the build, so +# the quality of the guess does not matter. But we still try well. -mi TCL_STUB_LIB_SPEC!= . ${PREFIX}/lib/tcl${TCL_VER}/tclConfig.sh; \ echo $$TCL_STUB_LIB_SPEC +.else +TCL_STUB_LIB_SPEC= -L${PREFIX}/lib -ltclstub${TCL_VER:S/.//} +.endif + LDADD = -L${PREFIX}/lib -lgd -lttf -lpng -lz -lm ${TCL_STUB_LIB_SPEC} CFLAGS +=-I${PREFIX}/include/tcl${TCL_VER} -I${PREFIX}/include/gd |