mr_bones_ 15/01/21 07:28:07
Added: zangband-2.7.4c-makefile.patch
zangband-2.7.4c-configure.patch
Log:
EAPI=5; tidy install; avoid bashism (bug #527202)
(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)
Revision Changes Path
1.1
games-roguelike/zangband/files/zangband-2.7.4c-makefile.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/zangband/files/zangband-2.7.4c-makefile.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/zangband/files/zangband-2.7.4c-makefile.patch?rev=1.1&content-type=text/plain
Index: zangband-2.7.4c-makefile.patch
===================================================================
--- makefile.in.orig
+++ makefile.in
@@ -111,17 +111,6 @@
%.o: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) $< -c -o $@ $(DEFS)
-##
-## Hack - make sure the build system is consistant.
-##
-makefile: configure makefile.in
- $(CONFIGURE)
-
-configure: configure.in
- aclocal
- autoheader
- autoconf
-
dirs:
-mkdir $(DESTDIR)
-mkdir $(addprefix $(DESTDIR),$(filter-out $(srcdirlist), $(dirlist)))
@@ -205,7 +194,7 @@
@echo $(srcdirlist) $(srcfiles)
# Hack to remake files depending on DEFAULT_PATH
-.default_path: makefile
+.default_path:
@if [ ! -r .default_path ]; then \
echo "$(DESTDIR)" > .default_path; \
fi
1.1
games-roguelike/zangband/files/zangband-2.7.4c-configure.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/zangband/files/zangband-2.7.4c-configure.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/zangband/files/zangband-2.7.4c-configure.patch?rev=1.1&content-type=text/plain
Index: zangband-2.7.4c-configure.patch
===================================================================
--- configure.in.orig
+++ configure.in
@@ -236,48 +236,5 @@
AC_CHECK_FUNCS([Tk_SetClassProcs TkpSync])
AC_CHECK_FUNCS([mkstemp usleep getpwuid getpwnam shmget])
-dnl A nice function to test compiler options (like warnings)
-AC_DEFUN(AC_CHECK_CC_OPT,
-[FLAG=`echo zangband_cv_cflag_$1 | sed s/-/_/g`
-AC_CACHE_CHECK([whether ${CC-cc} accepts $1],
-[$FLAG],
-[echo 'void f(void); void f(){}' > conftest.c
-if test -z "`${CC-cc} -c ${CFLAGS} $1 conftest.c 2>&1`"; then
- eval $FLAG=yes
-else
- eval $FLAG=no
-fi])
-if test ${!FLAG} = yes ; then
- CFLAGS="$1 $CFLAGS"
-fi
-])
-
-dnl Check for lots of extra warning options
-AC_CHECK_CC_OPT(-pedantic)
-AC_CHECK_CC_OPT(-W)
-AC_CHECK_CC_OPT(-Wall)
-AC_CHECK_CC_OPT(-Wmissing-prototypes)
-AC_CHECK_CC_OPT(-Wmissing-declarations)
-AC_CHECK_CC_OPT(-Wno-long-long)
-AC_CHECK_CC_OPT(-Wwrite-strings)
-AC_CHECK_CC_OPT(-Wpointer-arith)
-AC_CHECK_CC_OPT(-Wbad-function-cast)
-AC_CHECK_CC_OPT(-Waggregate-return)
-AC_CHECK_CC_OPT(-Wstrict-prototypes)
-AC_CHECK_CC_OPT(-Wredundant-decls)
-dnl AC_CHECK_CC_OPT(-Wunreachable-code)
-AC_CHECK_CC_OPT(-Wchar-subscripts)
-AC_CHECK_CC_OPT(-Wimplicit)
-AC_CHECK_CC_OPT(-Wparentheses)
-AC_CHECK_CC_OPT(-Wsequence-point)
-AC_CHECK_CC_OPT(-Wreturn-type)
-AC_CHECK_CC_OPT(-Wswitch)
-AC_CHECK_CC_OPT(-Wunused)
-AC_CHECK_CC_OPT(-Wuninitialized)
-AC_CHECK_CC_OPT(-Wundef)
-AC_CHECK_CC_OPT(-Wnested-externs)
-AC_CHECK_CC_OPT(-Wdeclaration-after-statement)
-AC_CHECK_CC_OPT(-Wsign-compare)
-
AC_CONFIG_FILES([makefile])
AC_OUTPUT