hey moesasji can you please post again because the script has been removed?
Hi Stefanos_
Unfortunately I decided after a couple of weeks playing with FreeBSD that it has too many disadvantages (for me) compared to Gentoo. As a result I reinstalled Gentoo nuking the FreeBSD install in the process. In the process the script I posted here unfortunately got lost.
However you can use the original script posted by Deuce to get it to work. You have to follow the first 5 steps I posted above for the script of Deuce. Note that directory structure for the port of codeblocks is created relative to the directory in which the script resides!! So don't go looking in the /ports directory for it. The only thing the script does is recreate the directory of the port that Deuce had on his PC.
Note that if it doesn't work directly then first retrieve the codeblocks source via SVN. The command is:
svn checkout -r 4084 svn://svn.berlios.de/codeblocks/trunk
Pack it in to an archive file and move that archive over the your distfile directory. I don't remember the exact name, but typing make install in the created codeblocks directory will tell you which file it is missing. That's the name the archive should have.
BTW) I would suggest using a newer SVN version...so update the number 4084 in the makefile and in the above SVN command. Note that if you update to a new SVN-version you have to update the list of installed file in the make-file. That's one of the reasons I could not get used to FreeBSD. It was my impression that Gentoo does manage to improve some of the deficiencies in FreeBSD.....losing some of the strong points in the process.
I'm sorry for the delay as I didn't notice the reply....these alert-mails don't go to my normal email-address.
You need to pack the directory with the files retrieved via SVN into a tarball. If I'm correct the command is as follows:
tar -pczf name_of_your_archive.tar.gz /path/to/directory
The name that the archive should have you can determine by running a make install in the created ports-directory (the one that is created by the shell-script)
Once you've created the archive.....move it over to the distfiles directory for FreeBSD. Probably /usr/ports/distfiles (or where-ever you've put your ports-tree). Then run make install again and it should install the checked-out version.