[kde-freebsd] make install dont respect PREFIX

Otacílio otacilio.neto at ee.ufcg.edu.br
Thu Jun 13 03:53:47 UTC 2013


Dears

I'm trying port qtserialport to FreeBSD, butthe make install don't
respect the PREFIX variable.Can someone giveme a help about this? Bellow
is the port's Makefile.

PORTNAME=    qtserialport
PORTVERSION=    4
CATEGORIES=    devel
#MASTER_SITES=    http://www.xm1math.net/texmaker/

MAINTAINER=    otacilio.neto at bsd.com.br
COMMENT=    Qt4 bindings for serial manipulation

#LIB_DEPENDS=    poppler:${PORTSDIR}/graphics/poppler \
#        poppler-qt4:${PORTSDIR}/graphics/poppler-qt4
#RUN_DEPENDS=   
${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme

#USE_BZIP2=    yes
USE_QT4=    moc_build qmake_build

HAS_CONFIGURE=    yes
QMAKE_ARGS=    PREFIX=${PREFIX}

MAKE_JOBS_SAFE=    yes

WRKSRC=    ${WRKDIR}/qt-qtserialport

CONFIGURE_ARGS+=    --with-qt-includes=${QT_INCDIR} \
            --with-qt-libraries=${QT_LIBDIR} \
            --with-extra-libs=${LOCALBASE}/lib \
            --with-extra-includes=${LOCALBASE}/include
CONFIGURE_ENV+=    MOC="${MOC}" UIC="${UIC}" LIBS="${QTCFGLIBS}" \
        QMAKE="${QMAKE}" QMAKESPEC="${QMAKESPEC}" QTDIR="${QT_PREFIX}"
MAKE_ENV+=    QMAKESPEC="${QMAKESPEC}"

PLIST_SUB+=    QT_INCDIR_REL=${QT_INCDIR_REL} \
        QT_LIBDIR_REL=${QT_LIBDIR_REL} \
        QT_PLUGINDIR_REL=${QT_PLUGINDIR_REL}

.include <bsd.port.options.mk>

#pre-configure:
#    ${REINPLACE_CMD} -e 's,/usr/include,${LOCALBASE}/include,g' \
#        -e 's,/usr/lib,${LOCALBASE}/lib,g' \
#        ${WRKSRC}/texmaker.pro

pre-configure:
    ${MKDIR} ${WRKSRC}

do-configure:
    @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
        ${QMAKE} ${QMAKEFLAGS} ${QMAKE_ARGS} qtserialport.pro

.include <bsd.port.mk>


More information about the kde-freebsd mailing list