aboutsummaryrefslogtreecommitdiffstats
path: root/finance/qhacc/Makefile
blob: 0032c432e63083c62f16e364a7c1e8111843abcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:    qhacc
# Date created:     28 Dec 1999
# Whom:         Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#

PORTNAME=   qhacc
PORTVERSION=    2.9.1
CATEGORIES= finance
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Simple QT-based financial manager

RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash2

USE_QT_VER= 3
USE_X_PREFIX=   yes
USE_GNOME=  gnometarget libxml
USE_REINPLACE=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-xml=yes \
        --with-qt-moc=${QT_PREFIX}/bin \
        --with-qt-libs=${QT_PREFIX}/lib
INSTALLS_SHLIB= yes

STRIP=      # none

post-extract:
    @${CP} -f ${FILESDIR}/xmlplugin.h ${WRKSRC}/plugins/xml

post-patch:
    @${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|#! /bin/sh|#!${LOCALBASE}/bin/bash|g ; \
         s|/usr/local/q|${PREFIX}/lib/q|g' ${WRKSRC}/src/qhacc.orig
    @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
        's|-O2 -Wall -g||g ; \
         s|contrib docs qm|contrib|g ; \
         s|$$(prefix)/plugins|$$(pkglibdir)/plugins|g'

post-install:
    @${STRIP_CMD} ${PREFIX}/bin/qhacc-*
.for file in accounts memorized preferences transactions
    ${INSTALL_DATA} ${WRKSRC}/contrib/easysetup/${file} ${PREFIX}/lib/qhacc
.endfor
    ${INSTALL_DATA} ${WRKSRC}/qm/*.qm ${PREFIX}/lib/qhacc
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}
.endif

.include <bsd.port.mk>