# SliTaz package receipt.

PACKAGE="gfortran"
VERSION="10.2.0"
CATEGORY="development"
SHORT_DESC="GCC fortran extension."
WEB_SITE="http://gcc.gnu.org/"
MAINTAINER="pascal.bellard@slitaz.org"
DEPENDS="gcc libgfortran"
WANTED="gcc"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib/gcc/$HOST_SYSTEM/$VERSION $fs/usr/bin
	cp -a $_pkg/usr/bin/*gfortran $fs/usr/bin
	cp -a $_pkg/usr/lib/libgfortran*a $fs/usr/lib
	cp -a $_pkg/usr/lib/gcc/$HOST_SYSTEM/$VERSION/f* \
		$fs/usr/lib/gcc/$HOST_SYSTEM/$VERSION
	# If gcc < 6.3.0 
	#    cp -a $_pkg/usr/lib/gcc/$HOST_SYSTEM/$VERSION/libgfortran* \
	#	$fs/usr/lib/gcc/$HOST_SYSTEM/$VERSION
	    cp -a $_pkg/usr/lib/libgfortran*.*a $fs/usr/lib
}