Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

New devel/codeblocks-devel port for FreeBSD

<< < (2/3) > >>

Turrican:
Same results for me. I may spend an evening on this.

moesasji:
I'm not sure the people above are still waiting for answers, but a response could be useful for future reference.

Basically Deuce has posted a shell script that creates a port-directory for code::blocks in the current directory. I've updated it for myself to SVN version 4418 and made some changes to the original script of Deuce as the SVN-stuff refused to work here (I'm new to FreeBSD, so probably my fault). I've not yet had time to test code-blocks itself, but it seems to work fine.

The updated script can be found here

How to install:
1) Go to the directory you use to store locally created ports, for example: /usr/local/ports (create if you don't have it)
2) Save the script in this directory.
3) Make the script executable by: chmod +x <name of the script-file>
4) Execute the script.....it will create the directory-structure for the port: ./<script-name>
5) move to the created directory: cd ./devel/codeblocks-devel
6) Retrieve the SVN-version and make the distfile with the command: make distfile
7) Now install in the usual fashion by typing: make install

You can update to later SVN versions by changing the portrevision variable in the makefile. However, as I understand it, FreeBSD uses the content of pkg-plist to determine what to remove when deinstalling. As such the content of this file would have to be updated if you change to later SVN-versions, see the porters handbook for more details if you are interested. Note that for the original script posted by Deuce step 6 would not be needed....I think.

Disclaimer) as far as I can tell the port install and deinstalls cleanly with all options except debug selected, but no guarantees. How it works with less options selected has not been tested....

stefanos_:
hey moesasji can you please post again because the script has been removed?


thank you

stefanos

moesasji:

--- Quote from: stefanos_ on November 02, 2007, 01:18:34 am ---hey moesasji can you please post again because the script has been removed?

--- End quote ---

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:


--- Code: ---svn checkout -r 4084 svn://svn.berlios.de/codeblocks/trunk

--- End code ---

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.

stefanos_:
moesasji thank you for your reply.

I will do my best to install it and if I can I will do that with the latest nightly build.

I wish you all the best with Gentoo.

Regards,

Stefanos

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version