View Single Post
  #2   (View Single Post)  
Old 2nd December 2008
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

I have ported a few applications to OpenBSD, but never an X-based one.

But ....

If you look at any Makefile for an existing port that uses X -- along with a bunch of X libraries in WANTLIB, you should see USE_X11=Yes. According to bsd.port.mk(5), this is required to build ports that require X facilities.

Some analysis, such as:
$ find /usr/ports/infrastructure -type f -exec grep -i x11 {} /dev/null \; | less
may help you uncover information about how X applications are ported. You should note tools like build/resolve-lib and db/config.x11.site that set library and include paths for X, respectively. Based on my cursory review of this -- perhaps 30 seconds worth of find commands, CPATH is not set within the ports infrastructure.

You may want to start with an existing port with similar infrastructure requirements, and build your own based on its Makefile structure.

See www.openbsd.org/porting.html for the start of many web pages on porting applications.

Last edited by jggimi; 3rd December 2008 at 01:51 AM. Reason: typo
Reply With Quote