3 # stable LilyPond releases: lilypond-1.6
4 # archive=ftp://lilypond.org/pub/LilyPond/v1.6
6 # LilyPond development: lilypond-1.7
7 # archive=ftp://lilypond.org/pub/LilyPond/v1.7
9 # Guile specific mknetrel overrides
10 # To use this, do something like:
13 wget -P/var/tmp ftp://lilypond.org/pub/LilyPond/v1.7/lilypond-1.7.13.tar.gz
14 rm -rf /home/netrel/src/lilypond-*
15 mkdir -p /home/netrel/src && cd /home/netrel/src
16 ## TODO: look at pimport
17 tar xzf /var/tmp/lilypond-*
18 mv lilypond-* $(echo lilypond-*)-1
20 ./bin/mknetrel -xXC lilypond
28 patch=$mknetrel_root/patch
32 ##uploads=$here/uploads/$base && mkdir -p $uploads
33 uploads=$here/uploads-development/$base && mkdir -p $uploads
34 tarstem=$uploads/$package
45 # -*- shell-script -*-
47 # jcn -- unsorted stuff
51 # Patching and configuring
56 # Maybe add to mknetrel or pimport.
59 patch -p1 < $patch/$package.patch
60 [ -d cygwin -a ! -e CYGWIN-PATCHES ] && ln -s cygwin CYGWIN-PATCHES
61 [ -d CYGWIN-PATCHES -a ! -e cygwin ] && ln -s CYGWIN-PATCHES cygwin
62 [ -d CYGWIN-PATCHES ] || mkdir CYGWIN-PATCHES
65 # Maybe add to mknetrel or pimport.
67 [ -r $patch/$package.patch -a ! -r $src/CYGWIN-PATCHES -a ! -r $src/cygwin ] && dopatchsrc
71 for i in bootstrap autogen.sh; do
80 libtoolize --force --copy --automake --ltdl
83 automake --add-missing
87 cat <<EOF > config.cache
89 ac_cv_c_bigendian=${ac_cv_c_bigendian=no}
90 ac_cv_sizeof_char=${ac_cv_sizeof_char=1}
91 ac_cv_sizeof_char_p=${ac_cv_sizeof_char_p=4}
92 ac_cv_sizeof_double=${ac_cv_sizeof_double=8}
93 ac_cv_sizeof_float=${ac_cv_sizeof_float=4}
94 ac_cv_sizeof_int=${ac_cv_sizeof_int=4}
95 ac_cv_sizeof_long=${ac_cv_sizeof_long=4}
96 ac_cv_sizeof_long_double=${ac_cv_sizeof_long_double=12}
97 ac_cv_sizeof_long_long=${ac_cv_sizeof_long_long=8}
98 ac_cv_sizeof_short=${ac_cv_sizeof_short=2}
99 ac_cv_sizeof_void_p=${ac_cv_sizeof_void_p=4}
100 ac_cv_c_long_size_t=${ac_cv_c_long_size_t=no}
101 ac_cv_c_long_time_t=${ac_cv_c_long_time_t=yes}
102 ac_16bit_type=${ac_16bit_type=short}
103 ac_32bit_type=${ac_32bit_type=int}
104 ac_64bit_type=${ac_64bit_type=none}
105 ac_cv_sys_restartable_syscalls=${ac_cv_sys_restartable_syscalls=no}
106 ac_cv_sprintf_count=${ac_cv_sprintf_count=yes}
107 ac_cv_spinlocks=${ac_cv_spinlocks=no}
108 ac_cv_func_getpgrp_void=${ac_cv_func_getpgrp_void=yes}
109 ac_cv_func_setvbuf_reversed=${ac_cv_func_setvbuf_reversed=no}
110 ac_cv_func_mkfifo=yes
112 # Try at preventing to break make rules while crosscompiling. This
113 # used work, but nowadays ./configure thinks it knows better than me.
115 # But what ./configure doesn't know, is that automake and libtool are
116 # broken wrt cross-building, and wrt cc_for_build. See new
119 ac_exeext=${ac_exeext=}
120 ac_cv_exeext=${ac_cv_exeext=}
127 # Subpackage stuff -- Maybe move to mknetrel
130 # Possibly, using file-lists globs is smarter than separate install
131 # prefixes. We'll see what happens when packaging tetex-*.
147 mkdir -p ./$prefix/bin || exit 1
148 mv $inst/$prefix/bin/*.dll ./$prefix/bin
149 mkdir -p ./$prefix/share || exit 1
150 mv $inst/$prefix/share/$base ./$prefix/share
155 mkdir -p ./$prefix/bin || exit 1
156 mv $inst/$prefix/include ./$prefix/include
157 mkdir -p ./$prefix/lib || exit 1
158 mv $inst/$prefix/lib/*.a ./$prefix/lib
159 mv $inst/$prefix/lib/*.la ./$prefix/lib
160 mkdir -p ./$prefix/share || exit 1
161 mv $inst/$prefix/share/aclocal ./$prefix/share
166 mkdir -p ./$prefix || exit 1
167 mv $inst/$prefix/info ./$prefix
172 for i in $sub_packages; do
174 mkdir -p $inst-$i || exit 1
180 # Fix up installation slightly
184 cd usr 2>/dev/null && dousrstuff
187 # Split off any sub-packages. The actual splitting is handled by
188 # a package's specific code in extra/.
190 # To package `foo' in foo, foo-doc and foo-devel, set
191 # sub_packages='doc devel'.
193 # Then provide functions doc_name and devel_name, that return the
194 # full name of the sub-package. Also provide functions doc_split
195 # and devel_split, that mv part of foo's installation in $inst to
196 # the sub-packages' installation roots $inst-doc and $inst-devel.
201 for i in $sub_packages; do
203 cd $inst-$i || exit 1
215 echo creating $tarstem.tar.bz2
218 f=$src/cygwin/setup.hint && test -r $f && cp $f $uploads
219 f=$src/cygwin/$base.hint && test -r $f && cp $f $uploads/setup.hint
220 find * -print | sort | tar -T - --no-recursion -cjf $tarstem.tar.bz2
223 for i in $sub_packages; do
225 subload=$uploads/$subname
226 subtarstem=$subload/$subname-$ver
227 mkdir -p $subload || exit 1
228 echo creating $subtarstem.tar.bz2
229 f=$src/cygwin/$subname.hint && test -r $f && cp $f $subload/setup.hint
231 find * -print | sort | tar -T - --no-recursion -cjf $subtarstem.tar.bz2
236 echo creating "$tarstem"-src.tar.bz2
237 find $package_src/* -print -follow | egrep -v '\.cvsignore|\.bak$|\.orig$|\.o$|~$|^.#|CVS|%redact|/tags$' | egrep -v "$src_exclude" | sort | tar -T - --no-recursion -cjf "$tarstem"-src.tar.bz2
252 preconfig () { # aka libtool_woes ()
262 cat > guile-config <<EOF
264 [ "\$1" == "--version" ] && echo "guile-config - Guile version $GUILE"
265 [ "\$1" == "compile" ] && echo "-I$cygwin_prefix/include"
266 [ "\$1" == "link" ] && echo "-L$cygwin_prefix/lib -lguile"
270 chmod 755 guile-config
273 ##opt='-O2 -g' LDFLAGS='"$cygwin_prefix/bin/libpython2.2.dll"
278 # Configure for build, for generating doc
281 PATH="$HOME/usr/pkg/guile-1.6.0/bin:$PATH" \
283 $src/configure --prefix=/usr --enable-config=for-build)
287 for i in $sub_packages; do
289 mkdir -p $inst-$i || exit 1
292 # Build for build, generating doc
296 cd $src && ln -s GNUmakefile.in GNUmakefile
299 # Ugh. Fixed in 1.6.8CVS and 1.7.13CVS.
300 # PATH=/bin:/usr/bin:$PATH make DO_O_DEP="echo NO DEPS;" conf=for-build all doc html-doc || exit 1
301 PATH=/bin:/usr/bin:$PATH make conf=for-build all doc html-doc || exit 1
302 for i in $(find . -path "out-for-build/*.1"); do
303 cp -pv $i $(dirname $(dirname $i))/$(basename $i)
307 cp -pv mf/out-for-build/* mf/out
309 addmakeflags MAKE_PFA_FILES=1 ' ' LDFLAGS="$cygwin_prefix/bin/libpython2.2.dll" ' ' 'target=i686-pc-cygwin'
314 cp -v scripts/out-for-build/midi2ly.1 scripts/out
315 cp -v lily/out-for-build/lilypond.1 lily/out
317 addmakeflags MAKE_PFA_FILES=1 ' ' LDFLAGS="$cygwin_prefix/bin/libpython2.2.dll" ' ' 'target=i686-pc-cygwin'
321 mkdir -p $inst-doc/$prefix
323 docdir=$prefix/share/doc/$base-$ver
325 make conf=for-build docdir=$inst-doc/$docdir install-html-doc
331 install -d -m755 $inst/$docdir
334 find . -maxdepth 1 -type f -exec cp -pv \{\} $inst/$docdir \;
339 #install -m644 $cygwin/README $inst/$docdir/README.Cygwin
340 install -m644 $cygwin/changelog $inst/$docdir/changelog.Cygwin
341 install -d -m755 $inst/$prefix/doc/Cygwin
342 #install -m644 $cygwin/README $inst/$prefix/doc/Cygwin/$package.README
345 install -m644 $cygwin/out/README $inst/$docdir/README.Cygwin
346 install -m644 $cygwin/out/README $inst/$prefix/doc/Cygwin/$package.README
350 cp -prv input $inst/$docdir
352 cd $inst-doc/$prefix/share/doc/$base-$ver &&
353 ln -s $(find html/Documentation -name '*.ps.gz') .
355 ## Cygwin doesn't adhere to FHS (and why should they?)
356 cd $inst/$prefix/share && tar cf - doc | (cd ..; tar xf -) && rm -rf doc
357 cd $inst-doc/$prefix/share && tar cf - doc | (cd ..; tar xf -) && rm -rf doc
361 # docdir=$prefix/share/doc/$base-$ver
362 # mkdir -p $inst-doc/$docdir || exit 1
366 mkdir -p ./$prefix || exit 1
367 mv $inst/$prefix/info ./$prefix
373 # mv $inst/$prefix/bin/guile-* $inst-devel/$prefix/bin