82 Commits

Author SHA1 Message Date
Benedikt Heine
d9282b7f86 Add EXTRA_CFLAGS with -Werror for CI 2021-05-01 14:18:35 +02:00
fwsmit
9615431593 Change config location to /etc/xdg/dunst/dunstrc
Also fixed the test-install script
2021-01-25 18:55:52 +01:00
fwsmit
bb12727bc0 Make compiling for wayland optional
This can be changed in config.mk or by using the command
        make WAYLAND=0

Also removed using_xwayland function definition as it isn't defined
anymore
2021-01-09 21:54:23 +01:00
fwsmit
705e575d6d Small fixes 2020-12-28 15:15:59 +01:00
fwsmit
72ceedd4db Fix notification not disappearing 2020-12-28 15:15:59 +01:00
fwsmit
4a9c7693f4 update wayland branch to a new master 2020-12-28 15:15:59 +01:00
Nikos Tsipinakis
523d5e199e Make all target build dunstify as well 2020-04-06 10:03:12 +02:00
braunbearded
c6f1f169a7 Always add libnotify as build dependency 2020-04-04 14:15:37 +02:00
Rihards Skuja
dcd3238327
Remove trailing spaces from MANPREFIX path
Variables with trailing comments include the spaces leading up to the
comment (https://www.gnu.org/software/make/manual/make.html#Flavors)
so the corresponding install command looked like
"install -Dm644 docs/dunst.1 $(DESTDIR)/usr/share/man /man1/dunst.1"
2019-02-03 11:24:02 +02:00
Benedikt Heine
4590514906 Replace Makefile commands with default variables 2019-02-02 16:50:59 +01:00
Benedikt Heine
6df6a50900 Use BINDIR, DATADIR and MANDIR in Makefile 2019-02-02 16:50:49 +01:00
Benedikt Heine
52885ca6ad Use a hashtable for notification actions
As g_strv_contains is only available in GLib >= 2.44, we have to bump
the GLib requirements and the CI distros, too.
2018-12-29 14:30:55 +01:00
Nikos Tsipinakis
baf0ec3e11 Remove dbus build flags
We haven't been using libdbus for a while so there is no use to
linking it with the build.
Unfortunately there is still a dependency on it as we depend on the dbus
package to tell us where to put our service files.
2018-11-26 16:05:50 +02:00
Benedikt Heine
403e4cc176 Remove libxdg-basedir dependency
GLib's g_get_user_config_dir function does exactly the same thing and
we don't need libxdg-basedir for something else.
2018-10-05 02:10:41 +02:00
dj95
a3034d5f62 Implement support for round corners 2018-05-28 13:36:45 +03:00
Nikos Tsipinakis
943b8c6785 Do not expand config.mk variables on assignment
Fix a bug introduced in 678ea70 where since the CFLAGS variable was
simply expanded it ignored the VERSION variable which was initialized
later.

Unfortunately there is no way to prepend a value to a recursively
expanded variable so instead we have to split the hardcoded compiler
flags into separate variables and combine them all later in the
makefile.

Fixes #500
2018-03-11 17:05:10 +02:00
Nikos Tsipinakis
678ea70c88 Put user CFLAGS after the predefined flags
This allows the usage of the CFLAGS variable to override existing
parameters (e.g. optimizations) without editing config.mk.
2018-03-09 19:54:46 +02:00
Nikos Tsipinakis
063e29fd1b Remove parsing of the X11LIB variable
X11LIB was introduced along with other similar variables such as X11INC
in 1faee75, before dunst used pkg-config to manage libraries. These
variables were removed after the introduction of pkg-config in 0de2e17
so theoretically it is safe to remove it.

I really hope this doesn't break something...
2018-03-09 19:54:46 +02:00
Alexey Kovac
68466f73ed add PKG_CONFIG make variable 2018-01-25 21:28:24 -02:00
Benedikt Heine
65043c00d4
Merge pull request #463 from bebehei/serviceprefix
Add configurable path variables for services
2017-12-29 00:49:02 +01:00
Benedikt Heine
573ea1de20 Use systemd as a soft dependency
Dunst does not neccessarily need systemd. Dunst gets started primarily
via DBus. The systemd service is useful on systemd init based systems,
but won't have any impact on non-systemd systems.

To make systemd a soft dependency is neccessary, as pkg-config now also
queries the systemd.pc file, which won't exist on non systemd systems.
2017-12-26 03:31:06 +01:00
Nikos Tsipinakis
0afdda11f3 Drop dependency on gtk3
As per discussion in #334 drop dependency on gtk3 and instead depend
only on gdk-pixbuf2 for icon loading.

The only gtk3 function used was gdk_cairo_set_source_pixbuf in order to
convert the loaded pixbufs into cairo surfaces for us to render. In
order to drop the dependency this step was bypassed by using pixbufs
export to png capability and importing it into cairo via a pngstream.
2017-12-22 22:27:08 +01:00
Benedikt Heine
4cf9114028 Require XRandR 1.5 in pkg-config to compile
Albeit it's possible to run with XRandR extension < 1.5,
dunst needs the headers of libxrandr 1.5.
2017-11-02 15:31:53 +01:00
Benedikt Heine
d07bdacab9 Introduce debug target 2017-10-26 17:11:05 +02:00
Benedikt Heine
bfc8b17c27 Reorganise CLFAGS/LDFLAGS handling 2017-10-22 04:11:34 +02:00
Benedikt Heine
e890052431 Restructure the Makefile (refactor) 2017-10-22 04:11:32 +02:00
Benedikt Heine
37d76ab0d1 Simplify dunstify flags 2017-10-22 04:10:20 +02:00
Benedikt Heine
3fc27e4004 Deprecate STATIC_CONFIG 2017-10-18 00:09:42 +02:00
Benedikt Heine
855d4bb860 depend on gtk3 instead of gtk2 2017-07-13 15:01:52 +02:00
Nikos Tsipinakis
b06475b4aa Remove remnants from the compile-time multi-monitor support
When the logic to use a setting to decide between RandR and xinerama
apparently the variable in config.mk and the travis tests were never
removed.
2017-07-12 16:45:04 +03:00
Nikos Tsipinakis
4573b92975 Start new release cycle
Update the default version name to non-git and add new unreleased
section to the changelog to start the new release cycle.
2017-07-12 16:42:31 +03:00
Nikos Tsipinakis
b069b2dba6 Dunst v1.2.0 2017-07-12 11:22:04 +03:00
Nikos Tsipinakis
1b6f9dbb29 Put the version in config.mk instead of a separate file
There is no need to have a separate VERSION file in release tarballs,
having the version in config.mk directly allows for a proper fallback in
case the git repository and the version file doesn't exists. The most
important example of this is the tarballs that github creates on every
release.
2017-07-12 11:15:22 +03:00
Nikos Tsipinakis
c547f6eec9 Add force_xinerama option
Since after the release a lot of downstream users will not be building
from source, it makes a lot more sense to have an option to fall back to
the Xinerama extension for those that are still on systems that do not
support RandR.
2017-07-10 14:38:20 +03:00
Nikos Tsipinakis
3357743210 Make selecting which multi-monitor selection to use simpler
Use a single MULTIMON variable which can be set to either xrandr,
xinerama or none and replace the previous system which used 2 variables
for each extension which were then added to CFLAGS and instead append
xrandr or xinerama respectively to pkg_config_packs so their
availability can be checked with pkg-config.

The main advantage of this is that the extension can now be set from
the command like like so 'MULTIMON=xinerama make'
2017-04-02 19:37:59 +03:00
Eizen
4dd628ccf4 Add auto-detect dpi method
If Xft.dpi value is not available, auto-detect value based on monitor using randr provided sizes.
Disable Xinerama and enable randr by default.
Also update dpi everytime the monitor changes.
2017-04-02 18:27:12 +03:00
Nikos Tsipinakis
3c38741e71 Remove unused dependencies
Remove xext and xft as a dependency since they are not currently used
and probably haven't been used a while.

Also remove freetype2 from the pkg-config list, while it is required by
pangocairo it should be included from the pkg-config --cflags call.
2017-04-01 18:52:15 +03:00
Nikos Tsipinakis
9dd4768a1f Switch to _DEFAULT_SOURCE, _BSD_SOURCE is deprecated 2016-11-17 19:50:00 +02:00
Johannes M. Griebler
33ab80f1a9 Merge icon handling from buglloc/master 2016-10-13 19:18:00 +02:00
Johannes M. Griebler
f1b0e83776 Take lightweight tags into account in VERSION 2016-10-13 19:08:59 +02:00
Andrew Krasichkov
b6f56be97b Added support for more image formats for icons ( see knopwob/dunst#150 ) 2015-11-15 21:16:37 +02:00
René 'Necoro' Neumann
36a858da3f Set dependency to '>=glib-2.36' as needed by the glib signal handler 2014-07-09 17:09:52 +02:00
Sascha Kruse
6715f74a47 use --std=gnu99 to get rid of compiler warnings 2014-03-08 12:08:39 +01:00
Sascha Kruse
75366af9fd make missing dependencies non fatal at make clean 2013-03-20 09:33:41 +00:00
Sascha Kruse
eb64867d43 remove unused INIFLAGS 2013-03-20 09:00:04 +00:00
Sascha Kruse
14d59c4d0c only add libxdg-basedir as dependency when needed 2013-03-20 08:54:44 +00:00
Sascha Kruse
555442eeb0 fix typo in config.mk 2013-03-20 08:22:19 +00:00
Sascha Kruse
b2883b2133 implement basic features with pango/cairo 2013-02-22 18:35:55 +00:00
Sascha Kruse
820cfe7315 Basic dbus functionality reintroduced 2013-02-18 04:30:57 +00:00
Sascha Kruse
78ed4d77c5 replace string strip functions with glib equivalent 2013-02-16 06:13:52 +01:00