aboutsummaryrefslogtreecommitdiff
path: root/devel/tcl-neo
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2004-04-12 18:26:49 +0000
committerMikhail Teterin <mi@FreeBSD.org>2004-04-12 18:26:49 +0000
commit332eeead313752161d9c6a45f867195ca140342a (patch)
tree650eeb40e034cfce517d1cfee0063980d9a3af29 /devel/tcl-neo
parent197420960b0e1fda6f86435f95d6be7824ce32ed (diff)
downloadports-332eeead313752161d9c6a45f867195ca140342a.tar.gz
ports-332eeead313752161d9c6a45f867195ca140342a.zip
Notes
Diffstat (limited to 'devel/tcl-neo')
-rw-r--r--devel/tcl-neo/Makefile11
-rw-r--r--devel/tcl-neo/files/Makefile.bsd6
2 files changed, 8 insertions, 9 deletions
diff --git a/devel/tcl-neo/Makefile b/devel/tcl-neo/Makefile
index 4e5b78a15da6..3de161433390 100644
--- a/devel/tcl-neo/Makefile
+++ b/devel/tcl-neo/Makefile
@@ -7,7 +7,7 @@
PORTNAME= neotcl
PORTVERSION= 8.2.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel tcl83
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=nws
@@ -28,21 +28,18 @@ WRKSRC= ${WRKDIR}/${SUBDIR}/generic
EXTRACT_AFTER_ARGS?= | ${TAR} -xf - ${SUBDIR}/generic ${SUBDIR}/neolibs
MAKEFILE= ${FILESDIR}/Makefile.bsd
-MAKE_ENV+= NEO_LIBRARY=${NEO_LIBRARY}
+TCL_VER?= 8.4
+MAKE_ENV+= NEO_LIBRARY=${NEO_LIBRARY} TCL_VER=${TCL_VER}
DDIR= ${PREFIX}/lib/tcl${TCLV}/Trf
post-build:
- cd ${WRKSRC}/../neolibs && ${ECHO_CMD} 'auto_mkindex . */*.tcl' | tclsh8.3
+ cd ${WRKSRC}/../neolibs && ${ECHO_CMD} 'auto_mkindex . */*.tcl' | tclsh${TCL_VER}
NEO_LIBRARY= ${PREFIX}/lib/neo8.2
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 502000
-BROKEN= "Broken pkg-plist"
-.endif
-
post-install:
${MKDIR} ${NEO_LIBRARY}
${CP} -Rp ${WRKSRC}/../neolibs/[a-z]* ${NEO_LIBRARY}
diff --git a/devel/tcl-neo/files/Makefile.bsd b/devel/tcl-neo/files/Makefile.bsd
index 4ce127da1d3d..9d92f991de58 100644
--- a/devel/tcl-neo/files/Makefile.bsd
+++ b/devel/tcl-neo/files/Makefile.bsd
@@ -1,7 +1,9 @@
PREFIX?= /usr/local
NEO_LIBRARY?= ${PREFIX}/lib/neo8.2
-CFLAGS+= -I${PREFIX}/include/tcl8.3 -I${PREFIX}/include
+TCL_VER?= 8.4
+TCL_DVER= ${TCL_VER:S/.//}
+CFLAGS+= -I${PREFIX}/include/tcl${TCL_VER} -I${PREFIX}/include
CFLAGS+= -DNEO_LIBRARY=\"${NEO_LIBRARY}\"
CFLAGS+= -DHAVE_TERMIOS_H -DHAVE_STDLIB_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H
CFLAGS+= -DNEO_DB # -DDB_185_COMPAT -- seems broken :-(
@@ -16,7 +18,7 @@ SRCS= neoXcrypt.c neoPkgInit.c neoXwww.c neoXgeneral.c \
SHLIB_NAME= libneo82.so.1
-LDADD+= -lcrypt -L${PREFIX}/lib -ltcl83 -lm -lmd -ldb2 # -ldap -llber
+LDADD+= -lcrypt -L${PREFIX}/lib -ltcl${TCL_DVER} -lm -lmd -ldb2 # -ldap -llber
SHLIBDIR= ${PREFIX}/lib