package: add <pkg>_VERSION_MAJOR variable
authorJerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
Wed, 18 Dec 2013 18:20:02 +0000 (19:20 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 19 Dec 2013 20:37:39 +0000 (21:37 +0100)
Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net>
Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
20 files changed:
package/cmake/cmake.mk
package/gnutls/gnutls.mk
package/gtk2-engines/gtk2-engines.mk
package/ipsec-tools/ipsec-tools.mk
package/libart/libart.mk
package/libglade/libglade.mk
package/libsigc/libsigc.mk
package/lighttpd/lighttpd.mk
package/linphone/linphone.mk
package/midori/midori.mk
package/mysql_client/mysql_client.mk
package/nano/nano.mk
package/ntp/ntp.mk
package/nut/nut.mk
package/qt/qt.mk
package/qt5/qt5.mk
package/rpm/rpm.mk
package/ruby/ruby.mk
package/sdl_gfx/sdl_gfx.mk
package/squid/squid.mk

index fd1cdd287c1378e0520ca00b3a781e03ed250ec0..459410129c23f7bdeea554b7ffe0994bf06b6f9b 100644 (file)
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-CMAKE_VERSION = 2.8.10.2
-CMAKE_SITE = http://www.cmake.org/files/v2.8/
+CMAKE_VERSION_MAJOR = 2.8
+CMAKE_VERSION = $(CMAKE_VERSION_MAJOR).10.2
+CMAKE_SITE = http://www.cmake.org/files/v$(CMAKE_VERSION_MAJOR)/
 CMAKE_LICENSE = BSD-3c
 CMAKE_LICENSE_FILES = Copyright.txt
 
index 8ab0665d681d5774d1215a744a827ce73c4893a5..aa68ca4078bac87e52df7e8e85e7e017c4202138 100644 (file)
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-GNUTLS_VERSION = 3.2.6
+GNUTLS_VERSION_MAJOR = 3.2
+GNUTLS_VERSION = $(GNUTLS_VERSION_MAJOR).6
 GNUTLS_SOURCE = gnutls-$(GNUTLS_VERSION).tar.xz
-GNUTLS_SITE = ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2
+GNUTLS_SITE = ftp://ftp.gnutls.org/gcrypt/gnutls/v$(GNUTLS_VERSION_MAJOR)
 GNUTLS_LICENSE = GPLv3+ LGPLv2.1+
 GNUTLS_LICENSE_FILES = COPYING COPYING.LESSER
 GNUTLS_DEPENDENCIES = host-pkgconf nettle pcre \
index 402b3c967ba27a8874bf32a8d4ebda356df2d853..8d3193e8e82b30f62d6603442ba0cc71447c4846 100644 (file)
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-GTK2_ENGINES_VERSION = 2.20.2
+GTK2_ENGINES_VERSION_MAJOR = 2.20
+GTK2_ENGINES_VERSION = $(GTK2_ENGINES_VERSION_MAJOR).2
 GTK2_ENGINES_SOURCE  = gtk-engines-$(GTK2_ENGINES_VERSION).tar.bz2
-GTK2_ENGINES_SITE    = http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.20
+GTK2_ENGINES_SITE    = http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/$(GTK2_ENGINES_VERSION_MAJOR)
 
 GTK2_ENGINES_DEPENDENCIES = libgtk2 host-intltool
 
index 8eeef1b6c6763381b23e760b6be4738a1e06d229..d5521acc1e239b729ef1f1611d2bf23ff23811d1 100644 (file)
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-IPSEC_TOOLS_VERSION = 0.8.0
+IPSEC_TOOLS_VERSION_MAJOR = 0.8
+IPSEC_TOOLS_VERSION = $(IPSEC_TOOLS_VERSION_MAJOR).0
 IPSEC_TOOLS_SOURCE = ipsec-tools-$(IPSEC_TOOLS_VERSION).tar.bz2
-IPSEC_TOOLS_SITE = http://ftp.sunet.se/pub/NetBSD/misc/ipsec-tools/0.8/
+IPSEC_TOOLS_SITE = http://ftp.sunet.se/pub/NetBSD/misc/ipsec-tools/$(IPSEC_TOOLS_VERSION_MAJOR)/
 IPSEC_TOOLS_INSTALL_STAGING = YES
 IPSEC_TOOLS_MAKE = $(MAKE1)
 IPSEC_TOOLS_DEPENDENCIES = openssl flex host-flex
index 53dfe5a95a48adb0d647b416a3fb5f81efb563f5..39c72cc5ae05c5c2ebefe1567d120799f3e16f56 100644 (file)
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-LIBART_VERSION = 2.3.21
+LIBART_VERSION_MAJOR = 2.3
+LIBART_VERSION = $(LIBART_VERSION_MAJOR).21
 LIBART_SOURCE = libart_lgpl-$(LIBART_VERSION).tar.gz
-LIBART_SITE = http://ftp.gnome.org/pub/gnome/sources/libart_lgpl/2.3/
+LIBART_SITE = http://ftp.gnome.org/pub/gnome/sources/libart_lgpl/$(LIBART_VERSION_MAJOR)/
 LIBART_AUTORECONF = YES
 LIBART_INSTALL_STAGING = YES
 LIBART_CONFIG_SCRIPTS = libart2-config
index 343ecc4d4666c07d3b7c62f3a8beecb5f3fa916d..e197122d96ba7c61d822d816462efa7c53c4d7a5 100644 (file)
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-LIBGLADE_VERSION = 2.6.4
+LIBGLADE_VERSION_MAJOR = 2.6
+LIBGLADE_VERSION = $(LIBGLADE_VERSION_MAJOR).4
 LIBGLADE_SOURCE = libglade-$(LIBGLADE_VERSION).tar.bz2
-LIBGLADE_SITE = http://ftp.gnome.org/pub/GNOME/sources/libglade/2.6/
+LIBGLADE_SITE = http://ftp.gnome.org/pub/GNOME/sources/libglade/$(LIBGLADE_VERSION_MAJOR)/
 LIBGLADE_INSTALL_STAGING = YES
 LIBGLADE_DEPENDENCIES = host-pkgconf libglib2 libgtk2 atk libxml2
 
index d3e0135d038378334ff046f648d9ebd64e0fce9c..7c127c42950c5d733620892763fd5d26098c9871 100644 (file)
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-LIBSIGC_VERSION = 2.2.11
+LIBSIGC_VERSION_MAJOR = 2.2
+LIBSIGC_VERSION = $(LIBSIGC_VERSION_MAJOR).11
 LIBSIGC_SOURCE = libsigc++-$(LIBSIGC_VERSION).tar.xz
-LIBSIGC_SITE = http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2
+LIBSIGC_SITE = http://ftp.gnome.org/pub/GNOME/sources/libsigc++/$(LIBSIGC_VERSION_MAJOR)
 LIBSIGC_DEPENDENCIES = host-m4
 LIBSIGC_INSTALL_STAGING = YES
 LIBSIGC_LICENSE = LGPLv2.1+
index bd63a1ef3ee1f9030db42d08f6da5c0bdfc95943..08a97ee208c12c8f768f88b170d183837ddc8847 100644 (file)
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-LIGHTTPD_VERSION = 1.4.33
+LIGHTTPD_VERSION_MAJOR = 1.4
+LIGHTTPD_VERSION = $(LIGHTTPD_VERSION_MAJOR).33
 LIGHTTPD_SOURCE = lighttpd-$(LIGHTTPD_VERSION).tar.xz
-LIGHTTPD_SITE = http://download.lighttpd.net/lighttpd/releases-1.4.x
+LIGHTTPD_SITE = http://download.lighttpd.net/lighttpd/releases-$(LIGHTTPD_VERSION_MAJOR).x
 LIGHTTPD_LICENSE = BSD-3c
 LIGHTTPD_LICENSE_FILES = COPYING
 LIGHTTPD_DEPENDENCIES = host-pkgconf
index e7e3de66204eff82a2e0a641d6dc372553a89bab..91830aebc96742f3fa7eacd79eb630322a8da54d 100644 (file)
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-LINPHONE_VERSION = 3.6.1
-LINPHONE_SITE = http://download-mirror.savannah.gnu.org/releases/linphone/3.6.x/sources
+LINPHONE_VERSION_MAJOR = 3.6
+LINPHONE_VERSION = $(LINPHONE_VERSION_MAJOR).1
+LINPHONE_SITE = http://download-mirror.savannah.gnu.org/releases/linphone/$(LINPHONE_VERSION_MAJOR).x/sources
 LINPHONE_CONF_OPT = \
        --enable-external-ortp \
        --enable-external-mediastreamer \
index 8887e49491d3f47b206adff0a17cf3aba9fb8993..ff56e4386a1a2b68e807f0fdc2e717f07d4a0ed5 100644 (file)
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-MIDORI_VERSION = 0.4.6
+MIDORI_VERSION_MAJOR = 0.4
+MIDORI_VERSION = $(MIDORI_VERSION_MAJOR).6
 MIDORI_SOURCE = midori-$(MIDORI_VERSION).tar.bz2
-MIDORI_SITE = http://archive.xfce.org/src/apps/midori/0.4/
+MIDORI_SITE = http://archive.xfce.org/src/apps/midori/$(MIDORI_VERSION_MAJOR)/
 MIDORI_LICENSE = LGPLv2.1+
 MIDORI_LICENSE_FILES = COPYING
 MIDORI_DEPENDENCIES = \
index fe24ae78ce01fe67491173b680befe09ba367a8c..bd4c56509c9bee7cc05da2b2b548f6e71b45ccb4 100644 (file)
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-MYSQL_CLIENT_VERSION = 5.1.70
+MYSQL_CLIENT_VERSION_MAJOR = 5.1
+MYSQL_CLIENT_VERSION = $(MYSQL_CLIENT_VERSION_MAJOR).70
 MYSQL_CLIENT_SOURCE = mysql-$(MYSQL_CLIENT_VERSION).tar.gz
-MYSQL_CLIENT_SITE = http://downloads.skysql.com/archives/mysql-5.1
+MYSQL_CLIENT_SITE = http://downloads.skysql.com/archives/mysql-$(MYSQL_CLIENT_VERSION_MAJOR)
 MYSQL_CLIENT_INSTALL_STAGING = YES
 MYSQL_CLIENT_DEPENDENCIES = readline ncurses
 MYSQL_CLIENT_AUTORECONF = YES
index 67153a86ccec03bf8fcbbe2d4470a3e24d6d4004..2b6df3adea4c3272b8d7c1afbf9340800c9cd667 100644 (file)
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-NANO_VERSION = 2.3.2
-NANO_SITE = http://www.nano-editor.org/dist/v2.3
+NANO_VERSION_MAJOR = 2.3
+NANO_VERSION = $(NANO_VERSION_MAJOR).2
+NANO_SITE = http://www.nano-editor.org/dist/v$(NANO_VERSION_MAJOR)
 NANO_LICENSE = GPLv3+
 NANO_LICENSE_FILES = COPYING
 NANO_MAKE_ENV = CURSES_LIB="-lncurses"
index e70dfab922e972195281c6e03fff9c1c9a0bab46..40d8e4fcddfed43ac9cfe4303918b3272302992a 100644 (file)
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-NTP_VERSION = 4.2.6p5
-NTP_SITE = http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2
+NTP_VERSION_MAJOR = 4.2
+NTP_VERSION = $(NTP_VERSION_MAJOR).6p5
+NTP_SITE = http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-$(NTP_VERSION_MAJOR)
 NTP_LICENSE = ntp license
 NTP_LICENSE_FILES = COPYRIGHT
 NTP_CONF_ENV = ac_cv_lib_md5_MD5Init=no
index 25b88c4123ebd676b0614999a423b5828b3a59a2..04b2b41e1d813554a2e46b394d4000d8353f0952 100644 (file)
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-NUT_VERSION = 2.6.5
-NUT_SITE = http://www.networkupstools.org/source/2.6/
+NUT_VERSION_MAJOR = 2.6
+NUT_VERSION = $(NUT_VERSION_MAJOR).5
+NUT_SITE = http://www.networkupstools.org/source/$(NUT_VERSION_MAJOR)/
 NUT_LICENSE = GPLv2+, GPLv3+ (python scripts), GPL/Artistic (perl client)
 NUT_LICENSE_FILES = COPYING LICENSE-GPL2 LICENSE-GPL3
 NUT_DEPENDENCIES = host-pkgconf
index 194c19e5332c196d1d75149d914008d426e8656c..029d317974335a4cc9cf67f8cd3b42ab111f94f8 100644 (file)
 #
 ################################################################################
 
-QT_VERSION = 4.8.5
+QT_VERSION_MAJOR = 4.8
+QT_VERSION = $(QT_VERSION_MAJOR).5
 QT_SOURCE  = qt-everywhere-opensource-src-$(QT_VERSION).tar.gz
-QT_SITE    = http://download.qt-project.org/official_releases/qt/4.8/$(QT_VERSION)
+QT_SITE    = http://download.qt-project.org/official_releases/qt/$(QT_VERSION_MAJOR)/$(QT_VERSION)
 QT_DEPENDENCIES = host-pkgconf
 QT_INSTALL_STAGING = YES
 
index e925fb4b405d8f553dcbf56cb01b81a0fcfc754b..6b0533402c20a7b7153ee8f4e68fbca81c93dfb6 100644 (file)
@@ -1,5 +1,6 @@
-QT5_VERSION = 5.2.0
-QT5_SITE = http://download.qt-project.org/official_releases/qt/5.2/$(QT5_VERSION)/submodules/
+QT5_VERSION_MAJOR = 5.2
+QT5_VERSION = $(QT5_VERSION_MAJOR).0
+QT5_SITE = http://download.qt-project.org/official_releases/qt/$(QT5_VERSION_MAJOR)/$(QT5_VERSION)/submodules/
 include $(sort $(wildcard package/qt5/*/*.mk))
 
 define QT5_LA_PRL_FILES_FIXUP
index 89ce70eed49554d6c070b417e1e97fdd3ff62401..97f64a2bb646ac5954ee23369b6e392b47909583 100644 (file)
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-RPM_VERSION = 5.2.0
-RPM_SITE = http://rpm5.org/files/rpm/rpm-5.2/
+RPM_VERSION_MAJOR = 5.2
+RPM_VERSION = $(RPM_VERSION_MAJOR).0
+RPM_SITE = http://rpm5.org/files/rpm/rpm-$(RPM_VERSION_MAJOR)/
 RPM_DEPENDENCIES = zlib beecrypt neon popt
 
 RPM_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/beecrypt -I$(STAGING_DIR)/usr/include/neon -DHAVE_MUTEX_THREAD_ONLY" \
index a9c4e7db42ef7e7b150c68ca00c934f183a48925..d651e82deb5746c894fbad3d7b859a5dde6cf08e 100644 (file)
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-RUBY_VERSION = 1.9.3-p484
-RUBY_SITE = ftp://ftp.ruby-lang.org/pub/ruby/1.9
+RUBY_VERSION_MAJOR = 1.9
+RUBY_VERSION = $(RUBY_VERSION_MAJOR).3-p484
+RUBY_SITE = ftp://ftp.ruby-lang.org/pub/ruby/$(RUBY_VERSION_MAJOR)
 RUBY_DEPENDENCIES = host-pkgconf host-ruby
 HOST_RUBY_DEPENDENCIES = host-pkgconf
 RUBY_MAKE_ENV = $(TARGET_MAKE_ENV)
index c6b94510eec2112bcaef81f7715ce74a186943f3..3d65db431aec68db238a9781bcb7a0f2124ec025 100644 (file)
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-SDL_GFX_VERSION = 2.0.23
+SDL_GFX_VERSION_MAJOR = 2.0
+SDL_GFX_VERSION = $(SDL_GFX_VERSION_MAJOR).23
 SDL_GFX_SOURCE = SDL_gfx-$(SDL_GFX_VERSION).tar.gz
-SDL_GFX_SITE = http://www.ferzkopp.net/Software/SDL_gfx-2.0/
+SDL_GFX_SITE = http://www.ferzkopp.net/Software/SDL_gfx-$(SDL_GFX_VERSION_MAJOR)/
 SDL_GFX_LICENSE = zlib
 SDL_GFX_LICENSE_FILES = COPYING LICENSE
 SDL_GFX_INSTALL_STAGING = YES
index 7c55557e64ec80706a7afa242e57479c75450106..e1b37be582386fb03b042931efaa8fc99dabe87e 100644 (file)
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-SQUID_VERSION = 3.3.11
+SQUID_VERSION_MAJOR = 3.3
+SQUID_VERSION = $(SQUID_VERSION_MAJOR).11
 SQUID_SOURCE = squid-$(SQUID_VERSION).tar.xz
-SQUID_SITE = http://www.squid-cache.org/Versions/v3/3.3
+SQUID_SITE = http://www.squid-cache.org/Versions/v3/$(SQUID_VERSION_MAJOR)
 SQUID_LICENSE = GPLv2+
 SQUID_LICENSE_FILES = COPYING
 SQUID_AUTORECONF = YES