aboutsummaryrefslogtreecommitdiffstats
path: root/misc/qbrew/Makefile
blob: b0280030efc332cdb722df54e5d09b0296911cf4 (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
# New ports collection makefile for:    qbrew
# Date created:             22 September 2000
# Whom:                 David Johnson <david@usermode.org>
#
# $FreeBSD$
#

PORTNAME=   qbrew
PORTVERSION=    0.4.1
PORTREVISION=   1
CATEGORIES= misc
MASTER_SITES=   http://www.usermode.org/code/

MAINTAINER= david@usermode.org
COMMENT=    A homebrewer's recipe calculator

USE_QT_VER= 4
QT_COMPONENTS=  qmake moc uic rcc xml gui
PORTDOCS=   *
HAS_CONFIGURE=  yes

CONFIGURE_ENV+= BINDIR="${PREFIX}/bin" \
        DATADIR="${DATADIR}" \
        DOCDIR="${DOCSDIR}"

pre-configure:
.if defined(NOPORTDOCS)
    @${REINPLACE_CMD} -e '/INSTALLS/s|doc||' \
        ${WRKSRC}/qbrew.pro
.endif

do-configure:
    @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
        ${QMAKE} -unix CONFIG+="configure" qbrew.pro

post-install:
    ${STRIP_CMD} ${PREFIX}/bin/qbrew

.include <bsd.port.mk>