aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/qlabels/Makefile
blob: aa5cc7835b3c7711bfaa8ed8ae792b2098085a03 (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
# Created by: Yinghong.Liu <relaxbsd@gmail.com>
# $FreeBSD$

PORTNAME=   qlabels
PORTVERSION=    0.2
PORTREVISION=   4
CATEGORIES= deskutils editors
MASTER_SITES=   http://qlabels.p34.net/files/ \
        http://www.sourcefiles.org/Utilities/Printer/
DISTNAME=   ${PORTNAME}_${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Labels and business cards creating

USES=       qmake
USE_BZIP2=  yes
USE_QT4=    xml gui corelib qmake_build uic_build moc_build rcc_build
WRKSRC=     ${WRKDIR}/${DISTNAME:C/_/-/}

DESKTOP_ENTRIES=    "qLabels" \
            "${COMMENT}" \
            "" \
            "qlabels" \
            "Office;Qt;" \
            "true"

post-patch:
    @${REINPLACE_CMD} 's|/usr|${PREFIX}|g' \
        ${WRKSRC}/qlabels.pro \
        ${WRKSRC}/lib/templates.cpp \
        ${WRKSRC}/lib/papers.cpp

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/Changelog ${WRKSRC}/LICENSE \
        ${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.mk>