$NetBSD: patch-aa,v 1.9 2010/09/18 08:02:30 obache Exp $ --- makefile.in.orig 2007-07-22 05:55:54.000000000 +0000 +++ makefile.in @@ -58,7 +58,7 @@ ACLOCAL_M4 = aclocal.m4 INCLUDES = -I. -Iinclude -Iinclude/allegro -I$(srcdir)/include -I$(srcdir)/include/allegro DEFS = -DALLEGRO_MODULES_PATH=\"$(libdir)/allegro\" @DEFS@ -CPPFLAGS = @CPPFLAGS@ +CPPFLAGS = @CPPFLAGS@ -DINSTPREFIX=\"$(prefix)\" override LDFLAGS += @LDFLAGS@ PROG_LDFLAGS = @PROG_LDFLAGS@ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) @@ -400,34 +400,34 @@ examples: $(EXAMPLE_FILES) clean: - define RM_OBJ_CLEAN_FILES - $(foreach file, $(OBJ_CLEAN_FILES), rm -f $(file) - ) - endef - - define RM_OTHER_CLEAN_FILES - $(foreach file, $(OTHER_CLEAN_FILES), rm -f $(file) - ) - endef + define RM_OBJ_CLEAN_FILES + $(foreach file, $(OBJ_CLEAN_FILES), rm -f $(file) + ) + endef + + define RM_OTHER_CLEAN_FILES + $(foreach file, $(OTHER_CLEAN_FILES), rm -f $(file) + ) + endef $(RM_OBJ_CLEAN_FILES) $(RM_OTHER_CLEAN_FILES) distclean: clean - define RM_DISTCLEAN_FILES - $(foreach file, $(DISTCLEAN_FILES) $(ALLEGRO_LIB_X_EXES), rm -f $(file) - ) - endef + define RM_DISTCLEAN_FILES + $(foreach file, $(DISTCLEAN_FILES) $(ALLEGRO_LIB_X_EXES), rm -f $(file) + ) + endef $(RM_DISTCLEAN_FILES) veryclean: distclean - define RM_VERYCLEAN_FILES - $(foreach file, $(VERYCLEAN_FILES), rm -f $(file) - ) - endef + define RM_VERYCLEAN_FILES + $(foreach file, $(VERYCLEAN_FILES), rm -f $(file) + ) + endef $(RM_VERYCLEAN_FILES) rm -f makefile @@ -480,17 +480,7 @@ install-lib: lib modules fi $(mkinstalldirs) $(DESTDIR)$(bindir) @echo Installing allegro-config to $(DESTDIR)$(bindir) - @$(INSTALL_PROGRAM) allegro-config $(DESTDIR)$(bindir) - @if test -n "$(LIBDIR)/liball*-$(shared_version).so"; then \ - (cat /etc/ld.so.conf | grep $(libdir) >/dev/null || \ - test $(libdir) = /lib || test $(libdir) = /usr/lib) \ - && ($(LDCONFIG) $(libdir) || true) || (\ - echo "" ; \ - echo "Warning: shared library destination $(libdir) is not in ldd search path." ; \ - echo "Unless you add it to /etc/ld.so.conf, you must set LD_LIBRARY_PATH to include"; \ - echo "$(libdir) each time you want to run an Allegro program." ; \ - ) ; \ - fi + @$(BSD_INSTALL_SCRIPT) allegro-config $(DESTDIR)$(bindir) @for l in alleg alld allp; do \ if test -f $(DESTDIR)$(libdir)/lib$${l}-$(shared_version).so -a \! -h $(DESTDIR)$(libdir)/lib$${l}.so.${shared_major_minor}; then \ (cd $(DESTDIR)$(libdir); ln -s lib$${l}-$(shared_version).so lib$${l}.so.${shared_major_minor}); \