1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/lang/itcl/Makefile
Justin M. Seger 93cb38fc6e Upgrade to itcl 3.0.1
Submitted by:	Duncan Barclay <dmlb@ragnet.demon.co.uk>
PR:		ports/10960
1999-04-05 22:18:02 +00:00

55 lines
1.4 KiB
Makefile

# New ports collection makefile for: itcl
# Version required: 3.0.1
# Date created: Aug 17 1996
# Whom: chuckr
#
# $Id: Makefile,v 1.20 1997/07/17 15:12:47 max Exp $
#
DISTNAME= itcl3.0.1
PKGNAME= itcl-3.0.1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.tcltk.com/pub/itcl/
MAINTAINER= dmlb@ragnet.demon.co.uk
LIB_DEPENDS= tcl80.1:${PORTSDIR}/lang/tcl80
WRKSRC= ${WRKDIR}/itcl3.0.1/itcl/unix
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared --with-tcl=${PREFIX}/lib/tcl8.0
CONFIGURE_ENV= PORTSDIR=${PORTSDIR} ITCL_LIB_FILE=${ITCL_LIB_FILE}
SHLIB_MAJOR= 1
SHLIB_MINOR= 1
MAKEFILE= makefile
ITCL_LIB= libitcl30.so
MANCOMPRESSED= yes
MAN1= itclsh.1
MANN= body.n class.n code.n configbody.n delete.n ensemble.n find.n
MANN+= itcl.n itcl_class.n itcl_info.n itclvars.n local.n scope.n
.include <bsd.port.pre.mk>
.if ${PORTOBJFORMAT} == "elf"
ITCL_LIB_FILE= ${ITCL_LIB}.${SHLIB_MAJOR}
.else
ITCL_LIB_FILE= ${ITCL_LIB}.${SHLIB_MAJOR}.${SHLIB_MINOR}
.endif
post-configure:
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}
@${CP} ${FILESDIR}/makefile ${WRKSRC}
pre-build:
@cd ${WRKSRC} && ${MAKE} -f Makefile.lib PREFIX=${PREFIX} \
SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} \
TCL_PREFIX=${PREFIX}
post-install:
${LN} -sf ${ITCL_LIB_FILE} ${PREFIX}/lib/${ITCL_LIB}
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.post.mk>