The tarballs are package directories with Config.in and package.mk Add the directory to package/Config.in after untarring the tarball. target_headers.patch is a set of patches that adds "TARGET_HEADERS" option to ncurses, openssl and zlib.