aboutsummaryrefslogtreecommitdiffstats
path: root/cad/qcad2/Makefile
blob: 8f5e50f9ae83c7e082fb4c7fa5f82504a6da4357 (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
# New ports collection makefile for:    qcad
# Date created:     10 Dec 1999
# Whom:         Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   qcad
PORTVERSION=    1.4.6
CATEGORIES= cad
MASTER_SITES=   http://www.qcad.org/archives/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= ports@FreeBSD.org

USE_XLIB=   yes
USE_QT2=    yes
MAKE_ENV=   QTDIR="${X11BASE}"

post-patch:
    @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.cpp

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/qcad ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/share/qcad
.for dir in cur fonts hatches libraries messages xpm
    ${TAR} -C ${WRKSRC} -cf - ${dir} | \
        ${TAR} -C ${PREFIX}/share/qcad --unlink -xf -
.endfor
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/examples/qcad
    ${TAR} -C ${WRKSRC}/examples -cf - . | \
        ${TAR} -C ${PREFIX}/share/examples/qcad --unlink -xf -
    @${MKDIR} ${PREFIX}/share/doc/qcad
    ${TAR} -C ${WRKSRC}/doc -cf - . | \
        ${TAR} -C ${PREFIX}/share/doc/qcad --unlink -xf -
    @${LN} -sf ${PREFIX}/share/doc/qcad ${PREFIX}/share/qcad/doc
.endif

.include <bsd.port.mk>