1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Make the TCL_VER(sion) a knob, rather than hardcoding the 8.3.

Default to 8.4 (as TclX does now), thus bump PORTREVISION.

Thanks to: kris and the bento cluster
This commit is contained in:
Mikhail Teterin 2004-04-12 18:26:49 +00:00
parent 197420960b
commit 332eeead31
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106822
2 changed files with 8 additions and 9 deletions

View File

@ -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}

View File

@ -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