automake --add-missing --foreign
autoconf
EOF
- chmod a+x autogen.sh
+ chmod a+x autogen.sh
)
## Note that you have to be very careful about quoting. Look at the second
## script for example: '\'', \\\ and \$
##
-## Now for some explanation of what each script is supposed to change:
+## Now for some explanation of what each script is supposed to change:
##
# -e 's/\(Nelson\)/\1\
### Modified by makeLyXsigc.sh (Allan Rae)/'
#
# -e 's%\(AUX_DIR(\)scripts%\1../config%'
#
-# Use the applications auxilliary directory. Assumed to be ../config.
+# Use the applications auxilliary directory. Assumed to be ../config.
#
# -e 's%config/\(sigc++config\.h\)%\1%'
#
# Move sigc++config.h out of the now removed config/.
#
+# -e 's/--dis\(able-threads\)/--en\1/' \
+# -e 's;dis\(ables.*threading\);en\1;' \
+# -e 's;\(^enable.*threads=\"\)yes;\1no;' \
+#
+# Don't use threads.
+#
# -e '/.*\.spec.*/d' \
# -e '\%.*sigc++/Makefile.*%d' \
# -e '\%.*config/Makefile.*%d'
LYX_FIX_MAKEFILE_IN%' \
-e 's%\(AUX_DIR(\)scripts%\1../config%' \
-e 's%config/\(sigc++config\.h\)%\1%' \
+ -e 's/--dis\(able-threads\)/--en\1/' \
+ -e 's;dis\(ables.*threading\);en\1;' \
+ -e 's;\(^enable.*threads=\"\)yes;\1no;' \
-e '/.*\.spec.*/d' \
-e '\%.*sigc++/Makefile.*%d' \
-e '\%.*config/Makefile.*%d' \
#
# We don't want the extra bits that libsigc++ does.
#
+# -e 's/\(libsigc_la_SOURCES=\)\(.*\)/\1 $(BUILT_SOURCES)\2/' \
+# -e '/%.h:/i\
+#Makefile: $(BUILT_SOURCES)\
+#'
+# Make sure the built sources are built.
+#
( cd $package/sigc++;
sed < Makefile.am > Makefile.tmp \
-e 's%\(SUBDIRS =\)\(.*\)config\(.*\)%\1\2\3\
-e 's/\(LTLIB\)/noinst_\1/' \
-e '/EXTRA_DIST.*/d' \
-e 's/-version-info.*ION)//' \
- -e 's/-release.*EASE)//';
+ -e 's/-release.*EASE)//' \
+ -e 's/\(libsigc_la_SOURCES=\)\(.*\)/\1 $(BUILT_SOURCES)\2/' \
+ -e '/%.h:/i\
+Makefile: $(BUILT_SOURCES)\
+';
rm -f Makefile.am ;
mv Makefile.tmp Makefile.am )
stamp*
sigc++config.h
sigc++config.h.in
+acinclude.m4
EOF
)