Ticket #311: postgis-contrib-directory-hack.patch

File postgis-contrib-directory-hack.patch, 0.6 KB (added by mcayland, 2 years ago)
  • postgis/Makefile.in

     
    7878PGXS := @PGXS@ 
    7979include $(PGXS) 
    8080 
     81# We actually want data files to be stored under DATADIR/contrib/postgis-X.Y 
     82# so as a hack we override datadir as set by PGXS 
     83datadir:=$(DESTDIR)$(datadir)/contrib/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@ 
     84 
    8185# If REGRESS=1 passed as a parameter, change the default install paths 
    8286# so that no prefix is included. This allows us to relocate to a temporary 
    8387# directory for regression testing.