diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2013-11-01 23:47:58 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2013-11-01 23:47:58 +0000 |
commit | b889dd8f4e16f304556044f4c330997cfed7c55a (patch) | |
tree | 9db4471c19339718f28a56daa2efa79dd305edf7 /finance/qhacc/Makefile | |
parent | 8c609588368ce0b8025e47266c4e9f1bcec4eed4 (diff) | |
download | ports-b889dd8f4e16f304556044f4c330997cfed7c55a.tar.gz ports-b889dd8f4e16f304556044f4c330997cfed7c55a.zip |
Notes
Diffstat (limited to 'finance/qhacc/Makefile')
-rw-r--r-- | finance/qhacc/Makefile | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/finance/qhacc/Makefile b/finance/qhacc/Makefile index 2be7bbb6d85a..7d9ec91ace21 100644 --- a/finance/qhacc/Makefile +++ b/finance/qhacc/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= qhacc -PORTVERSION= 4.1 -PORTREVISION= 1 +PORTVERSION= 4.2 CATEGORIES= finance MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} EXTRACT_SUFX= .tgz @@ -15,31 +14,26 @@ LICENSE= GPLv2 # (or later) LIB_DEPENDS= libqwt6.so:${PORTSDIR}/x11-toolkits/qwt6 -OPTIONS_DEFINE= DOCS DEBUG +OPTIONS_DEFINE= DOCS -USES= qmake +USES= qmake:norecursive USE_QT4= corelib gui sql moc_build qmake_build rcc_build uic_build +QMAKE_ARGS= ${QMAKEFLAGS} USE_GCC= yes USE_LDCONFIG= yes CXXFLAGS+= -fpermissive -DESKTOP_ENTRIES="QHacc" "Financial manager" "" "${PORTNAME}" "" "" +DESKTOP_ENTRIES="QHacc" "" "" "${PORTNAME}" "" "" .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MDEBUG} -BUILD_TYPE= debug -.else -BUILD_TYPE= release -.endif - post-patch: @${REINPLACE_CMD} -e \ '/^INSTALLDIR/s|=.*|=${DATADIR}| ; \ /^QWTINCS/s|=.*|=${LOCALBASE}/include/qwt6| ; \ /^QWTLIBS/s|=.*|=${LOCALBASE}/lib -lqwt6| ; \ - /^CONFIG +=/s|debug|${BUILD_TYPE}|' ${WRKSRC}/user.pri + /+= debug/s|^|#|' ${WRKSRC}/user.pri @${REINPLACE_CMD} -e \ 's|/usr/include|${LOCALBASE}/include| ; \ s|-lqwt||' ${WRKSRC}/gui/gui.pro @@ -47,20 +41,18 @@ post-patch: 's|/../qm/|/../share/qhacc/|' ${WRKSRC}/gui/main.cpp do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/gui/build/${BUILD_TYPE}/qhacc \ - ${STAGEDIR}${PREFIX}/bin - ${INSTALL_LIB} ${WRKSRC}/engine/build/${BUILD_TYPE}/libengine.so.1.0.0 \ - ${STAGEDIR}${PREFIX}/lib + (cd ${WRKSRC}/gui/build/release && ${INSTALL_PROGRAM} \ + qhacc ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC}/engine/build/release && ${INSTALL_DATA} \ + libengine.so.1.0.0 ${STAGEDIR}${PREFIX}/lib) @${LN} -sf libengine.so.1.0.0 ${STAGEDIR}${PREFIX}/lib/libengine.so @${LN} -sf libengine.so.1.0.0 ${STAGEDIR}${PREFIX}/lib/libengine.so.1 @${LN} -sf libengine.so.1.0.0 ${STAGEDIR}${PREFIX}/lib/libengine.so.1.0 @${MKDIR} ${STAGEDIR}${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/qm/*.qm ${STAGEDIR}${DATADIR} -.if ${PORT_OPTIONS:MDOCS} + (cd ${WRKSRC}/qm && ${INSTALL_DATA} *.qm ${STAGEDIR}${DATADIR}) @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in AUTHORS ChangeLog README THANKS TODO UPGRADE - ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR}) .endfor -.endif .include <bsd.port.mk> |