I'm currently working on a terrain shader, that will combine some of the terrain shaders out here. It will also contain shadowmapping, but I need a few days to finish it, so if you can wait...
If not you can simply use the alpha channel of the blendmap in this shader, for the shadowmapsupport.