# Template file for 'smake'
pkgname=smake
version=1.2.5
revision=1
short_desc="Schily's portable make implementation"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="CDDL-1.0"
homepage="https://sourceforge.net/projects/s-make/"
distfiles="${SOURCEFORGE_SITE}/s-make/${pkgname}-${version}.tar.bz2"
checksum=27566aa731a400c791cd95361cc755288b44ff659fa879933d4ea35d052259d4
nocross=yes  # configure + re-builds with itself

do_build() {
	make ${makejobs} CC="$CC" COPTX="$CFLAGS" LDOPTX="$LDFLAGS"
}

do_install() {
	make install -C smake DESTDIR="$DESTDIR" INS_BASE=/usr GMAKE_NOWARN=true
	make install -C man DESTDIR="$DESTDIR" INS_BASE=/usr GMAKE_NOWARN=true
	vlicense CDDL.Schily.txt
}

