1999-12-22 05:40:56 -05:00
|
|
|
# New ports collection makefile for: qcad
|
|
|
|
# Date created: 10 Dec 1999
|
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-08 19:24:42 -04:00
|
|
|
PORTNAME= qcad
|
2001-02-28 09:20:01 -05:00
|
|
|
PORTVERSION= 1.4.6
|
1999-12-22 05:40:56 -05:00
|
|
|
CATEGORIES= cad
|
2000-06-20 04:06:07 -04:00
|
|
|
MASTER_SITES= http://www.qcad.org/archives/
|
2000-05-17 04:30:51 -04:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
1999-12-22 05:40:56 -05:00
|
|
|
|
2000-06-22 01:52:15 -04:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1999-12-22 05:40:56 -05:00
|
|
|
|
|
|
|
USE_XLIB= yes
|
2000-01-05 15:02:11 -05:00
|
|
|
USE_QT2= yes
|
2000-10-13 16:19:12 -04:00
|
|
|
MAKE_ENV= QTDIR="${X11BASE}"
|
2000-04-29 19:58:51 -04:00
|
|
|
|
2001-03-11 00:01:04 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
CFLAGS+= -O0
|
|
|
|
.endif
|
|
|
|
|
2000-10-13 16:19:12 -04:00
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.cpp
|
1999-12-22 05:40:56 -05:00
|
|
|
|
|
|
|
do-install:
|
2000-10-13 16:19:12 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/qcad ${PREFIX}/bin
|
|
|
|
@${MKDIR} ${PREFIX}/share/qcad
|
2001-02-28 09:20:01 -05:00
|
|
|
.for dir in cur fonts hatches libraries messages xpm
|
2000-10-13 16:19:12 -04:00
|
|
|
${TAR} -C ${WRKSRC} -cf - ${dir} | \
|
|
|
|
${TAR} -C ${PREFIX}/share/qcad --unlink -xf -
|
1999-12-22 05:40:56 -05:00
|
|
|
.endfor
|
2001-02-28 09:20:01 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-10-13 16:19:12 -04:00
|
|
|
@${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
|
1999-12-22 05:40:56 -05:00
|
|
|
.endif
|
|
|
|
|
2001-03-11 00:01:04 -05:00
|
|
|
.include <bsd.port.post.mk>
|