aboutsummaryrefslogtreecommitdiff
path: root/finance/qhacc/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-06-17 15:33:12 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-06-17 15:33:12 +0000
commit28c746b90c162e2c98871098cc4e8122d6a767b9 (patch)
tree08a188870e73d1d0220e99ccc5aea18cb85ef408 /finance/qhacc/Makefile
parent945bb192d1f66528f6d774c93e87ae0be5e62f76 (diff)
downloadports-28c746b90c162e2c98871098cc4e8122d6a767b9.tar.gz
ports-28c746b90c162e2c98871098cc4e8122d6a767b9.zip
Notes
Diffstat (limited to 'finance/qhacc/Makefile')
-rw-r--r--finance/qhacc/Makefile122
1 files changed, 37 insertions, 85 deletions
diff --git a/finance/qhacc/Makefile b/finance/qhacc/Makefile
index df11a226e452..05325185ec14 100644
--- a/finance/qhacc/Makefile
+++ b/finance/qhacc/Makefile
@@ -1,107 +1,59 @@
-# New ports collection makefile for: qhacc
-# Date created: 28 Dec 1999
-# Whom: Will Andrews <andrews@technologist.com>
-#
+# Created by: Will Andrews <andrews@technologist.com>
# $FreeBSD$
-#
PORTNAME= qhacc
-PORTVERSION= 3.5
-PORTREVISION= 8
+PORTVERSION= 4.1
CATEGORIES= finance
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
+EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple QT-based financial manager
-RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
+LICENSE= GPLv2 # (or later)
-DEPRECATED= Depends on QT3; unmaintained
-EXPIRATION_DATE= 2013-07-01
+LIB_DEPENDS= qwt6:${PORTSDIR}/x11-toolkits/qwt6
-USE_AUTOTOOLS= libtool
-USE_QT_VER= 3
-USE_GMAKE= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-qt-moc=${QT_PREFIX}/bin \
- --with-qt-libs=${QT_PREFIX}/lib
-MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
- AUTOHEADER="${TRUE}"
-MAKE_JOBS_UNSAFE= yes
-USE_LDCONFIG= yes
-
-QTCPPFLAGS+= ${PTHREAD_CFLAGS}
-QTCFGLIBS+= ${PTHREAD_LIBS}
-
-.if defined(WITH_MYSQL)
-USE_MYSQL= yes
-CONFIGURE_ARGS+= --enable-mysql
-PLIST_SUB+= MYSQL=""
-.else
-PLIST_SUB+= MYSQL="@comment "
-.endif
-
-.if defined(WITH_PGSQL)
-USE_PGSQL= yes
-CONFIGURE_ARGS+= --enable-psql
-PLIST_SUB+= PGSQL=""
-.else
-PLIST_SUB+= PGSQL="@comment "
-.endif
-
-.if defined(WITH_SQLITE)
-USE_SQLITE= yes
-CONFIGURE_ARGS+= --enable-sqlite \
- --with-sqlite-libs="${LOCALBASE}/lib" \
- --with-sqlite-includes="${LOCALBASE}/include"
-PLIST_SUB+= SQLITE=""
-.else
-PLIST_SUB+= SQLITE="@comment "
-.endif
+OPTIONS_DEFINE= DOCS
-.if defined(WITH_GPGME)
-LIB_DEPENDS+= gpgme.19:${PORTSDIR}/security/gpgme
-CONFIGURE_ARGS+= --enable-gpg
-PLIST_SUB+= GPGME=""
-.else
-PLIST_SUB+= GPGME="@comment "
-.endif
+USE_QT4= corelib gui sql moc_build qmake_build rcc_build uic_build
+USE_GCC= 4.6+
+USE_LDCONFIG= yes
+MAKE_JOBS_SAFE= yes
-.if defined(WITH_GENERATOR)
-CONFIGURE_ARGS+= --enable-generator
-PLIST_SUB+= GENERATOR=""
-.else
-PLIST_SUB+= GENERATOR="@comment "
-.endif
+DESKTOP_ENTRIES="QHacc" "" "" "${PORTNAME}" "" ""
-pre-everything::
- @${ECHO_MSG}
- @${ECHO_MSG} "QHacc has the following tunable option(s):"
- @${ECHO_MSG}
- @${ECHO_MSG} " WITH_MYSQL=yes Turns on MySQL support"
- @${ECHO_MSG} " WITH_PGSQL=yes Turns on PostgreSQL support"
- @${ECHO_MSG} " WITH_SQLITE=yes Turns on SQLite support"
- @${ECHO_MSG} " WITH_GPGME=yes Turns on GnuPG support"
- @${ECHO_MSG} " WITH_GENERATOR=yes Turns on random-data generator support"
- @${ECHO_MSG}
+.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e \
- 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/src/qhacc.in
- @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
- 's| -O2||g ; \
- s| -g||g ; \
- s| -pedantic||g'
-
-post-install:
+ '/^INSTALLDIR/s|=.*|=${DATADIR}| ; \
+ /^QWTINCS/s|=.*|=${LOCALBASE}/include/qwt6| ; \
+ /^QWTLIBS/s|=.*|=${LOCALBASE}/lib -lqwt6| ; \
+ /+= debug/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
+
+do-configure:
+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS})
+
+do-install:
+ (cd ${WRKSRC}/gui/build/release && ${INSTALL_PROGRAM} \
+ qhacc ${PREFIX}/bin)
+ (cd ${WRKSRC}/engine/build/release && ${INSTALL_DATA} \
+ libengine.so.1.0.0 ${PREFIX}/lib)
+ @${LN} -sf libengine.so.1.0.0 ${PREFIX}/lib/libengine.so
+ @${LN} -sf libengine.so.1.0.0 ${PREFIX}/lib/libengine.so.1
+ @${LN} -sf libengine.so.1.0.0 ${PREFIX}/lib/libengine.so.1.0
@${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/qm/*.qm ${DATADIR}
-.if !defined(NOPORTDOCS)
+ (cd ${WRKSRC}/qm && ${INSTALL_DATA} *.qm ${DATADIR})
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}
- @${MKDIR} ${EXAMPLESDIR}
-.for file in accounts jobs journals namedtrans preferences splits transactions
- ${INSTALL_DATA} ${WRKSRC}/contrib/easysetup/${file} ${EXAMPLESDIR}
+.for i in AUTHORS ChangeLog README THANKS TODO UPGRADE
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
.endfor
.endif