elinks: Fix configure cache var for complex paths
authorMichael Büsch <mb@bu3sch.de>
Thu, 4 Nov 2010 18:12:56 +0000 (18:12 +0000)
committerMichael Büsch <mb@bu3sch.de>
Thu, 4 Nov 2010 18:12:56 +0000 (18:12 +0000)
SVN-Revision: 23874

net/elinks/Makefile

index 42b0f53..db2970c 100644 (file)
@@ -30,10 +30,14 @@ define Package/elinks/description
 An advanced text based web browser
 endef
 
+SHVAR_TRANS:= \
+       $(STAGING_DIR_HOST)/bin/sed -e \
+       'y%*+%pp%;s%[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]%_%g'
+
 define Build/Configure
  (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
-                x=`echo ac_cv_file_./features.conf | tr [:blank:]-/. _` && export $$$${x}=yes && \
-                x=`echo ac_cv_file_$(PKG_BUILD_DIR)/features.conf | tr [:blank:]-/. _` && export $$$${x}=yes && \
+                x=`echo ac_cv_file_./features.conf | $(SHVAR_TRANS)` && export $$$${x}=yes && \
+                x=`echo ac_cv_file_$(abspath $(PKG_BUILD_DIR)/features.conf) | $(SHVAR_TRANS)` && export $$$${x}=yes && \
                 $(TARGET_CONFIGURE_OPTS) \
                 CFLAGS="$(TARGET_CFLAGS)" \
                 CPPFLAGS="$(TARGET_CPPFLAGS)" \