freebsd-ports/finance/qhacc/Makefile
Gerald Pfeifer 09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00

64 lines
1.9 KiB
Makefile

# Created by: Will Andrews <andrews@technologist.com>
# $FreeBSD$
PORTNAME= qhacc
PORTVERSION= 4.3
PORTREVISION= 6
CATEGORIES= finance
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple Qt-based financial manager
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgpgme.so:security/gpgme \
libqwt6.so:x11-toolkits/qwt6@qt4
USES= compiler:c++11-lib qmake:norecursive qt:4 tar:tgz
USE_QT= corelib gui sql moc_build rcc_build uic_build
USE_CXXSTD= c++11
USE_LDCONFIG= yes
DESKTOP_ENTRIES="QHacc" "" "" "${PORTNAME}" "" ""
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
'/^INSTALLDIR/s|=.*|=${DATADIR}| ; \
/^QWTINCS/s|=.*|=${QT_INCDIR}/qwt6| ; \
/^QWTLIBS/s|=.*|=${QT_LIBDIR} -lqwt6| ; \
/+= debug/s|^|#| ; \
/^QMAKE_CFLAGS/s|=.*|= $$$${GPGMEINCS}| ; \
/^QMAKE_CXXFLAGS/s|=.*|= $$$${GPGMEINCS}| ; \
/^INCLUDEPATH/s|=.*|=|' ${WRKSRC}/user.pri
@${REINPLACE_CMD} -e \
's|/usr/include|${LOCALBASE}/include| ; \
s|-lqwt||' ${WRKSRC}/gui/gui.pro
@${REINPLACE_CMD} -e \
's|/../qm/|/../share/qhacc/|' ${WRKSRC}/gui/main.cpp
@${FIND} ${WRKSRC} -name "*.cpp" -or -name "*.h" -or -name "*.ui" | \
${XARGS} ${REINPLACE_CMD} -e \
's|qwt/||'
do-install:
(cd ${WRKSRC}/gui/build/release && ${INSTALL_PROGRAM} \
qhacc ${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC}/engine/build/release && ${INSTALL_LIB} \
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}
(cd ${WRKSRC}/qm && ${INSTALL_DATA} *.qm ${STAGEDIR}${DATADIR})
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog README THANKS TODO UPGRADE
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
.include <bsd.port.mk>