Subject: Making Packages
To: pkgsrc-users <pkgsrc-users@netbsd.org>
From: Kenneth Freidank <kennethcf@earthlink.net>
List: pkgsrc-users
Date: 08/04/2006 00:31:43
I'm a newbie at creating packages and I'm looking for help in creating 
one from scratch.  I will be the package's maintainer.

I followed the steps in the pkgsrc guide, and my package will download 
and unpack the source just fine.  My package properly ensures that qt3 
is installed as a dependency.  I have even created a patch file that 
correctly changes the install directory to ${PREFIX} in the source 
code's Makefile, but that is where the good times end.

I do not know how to get the source code's Makefile to use qmake.  There 
must be some way to temporarily set PATH in the package Makefile so that 
the source Makefile can find qmake.  Nothing I add to the package 
Makefile seems to work. 

I tried in my package Makefile
USE_TOOLS+=    qmake
QTDIR=                ${PREFIX}/qt3
TOOLS_PATH.qmake=    ${QTDIR}/bin/qmake

...and in my source Makefile
QMAKE=${TOOLS_PATH.qmake}

...but QMAKE in my source Makefile is getting set to null at build time.

Can anyone help?

Thanks in advance.