pidgin/pidgin
Clone
Summary
Browse
Changes
Graph
Install our appdata file to $(datadir)/metainfo as that change was made a long time ago
release-2.x.y
2021-04-09, Gary Kramlich
a817d80eeb79
Install our appdata file to $(datadir)/metainfo as that change was made a long time ago
This patch originates from Lars Wendler from Gentoo
https://gitweb.gentoo.org/repo/gentoo.git/commit/net-im/pidgin/files/pidgin-2.13.0-metainfo.patch?id=2dd6c1852251b5b67c3045badf173be9535b97a9
Testing Done:
Installed to a prefix and verified the file ended up in `$prefix/share/metainfo`
Reviewed at https://reviews.imfreedom.org/r/607/
# Makefile.mingw
#
# Description: Makefile to generate mo files
#
PIDGIN_TREE_TOP
:=
..
include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
PACKAGE
=
pidgin
.SUFFIXES
:
.SUFFIXES
:
.
po
.
gmo
##
## SOURCES, OBJECTS
##
CATALOGS
=
$(
patsubst
%.po,%.gmo,
$(
wildcard
*.po
))
##
## RULES
##
.po.gmo
:
rm
-f
$@
&&
$(
GMSGFMT
)
--statistics
-o
$@
$<
##
## TARGETS
##
.PHONY
:
all
install
clean
all
:
$(
CATALOGS
)
install
:
all
mkdir
-p
$(
PURPLE_INSTALL_PO_DIR
)
@catalogs
=
'$(CATALOGS)'
;
\
for
cat
in
$$
catalogs
;
do
\
cat
=
`
basename
$$
cat
`
;
\
lang
=
`
echo
$$
cat
|
sed
's/\.gmo$$//'
`
;
\
dir
=
$(
PURPLE_INSTALL_PO_DIR
)
/
$$
lang/LC_MESSAGES
;
\
mkdir
-p
$$
dir
;
\
if test -r $$cat; then \
cp $$cat $$dir/$(PACKAGE).mo; \
echo "installing $$cat as $$dir/$(PACKAGE).mo"; \
else \
cp $(PURPLE_PO_TOP)/$$cat $$dir/$(PACKAGE).mo; \
echo "installing $(PURPLE_PO_TOP)/$$cat as" \
"$$dir/$(PACKAGE).mo"; \
fi; \
done
clean
:
rm
-f
*.gmo