On 2008/06/25 11:19, Markus Bergkvist wrote:
> This is my first attempt on a new port. Please test/comment.

- please leave the # $OpenBSD$... line in, it will only have to
be added back

- we start SHARED_LIBS at 0.0, then bump according to the rules
in http://www.openbsd.org/porting/libraries.html

> There is one issue that I know of but I'm not sure how to solve;  
> documentation is installed under /usr/local/doc/CUnit/, is there a way  
> to have it intalled in /usr/local/share/doc/CUnit/ without manually  
> editing the PLIST?

Manually editing the PLIST won't help you, CUnit's Makefiles
install the documentation in this location, so if you edit the
PLIST, "make package" will fail. You need to patch these lines:

doc/headers/Makefile.in:dochdrdir = $(prefix)/doc/@PACKAGE@/headers
doc/Makefile.in:docdir = $(prefix)/doc/@PACKAGE@

In almost all cases, you should generate the patch files by making a
copy with .orig added to the name, editing the file, and running "make
update-patches" from the port directory.  e.g.

$ cd /usr/ports/mystuff/devel/cunit
$ cd `make show=WRKSRC`/doc
$ cp Makefile.in{,.orig}; cp headers/Makefile.in{,.orig}
$ vi Makefile.in headers/Makefile.in
$ cd -; make update-patches

Then clean/rebuild and regenerate the plist.

Reply via email to