Author: beat
Date: Fri Mar 23 07:26:50 2012
New Revision: 705

Log:
- Make the nsDeviceContextSpecG.cpp check work in a reliable way. For the
  sake of consistency also change the nsSound.cpp check.

Reported by:    flo

Modified:
   branches/experimental/Mk/bsd.gecko.mk

Modified: branches/experimental/Mk/bsd.gecko.mk
==============================================================================
--- branches/experimental/Mk/bsd.gecko.mk       Thu Mar 22 07:41:39 2012        
(r704)
+++ branches/experimental/Mk/bsd.gecko.mk       Fri Mar 23 07:26:50 2012        
(r705)
@@ -832,14 +832,14 @@
        @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \
                s|%%LOCALBASE%%|${LOCALBASE}|g' \
                        ${MOZSRC}/build/unix/run-mozilla.sh
-.if exists(${MOZSRC}/widget/src/gtk2/nsSound.cpp)
-       @${REINPLACE_CMD} -E -e 's|libesd\.so\.[0-9]+|libesd.so|g' \
-               ${MOZSRC}/widget/src/gtk2/nsSound.cpp
-.endif
-.if !exists(${MOZSRC}/widget/gtk2/nsDeviceContextSpecG.cpp)
-       @${REINPLACE_CMD} -E -e 's|libcups\.so\.[0-9]+|libcups.so|g' \
-               ${MOZSRC}/*/*/*/nsDeviceContextSpecG.cpp
-.endif
+       @if [ -f ${MOZSRC}/widget/src/gtk2/nsSound.cpp ] ; then \
+               ${REINPLACE_CMD} -E -e 's|libesd\.so\.[0-9]+|libesd.so|g' \
+                       ${MOZSRC}/widget/src/gtk2/nsSound.cpp ; \
+       fi
+       @if ! [ -f ${MOZSRC}/widget/gtk2/nsDeviceContextSpecG.cpp ] ; then \
+               ${REINPLACE_CMD} -E -e 's|libcups\.so\.[0-9]+|libcups.so|g' \
+                       ${MOZSRC}/*/*/*/nsDeviceContextSpecG.cpp ; \
+       fi
        @${REINPLACE_CMD} -e 's|/usr/local/netscape|${LOCALBASE}|g ; \
                s|/usr/local/lib/netscape|${LOCALBASE}/lib|g' \
                ${MOZSRC}/xpcom/*/SpecialSystemDirectory.cpp
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[email protected]"

Reply via email to