make config: add package defines for better git sync and build date

Origin commit data
------------------
Branch: ni/coolstream
Commit: a07209e911
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-03-03 (Tue, 03 Mar 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2020-03-03 21:22:34 +01:00
committed by vanhofen
parent 793d319392
commit f19867e784

View File

@@ -8,16 +8,32 @@ define(ver_micro, m4_esyscmd([
GITREV=$(git rev-list $GITTAG..HEAD --count);
printf "$GITREV"
]))
# sync with current git
define(ver_git, m4_esyscmd([
GITBRANCH=$(git rev-parse --abbrev-ref HEAD);
GITDESCRIBE=$(git describe --always --tags --dirty);
printf "$GITDESCRIBE $GITBRANCH"
]))
define(ver_date, m4_esyscmd([
BUILTDATE=$(date);
printf "$BUILTDATE"
]))
define(rel_cycle, "ver_major.0")
AC_INIT([neutrino],[ver_major.ver_minor.ver_micro],[https://www.neutrino-images.de])
AM_INIT_AUTOMAKE([nostdinc foreign])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
AC_DEFINE(PACKAGE_RELEASE_CYCLE, rel_cycle, [Release cycle information; used in update code; only relevant for flash image releases ])
AC_DEFINE(PACKAGE_VERSION_MAJOR, ver_major, [Major version number])
AC_DEFINE(PACKAGE_VERSION_MINOR, ver_minor, [Minor version number])
AC_DEFINE(PACKAGE_VERSION_MICRO, ver_micro, [Micro version number])
AC_DEFINE(PACKAGE_RELEASE_CYCLE, rel_cycle, [Release cycle information; used in update code; only relevant for flash image releases ])
AC_DEFINE(PACKAGE_VERSION_GIT, "ver_git", [internal vcs version info])
AC_DEFINE(PACKAGE_VERSION_DATE, "ver_date", [internal built date])
TUXBOX_APPS
TUXBOX_APPS_DIRECTORY