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 Sat 13 Jul 2013 at 12:27:53 +0200, Thomas Klausner wrote:
> Add the qt4 distfile to the distfiles for calibre, just extract the
> necessary private qt4 headers and use them there. Then only the people
> building calibre pay the price.

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?

>  Thomas
-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'



Home | Main Index | Thread Index | Old Index