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