diff options
author | Dan Nicholson <[email protected]> | 2007-09-12 10:03:31 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-09-12 10:03:31 -0600 |
commit | 96efc76d7418d1d6591fc89c89e50de6458d339f (patch) | |
tree | 36a38dc5ff9b42eb55a9052024aa9aa1a8fcaba6 /src/glu/Makefile | |
parent | 6ca0d636928c28d1bfa714a5fa96693a3d1a97ab (diff) |
pkg-config support
Diffstat (limited to 'src/glu/Makefile')
-rw-r--r-- | src/glu/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/glu/Makefile b/src/glu/Makefile index b8c55db6d0a..836baa684cb 100644 --- a/src/glu/Makefile +++ b/src/glu/Makefile @@ -13,9 +13,19 @@ default: $(TOP)/configs/current (cd $$dir ; $(MAKE)) ; \ done -install: +# GLU pkg-config file +pcedit = sed \ + -e 's,@INSTALL_DIR@,$(INSTALL_DIR),' \ + -e 's,@LIB_DIR@,$(LIB_DIR),' \ + -e 's,@VERSION@,$(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY),' +glu.pc: glu.pc.in + $(pcedit) $< > $@ + +install: glu.pc $(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR) + $(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)/pkgconfig $(INSTALL) $(TOP)/$(LIB_DIR)/libGLU.* $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR) + $(INSTALL) -m 644 glu.pc $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)/pkgconfig clean: @for dir in $(SUBDIRS) ; do \ |