autotools: install themes during 'make install'

Default path for themes is ${pkgdatadir}/themes that usualy equals to
/usr/share/profanity/themes. This patch also introduces new option
--with-themes[=PATH] that specifies installation path. This option can
be used for cancel of installation at all: --without-themes.

References: issue #323
This commit is contained in:
Dmitry Podgorny
2014-04-08 00:46:43 +03:00
parent 73437f2efd
commit 3ceb9b0d1d
2 changed files with 28 additions and 0 deletions

View File

@@ -90,6 +90,16 @@ otr3_sources = \
otr4_sources = \
src/otr/otrlib.h src/otr/otrlibv4.c src/otr/otr.h src/otr/otr.c
themes_sources = \
themes/aqua \
themes/boothj5 \
themes/hacker \
themes/headache \
themes/original \
themes/redsplash \
themes/whiteness \
themes/yellowsplash
if BUILD_OTR
if BUILD_OTR3
core_sources += $(otr3_sources)
@@ -103,6 +113,10 @@ endif
bin_PROGRAMS = profanity
profanity_SOURCES = $(core_sources) $(main_source)
if THEMES_INSTALL
profanity_themesdir = @THEMES_PATH@
profanity_themes_DATA = $(themes_sources)
endif
if INCLUDE_GIT_VERSION
BUILT_SOURCES = $(git_include)
endif