]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
tcl: Adopt makefile into new format
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 3 Mar 2023 10:45:14 +0000 (10:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Mar 2023 13:19:50 +0000 (13:19 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tcl/tcl.nm

index 4adf47524d96bdc3fb26d1f0b44b34a6759cddee..d0160cad0d3b24e33bc965c83c712083239d4520 100644 (file)
@@ -6,7 +6,7 @@
 name       = tcl
 major_ver  = 8.6
 version    = %{major_ver}.13
-release    = 1
+release    = 1.1
 thisapp    = tcl%{version}
 
 groups     = Development/Languages
@@ -31,6 +31,8 @@ build
                zlib-devel
        end
 
+       DIR_APP = %{DIR_SRC}/%{thisapp}/unix
+
        # tcl fails to detect that it needs to link agains libm
        LDFLAGS += -lm
 
@@ -43,15 +45,10 @@ build
                --enable-threads \
                --enable-64bit
 
-       build
-               cd unix && %{configure}
-
-               make %{PARALLELISMFLAGS}
-       end
-
-       install
-               cd unix && make install install-private-headers INSTALL_ROOT=%{BUILDROOT}
+       make_install_targets += \
+               install-private-headers INSTALL_ROOT=%{BUILDROOT}
 
+       install_cmds
                ln -svf tclsh%{major_ver} %{BUILDROOT}/usr/bin/tclsh
 
                # for linking with -lib%{name}