[AD] Patches for building Allegro as non-root user |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Hi,
Here are two patches, both of which I posted on the Allegro list
a few days ago, to make Allegro more easily buildable as a
normal user. Use "--prefix=~" or something similar. You will
need to set up various environment variables to get your
programs to build and run.
The second patch also makes the `uninstall' target not delete
the shared libraries, since they might be required by
already-compiled programs. Maybe there's a need for another
target to also delete the shared libraries, I don't know -- the
reason I wanted to change this is that without this change, if
you upgrade by doing a `make uninstall' followed by a `make
install' in a newer Allegro tree, all programs linked to the old
version will no longer work.
George
--
Random project update:
19/03/2000: Libnet 0.10.6 uploaded -- bugfixes and new features, of course!
http://www.canvaslink.com/libnet/ (try changes-0.10.6.txt)
--- makefile.in.old Thu Apr 27 01:40:04 2000
+++ makefile.in Thu Apr 27 01:41:19 2000
@@ -253,9 +253,10 @@
$(INSTALL_DATA) $(LIBDIR)/lib$${l}_unsharable.a $(libdir)/; \
fi; \
done
+ $(mkinstalldirs) $(bindir)
@echo Installing allegro-config to $(bindir)
@$(INSTALL_PROGRAM) allegro-config $(bindir)
- $(LDCONFIG) $(libdir)
+ -$(LDCONFIG) $(libdir)
install-headers:
$(mkinstalldirs) $(includedir)/allegro
--- makefile.in.1 Thu Apr 27 15:55:14 2000
+++ makefile.in Thu Apr 27 17:03:21 2000
@@ -280,8 +280,9 @@
install-info:
@echo Installing Allegro info documentation...
+ $(mkinstalldirs) $(infodir)
@$(INSTALL_DATA) docs/allegro.info $(infodir)
- @if $(SHELL) -c "$(INSTALL_INFO) --version" >/dev/null 2>&1; then \
+ -@domain.hid $(SHELL) -c "$(INSTALL_INFO) --version" >/dev/null 2>&1; then \
if $(INSTALL_INFO) --version 2>&1 | grep -q "Debian"; then \
$(INSTALL_INFO) --section Development -- $(infodir)/allegro.info; \
else \
@@ -308,12 +309,12 @@
uninstall-lib:
@echo "Uninstalling libraries..."
@for l in alleg alld allp; do \
- rm -f $(libdir)/lib$${l}-$(shared_version).so; \
+ echo rm -f $(libdir)/lib$${l}-$(shared_version).so; \
rm -f $(libdir)/lib$${l}_unsharable.a; \
rm -f $(libdir)/lib$${l}.a; \
done
rm -f $(bindir)/allegro-config
- $(LDCONFIG) $(libdir)
+ -$(LDCONFIG) $(libdir)
uninstall-headers:
rm -f $(includedir)/allegro.h