aboutsummaryrefslogtreecommitdiff
path: root/lang/tcl80
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2005-02-12 13:19:47 +0000
committerDavid Schultz <das@FreeBSD.org>2005-02-12 13:19:47 +0000
commit3e34029c2ea0aaad41f948ba61f734598585c972 (patch)
treeaa626977f6d195f8f6989f7b6b171e6c8e456dc7 /lang/tcl80
parent0fe0e059f080db614ecbff846b23693f03f8dcad (diff)
downloadports-3e34029c2ea0aaad41f948ba61f734598585c972.tar.gz
ports-3e34029c2ea0aaad41f948ba61f734598585c972.zip
Notes
Diffstat (limited to 'lang/tcl80')
-rw-r--r--lang/tcl80/Makefile3
-rw-r--r--lang/tcl80/files/Makefile.lib5
2 files changed, 6 insertions, 2 deletions
diff --git a/lang/tcl80/Makefile b/lang/tcl80/Makefile
index 3b6280aa1984..589164242772 100644
--- a/lang/tcl80/Makefile
+++ b/lang/tcl80/Makefile
@@ -55,7 +55,8 @@ post-configure:
pre-build:
@cd ${WRKSRC} && ${MAKE} -f Makefile.lib PREFIX=${PREFIX} \
- SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR}
+ SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} \
+ OSVERSION=${OSVERSION}
post-install:
${LN} -sf ${TCL_LIB_FILE} ${PREFIX}/lib/${TCL_LIB}
diff --git a/lang/tcl80/files/Makefile.lib b/lang/tcl80/files/Makefile.lib
index 777fbd7a4d44..af17b230347f 100644
--- a/lang/tcl80/files/Makefile.lib
+++ b/lang/tcl80/files/Makefile.lib
@@ -7,13 +7,16 @@ CFLAGS+= -I. -I./../generic \
-DHAVE_GETCWD=1 -DNO_VALUES_H=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1\
-DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1\
-DHAVE_TM_GMTOFF=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1\
- -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1\
+ -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1\
-DTCL_SHLIB_EXT=\".so\" \
-DHAVE_SYS_FILIO_H=1 \
-DTCL_LIBRARY=\"${TCL_LIBRARY}\" \
-DTCL_PACKAGE_PATH="\"${PREFIX}/lib\"" \
-DNO_UNION_WAIT
+.if ${OSVERSION} < 600011
+CFLAGS+= -DNEED_MATHERR=1
+.endif
GENERIC_DIR= ../generic