aboutsummaryrefslogtreecommitdiffstats
path: root/finance/khacc/Makefile
blob: b1b0fbb2f99413ca5b2dd853a4e68274c7aa5154 (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
# New ports collection makefile for:    khacc
# Date created:     22 Jan 2003
# Whom:         Tilman Linneweh <arved@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=   khacc
PORTVERSION=    3.3
PORTREVISION=   6
CATEGORIES= finance
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= qhacc

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

LIB_DEPENDS=    qhacc.8:${PORTSDIR}/finance/qhacc
RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash

USE_KDELIBS_VER=3
USE_PERL5_BUILD=yes
USE_GMAKE=  yes
USE_AUTOTOOLS=  automake:19:env autoconf:261:env libtool:15
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --with-qhacc-config=${LOCALBASE}/bin
MAKE_ARGS=  ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
        AUTOHEADER="${TRUE}"

.include <bsd.port.pre.mk>

post-patch:
    @${PERL} -pi -e \
        's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/khacc/khacc.in

pre-configure:
    @cd ${CONFIGURE_WRKSRC} \
        && ${SETENV} ${AUTOTOOLS_ENV} ${ACLOCAL} -I ${ACLOCAL_DIR} \
        && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOMAKE} ${AUTOMAKE_ARGS} \
        && ${PERL} admin/am_edit \
        && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOCONF} ${AUTOCONF_ARGS} \
        && ${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' configure

.include <bsd.port.post.mk>