aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/lesstif/Makefile6
-rw-r--r--x11-toolkits/lesstif/pkg-plist2
2 files changed, 8 insertions, 0 deletions
diff --git a/x11-toolkits/lesstif/Makefile b/x11-toolkits/lesstif/Makefile
index f349f62d787c..b8708129c4a5 100644
--- a/x11-toolkits/lesstif/Makefile
+++ b/x11-toolkits/lesstif/Makefile
@@ -75,6 +75,12 @@ pre-extract:
esac)
.endif
+pre-install:
+ if [ -f ${X11BASE}/lib/X11/config/host.def ]; then \
+ mv -f ${X11BASE}/lib/X11/config/host.def \
+ ${X11BASE}/lib/X11/config/host.def.pre-lesstif; \
+ fi
+
post-install:
${RM} -f ${PREFIX}/lib/libXm.la
${RM} -f ${PREFIX}/lib/libMrm.la
diff --git a/x11-toolkits/lesstif/pkg-plist b/x11-toolkits/lesstif/pkg-plist
index 74bad48f9b45..c78eafd05d5a 100644
--- a/x11-toolkits/lesstif/pkg-plist
+++ b/x11-toolkits/lesstif/pkg-plist
@@ -322,10 +322,12 @@ include/uil/UilDef.h
include/uil/UilSymDef.h
include/uil/UilSymGl.h
include/uil/XmAppl.uil
+@exec [ -f %D/lib/X11/config/host.def ] && mv -f %D/lib/X11/config/host.def %D/lib/X11/config/host.def.pre-lesstif
lib/X11/app-defaults/Mwm
lib/X11/config/LessTif.rules
lib/X11/config/LessTif.tmpl
lib/X11/config/host.def
+@unexec [ -f %D/lib/X11/config/host.def.pre-lesstif ] && mv -f %D/lib/X11/config/host.def.pre-lesstif %D/lib/X11/config/host.def
lib/X11/mwm/README
lib/X11/mwm/alt.map
lib/X11/mwm/system.mwmrc