I don't understand the logic of this mkdir /usr/ports/mystuff/x11 cp -R /usr/ports/x11/dmenu /usr/ports/mystuff/x11/ cd /usr/ports/mystuff/x11/dmenu make package
to build a package, one usually just runs command cd /usr/ports/x11/dmenu make install try and see if this gives an error.