summaryrefslogtreecommitdiff
path: root/x11/tk85/Makefile
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2014-03-10 14:22:01 +0000
committertaca <taca@pkgsrc.org>2014-03-10 14:22:01 +0000
commit646dd36d2fd5a8d7cca216ba643d7ea206011117 (patch)
tree0fd6045db27e3bf5b40df8b2fbcd75f0fbb07e19 /x11/tk85/Makefile
parent9f7cf967c83cbe6a66dd98c009c74b83e6e3e22f (diff)
downloadpkgsrc-646dd36d2fd5a8d7cca216ba643d7ea206011117.tar.gz
Restore tk-8.5.15 package as lang/tk85 with bump PKGREVISION since
x11/ruby-tk package needs tcl/tk 8.5 and it dosen't support tcl/tk 8.6 and later.
Diffstat (limited to 'x11/tk85/Makefile')
-rw-r--r--x11/tk85/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/x11/tk85/Makefile b/x11/tk85/Makefile
new file mode 100644
index 00000000000..1e6f0055ecd
--- /dev/null
+++ b/x11/tk85/Makefile
@@ -0,0 +1,52 @@
+# $NetBSD: Makefile,v 1.1 2014/03/10 14:22:01 taca Exp $
+
+DISTNAME= tk${TK_VERSION}-src
+PKGNAME= tk-${TK_VERSION}
+PKGREVISION= 1
+CATEGORIES= x11 lang
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tcl/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.tcl.tk/
+COMMENT= Graphical toolkit for TCL
+LICENSE= 2-clause-bsd
+
+.include "../../x11/tk85/Makefile.version"
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+WRKSRC= ${WRKDIR}/tk${TK_VERSION}
+
+GNU_CONFIGURE= yes
+CONFIGURE_DIRS= unix
+BUILD_DIRS= ${CONFIGURE_DIRS}
+CONFIGURE_ARGS+= --with-tcl=${BUILDLINK_PREFIX.tcl}/lib
+CONFIGURE_ARGS+= --x-libraries=${X11BASE}/lib${LIBABISUFFIX:Q}
+CONFIGURE_ARGS+= --x-libraries=${X11BASE}/lib${LIBABISUFFIX:Q}
+CONFIGURE_ENV+= LIB_RUNTIME_DIR=${PREFIX}/lib
+PTHREAD_OPTS+= require
+
+PKGCONFIG_OVERRIDE+= unix/tk.pc.in
+
+TEST_TARGET= test
+
+.if defined(ABI) && ${ABI} == "64"
+CONFIGURE_ARGS+= --enable-64bit
+.endif
+
+.include "options.mk"
+
+SUBST_CLASSES+= tk-config
+SUBST_STAGE.tk-config= post-build
+SUBST_FILES.tk-config= unix/tkConfig.sh
+SUBST_SED.tk-config+= -e "s|${WRKSRC}/unix|${PREFIX}/lib|"
+SUBST_SED.tk-config+= -e "s|${WRKSRC}|${PREFIX}/include/tk|"
+
+PLIST_SUBST+= SONUM=${TK_SONUM}
+PLIST_SUBST+= BASEVER=${TK_BASEVER}
+
+.include "../../lang/tcl85/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"