X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=ucw%2Fperl%2FUCW%2FConfigure%2FPaths.pm;h=f28ccb129cc2597d3f82d9a3e0e4a0fe446535ab;hb=a1fdee4766b969fd0786e3286ce878a2a1142bbd;hp=ecfa2caa3c19d466ad6ed22dabd740eb213278c6;hpb=ad920945145a18895ef391511c92ef42e0e4c3d7;p=libucw.git diff --git a/ucw/perl/UCW/Configure/Paths.pm b/ucw/perl/UCW/Configure/Paths.pm index ecfa2caa..f28ccb12 100644 --- a/ucw/perl/UCW/Configure/Paths.pm +++ b/ucw/perl/UCW/Configure/Paths.pm @@ -1,5 +1,5 @@ # UCW Library configuration system: installation paths -# (c) 2005--2008 Martin Mares +# (c) 2005--2009 Martin Mares # (c) 2006 Robert Spalek # (c) 2008 Michal Vaner @@ -27,17 +27,20 @@ if (IsSet("CONFIG_LOCAL")) { Log(Get("PREFIX") . "\n"); } -Set("INSTALL_CONFIG_DIR", '$(INSTALL_PREFIX)$(CONFIG_DIR)'); -Set("INSTALL_BIN_DIR", '$(INSTALL_USR_PREFIX)bin'); -Set("INSTALL_SBIN_DIR", '$(INSTALL_USR_PREFIX)sbin'); -Set("INSTALL_LIB_DIR", '$(INSTALL_USR_PREFIX)lib'); -Set("INSTALL_INCLUDE_DIR", '$(INSTALL_USR_PREFIX)include'); -Set("INSTALL_PKGCONFIG_DIR", '$(INSTALL_USR_PREFIX)lib/pkgconfig'); -Set("INSTALL_SHARE_DIR", '$(INSTALL_USR_PREFIX)share'); -Set("INSTALL_MAN_DIR", '$(INSTALL_USR_PREFIX)share/man'); -Set("INSTALL_LOG_DIR", '$(INSTALL_VAR_PREFIX)log'); -Set("INSTALL_STATE_DIR", '$(INSTALL_VAR_PREFIX)lib'); -Set("INSTALL_RUN_DIR", '$(INSTALL_VAR_PREFIX)run'); +Set('CONFIG_DIR', 'etc') unless IsSet('CONFIG_DIR'); +Set('INSTALL_CONFIG_DIR', Get('INSTALL_PREFIX') . Get('CONFIG_DIR')); +Set('INSTALL_BIN_DIR', Get('INSTALL_USR_PREFIX') . 'bin'); +Set('INSTALL_SBIN_DIR', Get('INSTALL_USR_PREFIX') . 'sbin'); +Set('INSTALL_LIB_DIR', Get('INSTALL_USR_PREFIX') . 'lib'); +Set('INSTALL_INCLUDE_DIR', Get('INSTALL_USR_PREFIX') . 'include'); +Set('INSTALL_PKGCONFIG_DIR', Get('INSTALL_USR_PREFIX') . 'lib/pkgconfig'); +Set('INSTALL_SHARE_DIR', Get('INSTALL_USR_PREFIX') . 'share'); +Set('INSTALL_MAN_DIR', Get('INSTALL_USR_PREFIX') . 'share/man'); +Set('INSTALL_LOG_DIR', Get('INSTALL_VAR_PREFIX') . 'log'); +Set('INSTALL_STATE_DIR', Get('INSTALL_VAR_PREFIX') . 'lib'); +Set('INSTALL_RUN_DIR', Get('INSTALL_VAR_PREFIX') . 'run'); +Set('INSTALL_DOC_DIR', Get('INSTALL_USR_PREFIX') . 'share/doc'); +Set('INSTALL_PERL_DIR', Get('INSTALL_LIB_DIR') . '/perl5'); # Remember PKG_CONFIG_PATH used for building, so that it will be propagated to # pkg-config's run locally in the makefiles.