1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/finance/qhacc/Makefile
Gerald Pfeifer 15945f8122 Update the default version of GCC in the Ports Collection from GCC 4.7.4
to GCC 4.8.3.

Part II, Bump PORTREVISIONs.

PR:		192025
Tested by:	antoine (-exp runs)
Approved by:	portmgr (implicit)
2014-09-10 20:50:31 +00:00

67 lines
2.0 KiB
Makefile

# Created by: Will Andrews <andrews@technologist.com>
# $FreeBSD$
PORTNAME= qhacc
PORTVERSION= 4.3
PORTREVISION= 1
CATEGORIES= finance
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple Qt-based financial manager
LICENSE= GPLv2 # (or later)
LIB_DEPENDS= libgpgme.so:${PORTSDIR}/security/gpgme \
libqwt6.so:${PORTSDIR}/x11-toolkits/qwt6
OPTIONS_DEFINE= DOCS
USES= qmake:norecursive tar:tgz
USE_QT4= corelib gui sql moc_build rcc_build uic_build
USE_CXXSTD= c++0x
USE_LDCONFIG= yes
DESKTOP_ENTRIES="QHacc" "" "" "${PORTNAME}" "" ""
.include <bsd.port.options.mk>
.if ${OSVERSION} < 1000054
USE_GCC= yes
.endif
post-patch:
@${REINPLACE_CMD} -e \
'/^INSTALLDIR/s|=.*|=${DATADIR}| ; \
/^QWTINCS/s|=.*|=${LOCALBASE}/include/qwt6| ; \
/^QWTLIBS/s|=.*|=${LOCALBASE}/lib -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})
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog README THANKS TODO UPGRADE
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
.include <bsd.port.mk>