Skip to content
This repository was archived by the owner on Mar 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #40 from jtojnar/version
Browse files Browse the repository at this point in the history
Use version declared in configure.ac
  • Loading branch information
Peter Lamby authored Oct 29, 2018
2 parents 1719c2e + dc6439b commit 242acf7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
dnl Process this file with autoconf to produce a configure script.

m4_define([plugin_version_major], [1])
m4_define([plugin_version_minor], [12])
m4_define([plugin_version], [plugin_version_major.plugin_version_minor])

AC_PREREQ([2.69])
AC_INIT([deadbeef-mpris2-plugin], [1.11], [[email protected]], [DeaDBeeF MPRIS2 Plugin], [https://github.com/Serranya/deadbeef-mpris2-plugin])
AC_INIT([deadbeef-mpris2-plugin], [plugin_version], [[email protected]], [DeaDBeeF MPRIS2 Plugin], [https://github.com/Serranya/deadbeef-mpris2-plugin])
AC_CONFIG_SRCDIR([src/mpris.c])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
Expand All @@ -18,6 +22,11 @@ AC_PROG_INSTALL
AC_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG

AC_DEFINE(PLUGIN_VERSION_MAJOR, [plugin_version_major],
[Define to the plug-in major version])
AC_DEFINE(PLUGIN_VERSION_MINOR, [plugin_version_minor],
[Define to the plug-in minor version])

LT_INIT

PKG_CHECK_MODULES([GLIB_DEPS], [glib-2.0], , AC_MSG_ERROR([glibc-2 is required for this package]))
Expand Down
4 changes: 2 additions & 2 deletions src/mpris.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ DB_misc_t plugin = {
.plugin.api_vmajor = DB_API_VERSION_MAJOR,\
.plugin.api_vminor = DB_API_VERSION_MINOR,
.plugin.type = DB_PLUGIN_MISC,
.plugin.version_major = 1,
.plugin.version_minor = 8,
.plugin.version_major = PLUGIN_VERSION_MAJOR,
.plugin.version_minor = PLUGIN_VERSION_MINOR,
.plugin.id = "mpris",
.plugin.name ="MPRISv2 plugin",
.plugin.descr = "Communicate with other applications using D-Bus.",
Expand Down

0 comments on commit 242acf7

Please sign in to comment.