fix deps
This commit is contained in:
Executable
+47
@@ -0,0 +1,47 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
|
||||
WorkDir="tk%s" % get.srcVERSION()
|
||||
|
||||
def setup():
|
||||
shelltools.cd("unix")
|
||||
autotools.autoconf()
|
||||
autotools.configure("--enable-threads \
|
||||
--enable-man-compression=gzip \
|
||||
--enable-man-symlinks \
|
||||
--enable-64bit \
|
||||
--with-x \
|
||||
--enable-xft")
|
||||
|
||||
def build():
|
||||
autotools.make("-C unix")
|
||||
|
||||
def install():
|
||||
shelltools.system("make -C unix DESTDIR=%s install" % get.installDIR())
|
||||
|
||||
# Collect private headers, 3rd party apps like Tile depends on this
|
||||
pisitools.dodir("/usr/include/tk-private/generic")
|
||||
pisitools.dodir("/usr/include/tk-private/unix")
|
||||
shelltools.copy("unix/*.h", "%s/usr/include/tk-private/unix" % get.installDIR())
|
||||
shelltools.copy("generic/*.h", "%s/usr/include/tk-private/generic" % get.installDIR())
|
||||
|
||||
# Remove duplicated headers
|
||||
pisitools.remove("/usr/include/tk-private/generic/tk.h")
|
||||
pisitools.remove("/usr/include/tk-private/generic/tkDecls.h")
|
||||
pisitools.remove("/usr/include/tk-private/generic/tkPlatDecls.h")
|
||||
|
||||
# Remove tmp path from tclConfig.sh
|
||||
pisitools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(), "%s/unix" % get.curDIR(), "/usr/lib/")
|
||||
pisitools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(), get.curDIR(), "/usr/include/tk-private")
|
||||
|
||||
pisitools.dosym("/usr/bin/wish8.6", "/usr/bin/wish")
|
||||
|
||||
pisitools.dodoc("ChangeLog", "changes", "license.terms", "README")
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
diff -Nuar tk8.5.10.orig/unix/tcl.m4 tk8.5.10/unix/tcl.m4
|
||||
--- tk8.5.10.orig/unix/tcl.m4 2011-08-01 14:24:06.823000004 +0300
|
||||
+++ tk8.5.10/unix/tcl.m4 2011-08-01 14:43:01.760000005 +0300
|
||||
@@ -1399,12 +1399,12 @@
|
||||
# get rid of the warnings.
|
||||
#CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
|
||||
|
||||
- SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
|
||||
+ SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS} -Wl,-soname,${@}'
|
||||
DL_OBJS="tclLoadDl.o"
|
||||
DL_LIBS="-ldl"
|
||||
LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
|
||||
AS_IF([test $doRpath = yes], [
|
||||
- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'])
|
||||
+ CC_SEARCH_FLAGS=''])
|
||||
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
||||
AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"])
|
||||
AS_IF([test $do64bit = yes], [
|
||||
@@ -1431,7 +1431,7 @@
|
||||
SHLIB_CFLAGS="-fPIC"
|
||||
SHLIB_SUFFIX=".so"
|
||||
|
||||
- SHLIB_LD='${CC} -shared'
|
||||
+ SHLIB_LD='${CC} ${CFLAGS} -shared'
|
||||
DL_OBJS=""
|
||||
DL_LIBS="-ldl"
|
||||
LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
|
||||
@@ -0,0 +1,19 @@
|
||||
diff --git a/unix/tcl.m4 b/unix/tcl.m4
|
||||
index 194cf90..c470e36 100644
|
||||
--- a/unix/tcl.m4
|
||||
+++ b/unix/tcl.m4
|
||||
@@ -1415,12 +1415,12 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
|
||||
# get rid of the warnings.
|
||||
#CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
|
||||
|
||||
- SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
|
||||
+ SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS} -Wl,-soname,${@}'
|
||||
DL_OBJS="tclLoadDl.o"
|
||||
DL_LIBS="-ldl"
|
||||
LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
|
||||
AS_IF([test $doRpath = yes], [
|
||||
- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'])
|
||||
+ CC_SEARCH_FLAGS=''])
|
||||
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
|
||||
AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"])
|
||||
AS_IF([test $do64bit = yes], [
|
||||
@@ -0,0 +1,15 @@
|
||||
diff --git a/unix/configure.in b/unix/configure.in
|
||||
index e7bf023..7d12f41 100755
|
||||
--- a/unix/configure.in
|
||||
+++ b/unix/configure.in
|
||||
@@ -485,8 +485,8 @@ if test $tk_aqua = no; then
|
||||
XFT_LIBS=`xft-config --libs 2>/dev/null` || found_xft="no"
|
||||
if test "$found_xft" = "no" ; then
|
||||
found_xft=yes
|
||||
- XFT_CFLAGS=`pkg-config --cflags xft 2>/dev/null` || found_xft="no"
|
||||
- XFT_LIBS=`pkg-config --libs xft 2>/dev/null` || found_xft="no"
|
||||
+ XFT_CFLAGS=`pkg-config --cflags xft freetype2 2>/dev/null` || found_xft="no"
|
||||
+ XFT_LIBS=`pkg-config --libs xft freetype2 2>/dev/null` || found_xft="no"
|
||||
fi
|
||||
AC_MSG_RESULT([$found_xft])
|
||||
dnl make sure that compiling against Xft header file doesn't bomb
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/unix/Makefile.in b/unix/Makefile.in
|
||||
index 3914940..a69df0e 100644
|
||||
--- a/unix/Makefile.in
|
||||
+++ b/unix/Makefile.in
|
||||
@@ -743,7 +743,7 @@ install-binaries: $(TK_LIB_FILE) $(TK_STUB_LIB_FILE) ${WISH_EXE}
|
||||
fi
|
||||
@echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
|
||||
@@INSTALL_LIB@
|
||||
- @chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
|
||||
+ @chmod 755 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
|
||||
@if test -f "tk${MAJOR_VERSION}${MINOR_VERSION}.dll"; then \
|
||||
$(INSTALL_LIBRARY) "tk${MAJOR_VERSION}${MINOR_VERSION}.dll" "$(DLL_INSTALL_DIR)";\
|
||||
chmod 555 "$(DLL_INSTALL_DIR)/tk${MAJOR_VERSION}${MINOR_VERSION}.dll";\
|
||||
Executable
+114
@@ -0,0 +1,114 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>tcltk</Name>
|
||||
<Homepage>http://www.tcl.tk</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>as-is</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>An X11 toolkit implemented with the Tcl scripting language</Summary>
|
||||
<Description>Tk is an X Windows widget set designed to work closely with the tcl scripting language. It allows you to write simple programs with full featured GUIs in only a little more time then it takes to write a text based interface.</Description>
|
||||
<Archive sha1sum="244ddc0f64cc3d429c9d86135d0bbe2cf06c9360" type="targz">mirrors://sourceforge/tcl/tk8.6.3-src.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>tcl-devel</Dependency>
|
||||
<Dependency>libX11-devel</Dependency>
|
||||
<Dependency>libXft-devel</Dependency>
|
||||
<!--<Dependency>libXScrnSaver-devel</Dependency>-->
|
||||
<Dependency>fontconfig-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">tk-8.6.1-conf.patch</Patch>
|
||||
<Patch level="1">tk-8.6.1-fix-xft.patch</Patch>
|
||||
<Patch level="1">tk-8.6.1-make.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>tcltk</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>tcl</Dependency>
|
||||
<Dependency>libX11</Dependency>
|
||||
<Dependency>libXft</Dependency>
|
||||
<!--<Dependency>libXScrnSaver</Dependency>-->
|
||||
<Dependency>fontconfig</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="data">/usr/lib/tk8.5</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>tcltk-devel</Name>
|
||||
<Summary>Development files for tcltk</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">tcltk</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="library">/usr/lib/*.a</Path>
|
||||
<Path fileType="data">/usr/lib/tkConfig.sh</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="man">/usr/share/man/man3</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="7">
|
||||
<Date>2014-12-14</Date>
|
||||
<Version>8.6.3</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2014-09-30</Date>
|
||||
<Version>8.6.2</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvari@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2014-05-17</Date>
|
||||
<Version>8.6.1</Version>
|
||||
<Comment>Version bump and add patch.</Comment>
|
||||
<Name>Alihan Öztürk</Name>
|
||||
<Email>alihan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-03-09</Date>
|
||||
<Version>8.6.0</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Varol Maksutoğlu</Name>
|
||||
<Email>waroi@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-07-26</Date>
|
||||
<Version>8.6.0</Version>
|
||||
<Comment>Move pc files to devel pack, increase release no.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-01-26</Date>
|
||||
<Version>8.6.0</Version>
|
||||
<Comment>bump</Comment>
|
||||
<Name>Erdinç Gültekin</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-09-15</Date>
|
||||
<Version>8.5.12</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>tcltk</Name>
|
||||
<Summary xml:lang="tr">Tcl betik dili ile yazılmış X11 araç ve kitaplıkları</Summary>
|
||||
<Summary xml:lang="fr">Tk est une boîte à outils X11 implémentée avec le langage de script Tcl.</Summary>
|
||||
<Description xml:lang="tr">Tk, tcl betik dili ile birlikte kullanılması için tasarlanmış bir X Windows araç setidir. Metin tabanlı arayüzlere oranla daha kısa sürede tam özellikli grafik arayüzlere sahip basit programlar yazmanızı sağlar.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>tcltk-devel</Name>
|
||||
<Summary xml:lang="tr">tcltk için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user