View Single Post
  #3   (View Single Post)  
Old 26th May 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

Very nice howto mate, about dependencies you mentioned you can parse a port Makefile to get dependencies and also update them before building the port:

for example /usr/ports/www/lighttpd/Makefile
Code:
LIB_DEPENDS=    pcre.0:${PORTSDIR}/devel/pcre
LIB_DEPENDS+=           fam:${PORTSDIR}/devel/fam
LIB_DEPENDS+=           gdbm:${PORTSDIR}/databases/gdbm
BUILD_DEPENDS+=         valgrind:${PORTSDIR}/devel/valgrind
RUN_DEPENDS+=           valgrind:${PORTSDIR}/devel/valgrind
                        sqlite3.8:${PORTSDIR}/databases/sqlite3
A simple script will do the job, the only "problem" may be parsing the multiline *_DEPENDS lines.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote