pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Making Packages



Kenneth Freidank wrote:
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

qmake isn't a "tool" in the sense of pkgsrc. pkglint should have told you that, too. :)


...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?

Did you .include "../../x11/qt3-tools/buildlink3.mk"?

It's always helpful to see the source code of the package. Can you upload it somewhere or -- even better -- commit it to pkgsrc-wip?

Roland



Home | Main Index | Thread Index | Old Index