1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/lang/itcl/files/Makefile.lib
Mikhail Teterin 3295fa4f6e Update to itcl 3.2. Don't build stubs. Run tests after tests.
Install iwidgets2.2.0 in  addition to 3.0.0. The older  version is still
in  use by  some  scripts and  continues to  come  with itcl3.2.  Change
maintainer to ports@

Approved by:	maintainer's silence
2001-07-28 14:53:46 +00:00

42 lines
1.4 KiB
Makefile

NOPROFILE= yes
LIB= itcl${MAJOR}${MINOR}
ITCL_LIBRARY= ${PREFIX}/lib/itcl${MAJOR}.${MINOR}
CFLAGS+= -I. -I./../generic \
-I${PREFIX}/include/tcl8.3/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\
-DTCL_SHLIB_EXT=\".so\" \
-DHAVE_SYS_FILIO_H=1 \
-DRETSIGTYPE=void \
-DITCL_LIBRARY=\"${ITCL_LIBRARY}\"
LDADD+= -L${PREFIX}/lib -ltcl83
.PATH: ${.CURDIR}/unix ${.CURDIR}/generic ${.CURDIR}/man
SRCS= itcl_bicmds.c itcl_class.c itcl_cmds.c itcl_ensemble.c \
itcl_linkage.c itcl_methods.c itcl_migrate.c itcl_objects.c \
itcl_obsolete.c itcl_parse.c itcl_util.c \
itclStubInit.c itclStubLib.c
pkgIndex.tcl: ${.CURDIR}/pkgIndex.tcl.in
sed -e "s#@RELPATH@#..#" -e "s#@VERSION@#${MAJOR}.${MINOR}#" \
-e "s#@itcl_LIB_FILE@#${SHLIB_NAME}#" \
< ${.CURDIR}/pkgIndex.tcl.in > pkgIndex.tcl
SCRIPTDIR= lib/itcl${MAJOR}.${MINOR}
SCRIPTPATH= ${PREFIX}/${SCRIPTDIR}
LIBDIR= ${PREFIX}/lib
INCDIR= ${PREFIX}/include/itcl${MAJOR}.${MINOR}
${SCRIPTPATH} ${INCDIR}:
mkdir -p ${.TARGET}
beforeinstall: pkgIndex.tcl ${SCRIPTPATH} ${INCDIR}
${BSD_INSTALL_DATA} pkgIndex.tcl ${.CURDIR}/library/itcl.tcl \
${SCRIPTPATH}
${BSD_INSTALL_DATA} ${.CURDIR}/generic/*.h ${INCDIR}
.include <bsd.lib.mk>