tech-pkg archive

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

Re: Packages that install/use private headers?



On Thu, Jul 25, 2013 at 03:54:59PM +0200, Rhialto wrote:
> Ok. I was away for a bit but I've done that in the mean time. The
> substance of it is this:
> 
> 
> # We also need the distfile for qt4-libs to extract some private header files
> QTVERSION=    4.8.4   # from ../../x11/qt4/Makefile.common
> QTNAME=               qt-everywhere-opensource-src-${QTVERSION}
> DISTFILES+=   ${QTNAME}.tar.gz
> MASTER_SITES+=        http://releases.qt-project.org/qt4/source/
> EXTRACT_USING=  bsdtar
> 
> ...
> 
> # Get access to (some of) the Qt4 private header files (for qt_hack)
> post-wrapper:
>       cd ${WRKDIR}/.buildlink/qt4/include/QtGui && \
>           ln -s ../../../../${QTNAME}/include/QtGui/private .
>       cd ${WRKDIR}/.buildlink/qt4/include/QtCore && \
>           ln -s ../../../../${QTNAME}/include/QtCore/private .
> 
> 
> As you can see I have hardcoded the QT version number there, which I
> don't like. It can be found in ../../x11/qt4/Makefile.common but that
> defines a few more make variables that are not approprate here:
> MAINTAINER HOMEPAGE and LICENSE for Qt itself.
> 
> Is there any place I can get the correct number from?

Some packages have a file version.mk or similar, you could add one
like that for qt4 and use it here as well.
 Thomas


Home | Main Index | Thread Index | Old Index