Context: The MSP430 range is a line of microcontrollers from Texas Instruments. The very cheap Launchpad development boards from TI now feature a MSP chip only supported by mspgcc4.
I have built and tested mspgcc4 on FreeBSD. There were no issues. I'd like to have a go at porting it. I've emailed the maintainer of devel/msp430-gcc to see if he/she would rather do this but have had no response.
All I had to do to make it work was this:
1. Install ftp/wget
2. Download mspgcc4-20110312.tar.bz2 from http://sourceforge.net/projects/mspgcc4/files/ and extract it.
3. Run buildgcc.pl and answer a few questions.
It's step 3 that's got me. How does one integrate this with FreeBSD ports? I've had a look through the Perl script, it in turn calls a sh script which fetches the gcc source, patches it (presumably to add stuff for the msp430) and then builds the executable.
In fact the mspgcc4-20110312.tar.bz2 archive doesn't actually contain any source from what I can see. It is also responsible for building msp430-gdb, msp430-binutils and msp430-libc. You can choose to install these by selecting them in the build-gcc.pl script.
It seems like the Perl script is doing everything the ports system would do!
What is the standard approach for integrating something like this into the ports tree?
Cheers.
I have built and tested mspgcc4 on FreeBSD. There were no issues. I'd like to have a go at porting it. I've emailed the maintainer of devel/msp430-gcc to see if he/she would rather do this but have had no response.
All I had to do to make it work was this:
1. Install ftp/wget
2. Download mspgcc4-20110312.tar.bz2 from http://sourceforge.net/projects/mspgcc4/files/ and extract it.
3. Run buildgcc.pl and answer a few questions.
It's step 3 that's got me. How does one integrate this with FreeBSD ports? I've had a look through the Perl script, it in turn calls a sh script which fetches the gcc source, patches it (presumably to add stuff for the msp430) and then builds the executable.
In fact the mspgcc4-20110312.tar.bz2 archive doesn't actually contain any source from what I can see. It is also responsible for building msp430-gdb, msp430-binutils and msp430-libc. You can choose to install these by selecting them in the build-gcc.pl script.
It seems like the Perl script is doing everything the ports system would do!
What is the standard approach for integrating something like this into the ports tree?
Cheers.