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
|
2002-11-19 16:41:28 +00:00
|
|
|
PORTVERSION= 1.5.4
|
1999-12-22 10:40:56 +00:00
|
|
|
CATEGORIES= cad
|
2002-05-30 18:08:37 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2000-05-17 08:30:51 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
1999-12-22 10:40:56 +00:00
|
|
|
|
2002-11-19 16:41:28 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= Professional CAD system
|
1999-12-22 10:40:56 +00:00
|
|
|
|
2002-11-19 16:41:28 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2002-11-23 13:33:43 +00:00
|
|
|
|
2002-11-22 18:58:35 +00:00
|
|
|
QTDIR?= ${X11BASE}
|
2000-04-29 23:58:51 +00:00
|
|
|
|
2002-11-23 13:33:43 +00:00
|
|
|
USE_QT_VER= 3
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
MAKE_ENV= QTDIR="${QTDIR}"
|
|
|
|
|
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:
|
2002-11-23 13:33:43 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|warn_on|warn_on thread|g' ${WRKSRC}/qcad.pro
|
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/rprgdef.h
|
2002-11-19 16:41:28 +00:00
|
|
|
|
2002-11-23 13:33:43 +00:00
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} qmake \
|
2003-02-22 21:10:29 +00:00
|
|
|
-spec ${X11BASE}/share/qt/mkspecs/freebsd-g++ qcad.pro
|
1999-12-22 10:40:56 +00:00
|
|
|
|
|
|
|
do-install:
|
2000-10-13 20:19:12 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/qcad ${PREFIX}/bin
|
2002-05-30 18:08:37 +00:00
|
|
|
@${MKDIR} ${DATADIR}
|
2002-11-23 13:33:43 +00:00
|
|
|
.for dir in cur doc fonts hatches libraries messages xpm
|
2002-08-05 04:21:25 +00:00
|
|
|
${TAR} -C ${WRKSRC} --exclude CVS --exclude hydraulics -cf - ${dir} | \
|
2002-05-30 18:08:37 +00:00
|
|
|
${TAR} -C ${DATADIR} --unlink -xf -
|
1999-12-22 10:40:56 +00:00
|
|
|
.endfor
|
2001-02-28 14:20:01 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-05-30 18:08:37 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2002-11-23 13:33:43 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.dxf ${EXAMPLESDIR}
|
1999-12-22 10:40:56 +00:00
|
|
|
.endif
|
|
|
|
|
2001-03-11 05:01:04 +00:00
|
|
|
.include <bsd.port.post.mk>
|