File bomberclone-0.11.9-dirs.patch of Package bomberclone
Index: Makefile.am
===================================================================
--- Makefile.am.orig
+++ Makefile.am
@@ -5,16 +5,12 @@
SUBDIRS = data include src
-bomberclonedocdir = ${prefix}/share/doc/bomberclone
-bomberclonedoc_DATA = \
+doc_DATA = \
README\
COPYING\
AUTHORS\
ChangeLog\
- INSTALL\
- NEWS\
- TODO \
- bomberclone.nsi
+ TODO
EXTRA_DIST = bomberclone.prj $(bomberclonedoc_DATA)
Index: configure.in
===================================================================
--- configure.in.orig
+++ configure.in
@@ -225,63 +225,9 @@ dnl Checks for Additional stuffs.
-dnl Set PACKAGE SOURCE DIR in config.h.
-packagesrcdir=`cd $srcdir && pwd`
-
-dnl Set PACKAGE PREFIX
-if test "x${prefix}" = "xNONE"; then
- packageprefix=${ac_default_prefix}
-else
- packageprefix=${prefix}
-fi
-
-dnl Set PACKAGE DATA & DOC DIR
-packagedatadir=share/games/${PACKAGE}
-packagedocdir=share/doc/${PACKAGE}
-
-dnl Set PACKAGE DIRS in config.h.
-packagepixmapsdir=${packagedatadir}/pixmaps
-packagehelpdir=${packagedatadir}/help
-packagemenudir=${packagedatadir}
-
-dnl Subst PACKAGE_DATA_DIR.
-NO_PREFIX_PACKAGE_DATA_DIR="${packagedatadir}"
-AC_SUBST(NO_PREFIX_PACKAGE_DATA_DIR)
-PACKAGE_DATA_DIR="${packageprefix}/${packagedatadir}"
-AC_SUBST(PACKAGE_DATA_DIR)
-
-dnl Subst PACKAGE_DOC_DIR.
-NO_PREFIX_PACKAGE_DOC_DIR="${packagedocdir}"
-AC_SUBST(NO_PREFIX_PACKAGE_DOC_DIR)
-PACKAGE_DOC_DIR="${packageprefix}/${packagedocdir}"
-AC_SUBST(PACKAGE_DOC_DIR)
-
-dnl Subst PACKAGE_PIXMAPS_DIR.
-NO_PREFIX_PACKAGE_PIXMAPS_DIR="${packagepixmapsdir}"
-AC_SUBST(NO_PREFIX_PACKAGE_PIXMAPS_DIR)
-PACKAGE_PIXMAPS_DIR="${packageprefix}/${packagepixmapsdir}"
-AC_SUBST(PACKAGE_PIXMAPS_DIR)
-
-dnl Subst PACKAGE_HELP_DIR.
-NO_PREFIX_PACKAGE_HELP_DIR="${packagehelpdir}"
-AC_SUBST(NO_PREFIX_PACKAGE_HELP_DIR)
-PACKAGE_HELP_DIR="${packageprefix}/${packagehelpdir}"
-AC_SUBST(PACKAGE_HELP_DIR)
-
-dnl Subst PACKAGE_MENU_DIR.
-NO_PREFIX_PACKAGE_MENU_DIR="${packagemenudir}"
-AC_SUBST(NO_PREFIX_PACKAGE_MENU_DIR)
-PACKAGE_MENU_DIR="${packageprefix}/${packagemenudir}"
-AC_SUBST(PACKAGE_MENU_DIR)
-
AM_CONDITIONAL(MINGW32, test x$MINGW32 = xyes)
-AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${packageprefix}/${packagedatadir}")
-AC_DEFINE_UNQUOTED(PACKAGE_DOC_DIR, "${packageprefix}/${packagedocdir}")
-AC_DEFINE_UNQUOTED(PACKAGE_PIXMAPS_DIR, "${packageprefix}/${packagepixmapsdir}")
-AC_DEFINE_UNQUOTED(PACKAGE_HELP_DIR, "${packageprefix}/${packagehelpdir}")
-AC_DEFINE_UNQUOTED(PACKAGE_MENU_DIR, "${packageprefix}/${packagemenudir}")
-AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}")
+AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}")
AC_OUTPUT([
Makefile
Index: data/Makefile.am
===================================================================
--- data/Makefile.am.orig
+++ data/Makefile.am
@@ -17,8 +17,8 @@ install: install-recursive
@if test ! -d ${DESTDIR}; then \
mkdir -p ${DESTDIR}; \
fi;
- @if test ! -d ${DESTDIR}@PACKAGE_DATA_DIR@; then \
- mkdir -p ${DESTDIR}@PACKAGE_DATA_DIR@; \
+ @if test ! -d ${DESTDIR}$(pkgdatadir); then \
+ mkdir -p ${DESTDIR}$(pkgdatadir); \
fi;
# cp -rf player ${DESTDIR}@PACKAGE_DATA_DIR@
# cp -rf maps ${DESTDIR}@PACKAGE_DATA_DIR@
@@ -27,6 +27,6 @@ install: install-recursive
# cp -rf music ${DESTDIR}@PACKAGE_DATA_DIR@
uninstall: uninstall-recursive
- rm -rf ${DESTDIR}@PACKAGE_DATA_DIR@
+ rm -rf ${DESTDIR}$(pkgdatadir)
EXTRA_DIST =
Index: data/gfx/Makefile.am
===================================================================
--- data/gfx/Makefile.am.orig
+++ data/gfx/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_gfxdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/gfx
+bomberclone_gfxdir = $(pkgdatadir)/gfx
bomberclone_gfx_DATA = \
menu0.png \
Index: data/maps/Makefile.am
===================================================================
--- data/maps/Makefile.am.orig
+++ data/maps/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_mapsdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/maps
+bomberclone_mapsdir = $(pkgdatadir)/maps
bomberclone_maps_DATA = \
first.map \
Index: data/music/Makefile.am
===================================================================
--- data/music/Makefile.am.orig
+++ data/music/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_musicdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/music
+bomberclone_musicdir = $(pkgdatadir)/music
bomberclone_music_DATA = \
cerror-bobmberclone.xm \
Index: data/pixmaps/Makefile.am
===================================================================
--- data/pixmaps/Makefile.am.orig
+++ data/pixmaps/Makefile.am
@@ -4,10 +4,9 @@
## If you don't want it to overwrite it,
## Please disable it in the Anjuta project configuration
-bomberclone_pixmapsdir = $(prefix)/@NO_PREFIX_PACKAGE_PIXMAPS_DIR@
+bomberclone_pixmapsdir = $(datarootdir)/pixmaps
bomberclone_pixmaps_DATA = \
- bomberclone.png \
- bomberclone.ico
+ bomberclone.png
EXTRA_DIST = $(bomberclone_pixmaps_DATA)
Index: data/player/Makefile.am
===================================================================
--- data/player/Makefile.am.orig
+++ data/player/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_playerdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/player
+bomberclone_playerdir = $(pkgdatadir)/player
bomberclone_player_DATA = \
dead0.png \
Index: data/tileset/cemetery/Makefile.am
===================================================================
--- data/tileset/cemetery/Makefile.am.orig
+++ data/tileset/cemetery/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/cementery
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/cementery
bomberclone_tileset_DATA = \
background.png \
Index: data/tileset/classic/Makefile.am
===================================================================
--- data/tileset/classic/Makefile.am.orig
+++ data/tileset/classic/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/classic
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/classic
bomberclone_tileset_DATA = \
background.png \
Index: data/tileset/cucumber/Makefile.am
===================================================================
--- data/tileset/cucumber/Makefile.am.orig
+++ data/tileset/cucumber/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/cucumber
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/cucumber
bomberclone_tileset_DATA = \
dead.wav \
Index: data/tileset/default/Makefile.am
===================================================================
--- data/tileset/default/Makefile.am.orig
+++ data/tileset/default/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/default
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/default
bomberclone_tileset_DATA = \
dead.wav \
Index: data/tileset/farm/Makefile.am
===================================================================
--- data/tileset/farm/Makefile.am.orig
+++ data/tileset/farm/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/farm
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/farm
bomberclone_tileset_DATA = \
background.png \
Index: data/tileset/hell/Makefile.am
===================================================================
--- data/tileset/hell/Makefile.am.orig
+++ data/tileset/hell/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/hell
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/hell
bomberclone_tileset_DATA = \
background.png \
Index: data/tileset/jungle/Makefile.am
===================================================================
--- data/tileset/jungle/Makefile.am.orig
+++ data/tileset/jungle/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/jungle
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/jungle
bomberclone_tileset_DATA = \
background.png \
Index: data/tileset/modern/Makefile.am
===================================================================
--- data/tileset/modern/Makefile.am.orig
+++ data/tileset/modern/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/modern
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/modern
bomberclone_tileset_DATA = \
dead.wav \
Index: data/tileset/radioactive/Makefile.am
===================================================================
--- data/tileset/radioactive/Makefile.am.orig
+++ data/tileset/radioactive/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/radioactive
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/radioactive
bomberclone_tileset_DATA = \
background.png \
Index: data/tileset/sheep/Makefile.am
===================================================================
--- data/tileset/sheep/Makefile.am.orig
+++ data/tileset/sheep/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/sheep
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/sheep
bomberclone_tileset_DATA = \
background.png \
Index: data/tileset/supermario/Makefile.am
===================================================================
--- data/tileset/supermario/Makefile.am.orig
+++ data/tileset/supermario/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/supermario
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/supermario
bomberclone_tileset_DATA = \
background.png \
Index: data/tileset/tricked/Makefile.am
===================================================================
--- data/tileset/tricked/Makefile.am.orig
+++ data/tileset/tricked/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/tricked
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/tricked
bomberclone_tileset_DATA = \
dead.wav \
Index: data/tileset/uccia_garbage/Makefile.am
===================================================================
--- data/tileset/uccia_garbage/Makefile.am.orig
+++ data/tileset/uccia_garbage/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/uccia_garbage
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/uccia_garbage
bomberclone_tileset_DATA = \
dead.wav \
Index: data/tileset/zbb_frog/Makefile.am
===================================================================
--- data/tileset/zbb_frog/Makefile.am.orig
+++ data/tileset/zbb_frog/Makefile.am
@@ -1,5 +1,5 @@
-bomberclone_tilesetdir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/tileset/zbb_frog
+bomberclone_tilesetdir = $(pkgdatadir)/tileset/zbb_frog
bomberclone_tileset_DATA = \
background.png \