1 # Template file for 'msrc_base'
7 short_desc="The pundits tool-chain from the NPC Guild (xapply etc.)"
8 maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
10 homepage="http://www.databits.net/~ksb/"
11 # Original download is gone
12 #distfiles="http://www.npcguild.org/~ksb/rpms/SOURCES/${pkgname}-${version}.tgz"
13 distfiles="http://distfiles.voidlinux.de/${pkgname}-${version}/${pkgname}-${version}.tgz"
14 checksum=7a0df7a302211539822a77bfde63c56f3afd88c093d278f80c3123b384510f55
18 sed -i s/ksh/bash/g Makefile
22 # This build system is pretty tangled: configure, build and
23 # install happens at the same time, so we just use do_install.
25 # We use "make -e" extensively because passing things with
26 # spaces through mmsrc is a mess.
29 export DESTDIR=${DESTDIR/\/\///}
30 export PATH="$DESTDIR/usr/bin:$PATH"
31 export MKCMD="-I .:$DESTDIR/usr/lib/mkcmd/type:$DESTDIR/usr/lib/mkcmd"
32 export EXPLODE="-I .:$DESTDIR/usr/lib/explode"
34 export HOSTOS=40100 # to be interpreted as 4.1.x
35 export SBIN=${DESTDIR}${TOP}/bin
37 # Inject XBPS's CFLAGS:
38 export DEBUG="$CFLAGS $LDFLAGS"
39 export LDFLAGS="$CFLAGS $LDFLAGS"
42 make -C local/sbin/mmsrc -e clean boot
43 vbin local/sbin/mmsrc/mmsrc
44 make -C local/sbin/mmsrc -e clean
46 vmkdir usr/lib/explode
48 vmkdir usr/lib/mkcmd/type
53 lib/hxmd lib/mkcmd lib/explode \
54 bin/mkcmd bin/explode bin/ptbw bin/xclate bin/xapply bin/wrapw \
55 sbin/msrc sbin/mmsrc sbin/hxmd
57 cd $wrksrc/local/$_dir
58 mkdir -p $wrksrc/tmp/$_dir
60 -y INTO=$wrksrc/tmp/$_dir \
62 -DHOST=localhost -DHOSTTYPE=$HOSTTYPE -DHOSTOS=$HOSTOS \
63 -- make ${makejobs} -e boot
65 for _man in local/*/*/*.man; do
67 *makeme*|*dmz*|*manpage.cgi*) continue
69 vman $_man ${_man%.man}.$(awk '/^.TH/{print $3}' $_man)
71 sed -i "s,$DESTDIR,,g" $DESTDIR/usr/lib/hxmd/auto.cf
74 sed -n '/Copyright/,/@(#)/p' local/lib/mkcmd/util_time.mc >LICENSE.Purdue
75 vlicense LICENSE.Purdue
78 msrc_base-devel_package() {
79 depends="${sourcepkg}>=${version}_${revision}"
80 short_desc+=" -- development files (mkcmd/explode)"
84 vmove usr/share/man/man1/explode.1
85 vmove usr/share/man/man1/mkcmd.1
86 vmove usr/share/man/man5/explode.5
87 vmove usr/share/man/man5/mkcmd.5