aboutsummaryrefslogtreecommitdiffstats
path: root/finance/qhacc/Makefile
blob: dada24044e6e0e97440c74410d1f51b1e4e80abb (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:    qhacc
# Date created:     28 Dec 1999
# Whom:         Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#

PORTNAME=   qhacc
PORTVERSION=    1.4
CATEGORIES= misc
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE} \
        ftp://ftp.ostrich-emulators.cx/qhacc/
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org

USE_QT_VER= 2
USE_X_PREFIX=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-qt-moc=${X11BASE}/bin \
        --with-qt-libs=${X11BASE}/lib

post-extract:
    @${RM} -f ${WRKSRC}/src/moc_*.cpp

pre-patch:
.for file in configure src/Makefile.in
    @${PERL} -pi -e 's|/moc|/${MOC:T}|g ; \
         s|-lqt|-l${QTNAME}|g ; \
         s|-O2 -Wall|\@CXXFLAGS\@|g' ${WRKSRC}/${file}
.endfor

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/qhacc ${PREFIX}/bin
    @${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${FILESDIR}/config ${DATADIR}/config.sample
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}
.endif
    @${SED} -e "s:/usr/X11R6:${PREFIX}:g" ${PKGMESSAGE}

.include <bsd.port.mk>