Added PKG_ROOT variable to Makefile.
This commit is contained in:
parent
871f5add79
commit
42529fa427
2 changed files with 60 additions and 47 deletions
103
Makefile
103
Makefile
|
|
@ -6,7 +6,7 @@
|
||||||
# bill@newbreedsoftware.com
|
# bill@newbreedsoftware.com
|
||||||
# http://www.newbreedsoftware.com/tuxpaint/
|
# http://www.newbreedsoftware.com/tuxpaint/
|
||||||
|
|
||||||
# June 14, 2002 - October 23, 2004
|
# June 14, 2002 - October 24, 2004
|
||||||
|
|
||||||
|
|
||||||
# Where to install things:
|
# Where to install things:
|
||||||
|
|
@ -14,28 +14,33 @@
|
||||||
PREFIX=/usr/local
|
PREFIX=/usr/local
|
||||||
|
|
||||||
|
|
||||||
|
# Root directory to place files when creating packages.
|
||||||
|
|
||||||
|
PKG_ROOT=
|
||||||
|
|
||||||
|
|
||||||
# Program:
|
# Program:
|
||||||
|
|
||||||
BIN_PREFIX=$(PREFIX)/bin
|
BIN_PREFIX=$(PKG_ROOT)/$(PREFIX)/bin
|
||||||
|
|
||||||
|
|
||||||
# Data:
|
# Data:
|
||||||
|
|
||||||
DATA_PREFIX=$(PREFIX)/share/tuxpaint/
|
DATA_PREFIX=$(PKG_ROOT)/$(PREFIX)/share/tuxpaint/
|
||||||
|
|
||||||
|
|
||||||
# Docs and man page:
|
# Docs and man page:
|
||||||
|
|
||||||
DOC_PREFIX=$(PREFIX)/share/doc/tuxpaint/
|
DOC_PREFIX=$(PKG_ROOT)/$(PREFIX)/share/doc/tuxpaint/
|
||||||
MAN_PREFIX=$(PREFIX)/share/man/
|
MAN_PREFIX=$(PKG_ROOT)/$(PREFIX)/share/man/
|
||||||
|
|
||||||
|
|
||||||
# 'System-wide' Config file:
|
# 'System-wide' Config file:
|
||||||
|
|
||||||
ifeq ($(PREFIX),/usr)
|
ifeq ($(PREFIX),/usr)
|
||||||
CONFDIR=/etc/tuxpaint
|
CONFDIR=$(PKG_ROOT)/etc/tuxpaint
|
||||||
else
|
else
|
||||||
CONFDIR=$(PREFIX)/etc/tuxpaint
|
CONFDIR=$(PKG_ROOT)/$(PREFIX)/etc/tuxpaint
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -47,8 +52,8 @@ MIMESET_CMD=echo -n
|
||||||
|
|
||||||
# Icons and launchers:
|
# Icons and launchers:
|
||||||
|
|
||||||
ICON_PREFIX=$(PREFIX)/share/pixmaps/
|
ICON_PREFIX=$(PKG_ROOT)/$(PREFIX)/share/pixmaps/
|
||||||
X11_ICON_PREFIX=$(PREFIX)/X11R6/include/X11/pixmaps/
|
X11_ICON_PREFIX=$(PKG_ROOT)/$(PREFIX)/X11R6/include/X11/pixmaps/
|
||||||
GNOME_PREFIX=`gnome-config --prefix`
|
GNOME_PREFIX=`gnome-config --prefix`
|
||||||
KDE_PREFIX=`kde-config --install apps --expandvars`
|
KDE_PREFIX=`kde-config --install apps --expandvars`
|
||||||
KDE_ICON_PREFIX=`kde-config --install icon --expandvars`
|
KDE_ICON_PREFIX=`kde-config --install icon --expandvars`
|
||||||
|
|
@ -56,7 +61,7 @@ KDE_ICON_PREFIX=`kde-config --install icon --expandvars`
|
||||||
|
|
||||||
# Locale files
|
# Locale files
|
||||||
|
|
||||||
LOCALE_PREFIX=$(PREFIX)/share/locale/
|
LOCALE_PREFIX=$(PKG_ROOT)/$(PREFIX)/share/locale/
|
||||||
# LOCALE_PREFIX=/usr/share/locale/
|
# LOCALE_PREFIX=/usr/share/locale/
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -322,14 +327,14 @@ install-gnome:
|
||||||
@echo
|
@echo
|
||||||
@echo "...Installing launcher icon into GNOME..."
|
@echo "...Installing launcher icon into GNOME..."
|
||||||
@if [ "x$(GNOME_PREFIX)" != "x" ]; then \
|
@if [ "x$(GNOME_PREFIX)" != "x" ]; then \
|
||||||
install -d $(GNOME_PREFIX)/share/pixmaps; \
|
install -d $(PKG_ROOT)/$(GNOME_PREFIX)/share/pixmaps; \
|
||||||
cp data/images/icon.png $(GNOME_PREFIX)/share/pixmaps/tuxpaint.png; \
|
cp data/images/icon.png $(PKG_ROOT)/$(GNOME_PREFIX)/share/pixmaps/tuxpaint.png; \
|
||||||
chmod 644 $(GNOME_PREFIX)/share/pixmaps/tuxpaint.png; \
|
chmod 644 $(PKG_ROOT)/$(GNOME_PREFIX)/share/pixmaps/tuxpaint.png; \
|
||||||
install -d $(GNOME_PREFIX)/share/gnome/apps/Graphics; \
|
install -d $(PKG_ROOT)/$(GNOME_PREFIX)/share/gnome/apps/Graphics; \
|
||||||
cp src/tuxpaint.desktop $(GNOME_PREFIX)/share/gnome/apps/Graphics/; \
|
cp src/tuxpaint.desktop $(PKG_ROOT)/$(GNOME_PREFIX)/share/gnome/apps/Graphics/; \
|
||||||
chmod 644 $(GNOME_PREFIX)/share/gnome/apps/Graphics/tuxpaint.desktop; \
|
chmod 644 $(PKG_ROOT)/$(GNOME_PREFIX)/share/gnome/apps/Graphics/tuxpaint.desktop; \
|
||||||
else \
|
else \
|
||||||
make install-gnome GNOME_PREFIX=/usr; \
|
make install-gnome GNOME_PREFIX=$(PREFIX); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -339,57 +344,61 @@ install-kde:
|
||||||
@echo
|
@echo
|
||||||
@echo "...Installing launcher icon into KDE..."
|
@echo "...Installing launcher icon into KDE..."
|
||||||
@if [ "x$(KDE_PREFIX)" != "x" ]; then \
|
@if [ "x$(KDE_PREFIX)" != "x" ]; then \
|
||||||
install -d $(KDE_PREFIX)/Graphics; \
|
install -d $(PKG_ROOT)/$(KDE_PREFIX)/Graphics; \
|
||||||
cp src/tuxpaint.desktop $(KDE_PREFIX)/Graphics/; \
|
cp src/tuxpaint.desktop $(PKG_ROOT)/$(KDE_PREFIX)/Graphics/; \
|
||||||
chmod 644 $(KDE_PREFIX)/Graphics/tuxpaint.desktop; \
|
chmod 644 $(PKG_ROOT)/$(KDE_PREFIX)/Graphics/tuxpaint.desktop; \
|
||||||
|
else \
|
||||||
|
make KDE_PREFIX=$(PREFIX)/share/applnk install-kde; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
install-kde-icons:
|
install-kde-icons:
|
||||||
@echo "...Installing launcher icon graphics into KDE..."
|
@echo "...Installing launcher icon graphics into KDE..."
|
||||||
@if [ "x$(KDE_ICON_PREFIX)" != "x" ]; then \
|
@if [ "x$(KDE_ICON_PREFIX)" != "x" ]; then \
|
||||||
install -d $(KDE_ICON_PREFIX)/hicolor/scalable/apps/; \
|
install -d $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/scalable/apps/; \
|
||||||
install -d $(KDE_ICON_PREFIX)/hicolor/192x192/apps/; \
|
install -d $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/192x192/apps/; \
|
||||||
install -d $(KDE_ICON_PREFIX)/hicolor/128x128/apps/; \
|
install -d $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/128x128/apps/; \
|
||||||
install -d $(KDE_ICON_PREFIX)/hicolor/96x96/apps/; \
|
install -d $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/96x96/apps/; \
|
||||||
install -d $(KDE_ICON_PREFIX)/hicolor/64x64/apps/; \
|
install -d $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/64x64/apps/; \
|
||||||
install -d $(KDE_ICON_PREFIX)/hicolor/48x48/apps/; \
|
install -d $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/48x48/apps/; \
|
||||||
install -d $(KDE_ICON_PREFIX)/hicolor/32x32/apps/; \
|
install -d $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/32x32/apps/; \
|
||||||
install -d $(KDE_ICON_PREFIX)/hicolor/22x22/apps/; \
|
install -d $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/22x22/apps/; \
|
||||||
install -d $(KDE_ICON_PREFIX)/hicolor/16x16/apps/; \
|
install -d $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/16x16/apps/; \
|
||||||
cp data/images/tuxpaint-icon.svg \
|
cp data/images/tuxpaint-icon.svg \
|
||||||
$(KDE_ICON_PREFIX)/hicolor/scalable/apps/tuxpaint.svg; \
|
$(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/scalable/apps/tuxpaint.svg; \
|
||||||
chmod 644 $(KDE_ICON_PREFIX)/hicolor/scalable/apps/tuxpaint.svg; \
|
chmod 644 $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/scalable/apps/tuxpaint.svg; \
|
||||||
cp data/images/icon192x192.png \
|
cp data/images/icon192x192.png \
|
||||||
$(KDE_ICON_PREFIX)/hicolor/192x192/apps/tuxpaint.png; \
|
$(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/192x192/apps/tuxpaint.png; \
|
||||||
chmod 644 $(KDE_ICON_PREFIX)/hicolor/192x192/apps/tuxpaint.png; \
|
chmod 644 $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/192x192/apps/tuxpaint.png; \
|
||||||
cp data/images/icon128x128.png \
|
cp data/images/icon128x128.png \
|
||||||
$(KDE_ICON_PREFIX)/hicolor/128x128/apps/tuxpaint.png; \
|
$(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/128x128/apps/tuxpaint.png; \
|
||||||
chmod 644 $(KDE_ICON_PREFIX)/hicolor/128x128/apps/tuxpaint.png; \
|
chmod 644 $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/128x128/apps/tuxpaint.png; \
|
||||||
cp data/images/icon96x96.png \
|
cp data/images/icon96x96.png \
|
||||||
$(KDE_ICON_PREFIX)/hicolor/96x96/apps/tuxpaint.png; \
|
$(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/96x96/apps/tuxpaint.png; \
|
||||||
chmod 644 $(KDE_ICON_PREFIX)/hicolor/96x96/apps/tuxpaint.png; \
|
chmod 644 $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/96x96/apps/tuxpaint.png; \
|
||||||
cp data/images/icon64x64.png \
|
cp data/images/icon64x64.png \
|
||||||
$(KDE_ICON_PREFIX)/hicolor/64x64/apps/tuxpaint.png; \
|
$(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/64x64/apps/tuxpaint.png; \
|
||||||
chmod 644 $(KDE_ICON_PREFIX)/hicolor/64x64/apps/tuxpaint.png; \
|
chmod 644 $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/64x64/apps/tuxpaint.png; \
|
||||||
cp data/images/icon48x48.png \
|
cp data/images/icon48x48.png \
|
||||||
$(KDE_ICON_PREFIX)/hicolor/48x48/apps/tuxpaint.png; \
|
$(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/48x48/apps/tuxpaint.png; \
|
||||||
chmod 644 $(KDE_ICON_PREFIX)/hicolor/48x48/apps/tuxpaint.png; \
|
chmod 644 $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/48x48/apps/tuxpaint.png; \
|
||||||
cp data/images/icon32x32.png \
|
cp data/images/icon32x32.png \
|
||||||
$(KDE_ICON_PREFIX)/hicolor/32x32/apps/tuxpaint.png; \
|
$(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/32x32/apps/tuxpaint.png; \
|
||||||
chmod 644 $(KDE_ICON_PREFIX)/hicolor/32x32/apps/tuxpaint.png; \
|
chmod 644 $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/32x32/apps/tuxpaint.png; \
|
||||||
cp data/images/icon22x22.png \
|
cp data/images/icon22x22.png \
|
||||||
$(KDE_ICON_PREFIX)/hicolor/22x22/apps/tuxpaint.png; \
|
$(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/22x22/apps/tuxpaint.png; \
|
||||||
chmod 644 $(KDE_ICON_PREFIX)/hicolor/22x22/apps/tuxpaint.png; \
|
chmod 644 $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/22x22/apps/tuxpaint.png; \
|
||||||
cp data/images/icon16x16.png \
|
cp data/images/icon16x16.png \
|
||||||
$(KDE_ICON_PREFIX)/hicolor/16x16/apps/tuxpaint.png; \
|
$(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/16x16/apps/tuxpaint.png; \
|
||||||
chmod 644 $(KDE_ICON_PREFIX)/hicolor/16x16/apps/tuxpaint.png; \
|
chmod 644 $(PKG_ROOT)/$(KDE_ICON_PREFIX)/hicolor/16x16/apps/tuxpaint.png; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Install the PNG icon (for GNOME, KDE, etc.)
|
# Install the PNG icon (for GNOME, KDE, etc.)
|
||||||
# and the 24-color 32x32 XPM (for other Window managers):
|
# and the 24-color 32x32 XPM (for other Window managers):
|
||||||
|
|
||||||
|
# FIXME: Should this also use $(PKG_ROOT)?
|
||||||
|
|
||||||
install-icon:
|
install-icon:
|
||||||
@echo
|
@echo
|
||||||
@echo "...Installing launcher icon graphics..."
|
@echo "...Installing launcher icon graphics..."
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,10 @@ http://www.newbreedsoftware.com/tuxpaint/
|
||||||
* Chinese (Traditional) documentation updates.
|
* Chinese (Traditional) documentation updates.
|
||||||
Song Huang <Song@ossacc.org>
|
Song Huang <Song@ossacc.org>
|
||||||
|
|
||||||
|
* Added "PKG_ROOT" variable to Makefile for Tux Paint RPM building ease.
|
||||||
|
TOYAMA Shin-ichi <shin1@wmail.plala.or.jp>
|
||||||
|
|
||||||
|
|
||||||
2004.September.28 (0.9.14)
|
2004.September.28 (0.9.14)
|
||||||
* New Features:
|
* New Features:
|
||||||
-------------
|
-------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue