$NetBSD: patch-bc,v 1.1.1.1 2011/02/03 18:57:15 drochner Exp $ --- projects/Makefile.orig 2011-02-02 18:42:10.000000000 +0000 +++ projects/Makefile @@ -5,24 +5,23 @@ MKDIR = mkdir -p SOVER=${MAJOR}.${MINOR} install: force - ${MKDIR} $(prefix)/lib/gnat/ - ${MKDIR} $(prefix)/lib/gnat/gtkada - $(MKDIR) $(prefix)/lib/pkgconfig/ - ${CP} gtkada.pc $(prefix)/lib/pkgconfig/ - -${RM} ${prefix}/projects/gtkada* + ${MKDIR} $(DESTDIR)$(prefix)/lib/gnat/ + ${MKDIR} $(DESTDIR)$(prefix)/lib/gnat/gtkada + $(MKDIR) $(DESTDIR)$(prefix)/lib/pkgconfig/ + ${CP} gtkada.pc $(DESTDIR)$(prefix)/lib/pkgconfig/ ./generate_prj.sh GtkAda "${prefix}" ${DEFAULT_LIBRARY_TYPE} ${SOVER} "" - ${CP} gtkada.gpr ${prefix}/lib/gnat/ + ${CP} gtkada.gpr $(DESTDIR)${prefix}/lib/gnat/ ifeq ($(HAVE_LIBGLADE), True) ./generate_prj.sh GtkAda_Glade "${prefix}" ${DEFAULT_LIBRARY_TYPE} ${SOVER} "" - ${CP} gtkada_glade.gpr ${prefix}/lib/gnat/ + ${CP} gtkada_glade.gpr $(DESTDIR)${prefix}/lib/gnat/ endif ifeq ($(HAVE_OPENGL), True) ./generate_prj.sh GtkAda_GL "${prefix}" ${DEFAULT_LIBRARY_TYPE} ${SOVER} opengl - ${CP} gtkada_gl.gpr ${prefix}/lib/gnat/ + ${CP} gtkada_gl.gpr $(DESTDIR)${prefix}/lib/gnat/ endif ifeq ($(HAVE_GNOME), True) ./generate_prj.sh GtkAda_Gnome "${prefix}" ${DEFAULT_LIBRARY_TYPE} ${SOVER} "" - ${CP} gtkada_gnome.gpr ${prefix}/lib/gnat/ + ${CP} gtkada_gnome.gpr $(DESTDIR)${prefix}/lib/gnat/ endif ifeq ($(OS),Windows_NT) ${CP} gtkada_install_*.gpr ${prefix}/include/gtkada