aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/itk/Makefile
diff options
context:
space:
mode:
authorjseger <jseger@FreeBSD.org>1999-04-06 06:41:35 +0800
committerjseger <jseger@FreeBSD.org>1999-04-06 06:41:35 +0800
commitc29b22718bda20814c470e7408b8c7ec78b89a48 (patch)
tree492b2b6309299f73b9cc38600326c567c03b06bb /x11-toolkits/itk/Makefile
parentb02135b5ba78b317daa9fc9ddc5ec15f1514d15b (diff)
downloadfreebsd-ports-gnome-c29b22718bda20814c470e7408b8c7ec78b89a48.tar.gz
freebsd-ports-gnome-c29b22718bda20814c470e7408b8c7ec78b89a48.tar.zst
freebsd-ports-gnome-c29b22718bda20814c470e7408b8c7ec78b89a48.zip
Import of itk v3.0.0
PR: ports/10960 Submitted by: Duncan Barclay <dmlb@ragnet.demon.co.uk>
Diffstat (limited to 'x11-toolkits/itk/Makefile')
-rw-r--r--x11-toolkits/itk/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/x11-toolkits/itk/Makefile b/x11-toolkits/itk/Makefile
new file mode 100644
index 000000000000..ce0beaaa45ce
--- /dev/null
+++ b/x11-toolkits/itk/Makefile
@@ -0,0 +1,54 @@
+# New ports collection makefile for: itk
+# Version required: 3.0.1
+# Date created: Aug 17 1996
+# Whom: chuckr
+#
+# $Id$
+#
+
+DISTNAME= itcl3.0.1
+PKGNAME= itk-3.0.1
+CATEGORIES= x11-toolkits tk80
+MASTER_SITES= ftp://ftp.tcltk.com/pub/itcl/
+
+MAINTAINER= dmlb@ragnet.demon.co.uk
+
+LIB_DEPENDS= tk80.1:${PORTSDIR}/x11-toolkits/tk80 \
+ itcl30.1:${PORTSDIR}/lang/itcl
+
+WRKSRC= ${WRKDIR}/itcl3.0.1/itk/unix
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --enable-shared --with-tcl=${PREFIX}/lib/tcl8.0 --with-itcl=${PREFIX}/lib/itcl3.0 --with-tk=${PREFIX}/lib/tk8.0
+CONFIGURE_ENV= PORTSDIR=${PORTSDIR} ITK_LIB_FILE=${ITK_LIB_FILE}
+
+SHLIB_MAJOR= 1
+SHLIB_MINOR= 1
+MAKEFILE= makefile
+ITK_LIB= libitk30.so
+
+MANCOMPRESSED= yes
+MAN1= itkwish.1
+MANN= Archetype.n Toplevel.n Widget.n itk.n itkvars.n usual.n
+
+.include <bsd.port.pre.mk>
+
+.if ${PORTOBJFORMAT} == "elf"
+ITK_LIB_FILE= ${ITK_LIB}.${SHLIB_MAJOR}
+.else
+ITK_LIB_FILE= ${ITK_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} ITCL_PREFIX=${PREFIX} TK_PREFIX=${PREFIX}
+
+post-install:
+ ${LN} -sf ${ITK_LIB_FILE} ${PREFIX}/lib/${ITK_LIB}
+ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
+
+.include <bsd.port.post.mk>