No BSD License
Start by retrieving the sourcecode for shapelib from http://dl.maptools.org/dl/shapelib. Copy the following files into the mexshape directory
Then from within matlab, cd into the mexshape directory and issue the following command
>> mex -output mexshape -v mex_shape.c shpopen.c dbfopen.c
If MATLAB presents you with a choice of compilers, you may safely choose Lcc. It may give you some warnings, but it should compile just fine.
Lcc
Contact us at files@mathworks.com