1999-12-22 11:40:56 +01:00
|
|
|
# New ports collection makefile for: qcad
|
|
|
|
# Date created: 10 Dec 1999
|
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 01:24:42 +02:00
|
|
|
PORTNAME= qcad
|
2004-10-12 13:55:31 +02:00
|
|
|
PORTVERSION= 2.0.4.0.1
|
2004-08-28 10:46:40 +02:00
|
|
|
PORTREVISION= 1
|
|
|
|
|
1999-12-22 11:40:56 +01:00
|
|
|
CATEGORIES= cad
|
2003-10-31 15:20:23 +01:00
|
|
|
MASTER_SITES= http://www.ribbonsoft.com/archives/qcad/
|
2004-05-23 13:20:02 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.1$/-1/}.src
|
1999-12-22 11:40:56 +01:00
|
|
|
|
2004-02-10 15:47:12 +01:00
|
|
|
MAINTAINER= mr@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Professional CAD system
|
1999-12-22 11:40:56 +01:00
|
|
|
|
2004-02-26 21:59:36 +01:00
|
|
|
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash2 \
|
|
|
|
qmake:${PORTSDIR}/devel/qmake
|
2003-12-03 19:51:15 +01:00
|
|
|
|
2004-05-23 13:20:02 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.1$/-1/}.src
|
2002-11-23 14:33:43 +01:00
|
|
|
|
2002-11-22 19:58:35 +01:00
|
|
|
QTDIR?= ${X11BASE}
|
2000-04-30 01:58:51 +02:00
|
|
|
|
2004-11-25 17:32:02 +01:00
|
|
|
USE_X_PREFIX= yes
|
2002-11-23 14:33:43 +01:00
|
|
|
USE_QT_VER= 3
|
|
|
|
USE_REINPLACE= yes
|
2003-10-31 15:20:23 +01:00
|
|
|
USE_GMAKE= yes
|
2004-03-28 12:50:43 +02:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2003-12-11 05:13:24 +01:00
|
|
|
MAKE_ENV= QTDIR="${QTDIR}" MAKE="${GMAKE}" \
|
2004-01-25 15:02:44 +01:00
|
|
|
QMAKESPEC="${LOCALBASE}/share/qt/mkspecs/freebsd-g++"
|
2002-11-23 14:33:43 +01:00
|
|
|
|
2001-03-11 06:01:04 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-03-28 12:50:43 +02:00
|
|
|
.if ${ARCH} == "alpha"
|
2001-03-11 06:01:04 +01:00
|
|
|
CFLAGS+= -O0
|
|
|
|
.endif
|
|
|
|
|
2004-02-12 14:55:54 +01:00
|
|
|
post-patch:
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
@${REINPLACE_CMD} -e 's|streambuf<|streambuf\.h<|g' \
|
|
|
|
${WRKSRC}/qcadguiqt/src/ui/qg_commandwidget.ui
|
|
|
|
.endif
|
2003-10-31 15:20:23 +01:00
|
|
|
|
|
|
|
do-build:
|
2004-03-28 12:50:43 +02:00
|
|
|
cd ${WRKSRC}/scripts && ${SETENV} ${MAKE_ENV} bash ./build_qcad.sh
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${ECHO_CMD} bin/qcad > ${PLIST}
|
|
|
|
@${FIND} ${WRKSRC}/qcad/examples/ -type f | \
|
|
|
|
${SED} -e "s:^${WRKSRC}/:%%PORTDOCS%%share/:g" >> ${PLIST}
|
|
|
|
@${FIND} ${WRKSRC}/qcad/fonts/ -type f | \
|
|
|
|
${SED} -e "s:^${WRKSRC}/:share/:g" >> ${PLIST}
|
|
|
|
@${FIND} ${WRKSRC}/qcad/patterns/ -type f | \
|
|
|
|
${SED} -e "s:^${WRKSRC}/:share/:g" >> ${PLIST}
|
|
|
|
@${FIND} ${WRKSRC}/qcad/qm/ -type f | \
|
|
|
|
${SED} -e "s:^${WRKSRC}/:share/:g" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} '%%PORTDOCS%%@dirrm share/qcad/examples' >> ${PLIST}
|
|
|
|
@${ECHO_CMD} '@dirrm share/qcad/fonts' >> ${PLIST}
|
|
|
|
@${ECHO_CMD} '@dirrm share/qcad/patterns' >> ${PLIST}
|
2004-03-28 18:42:17 +02:00
|
|
|
@${ECHO_CMD} '@dirrm share/qcad/qm' >> ${PLIST}
|
2004-03-28 12:50:43 +02:00
|
|
|
@${ECHO_CMD} '@dirrm share/qcad' >> ${PLIST}
|
1999-12-22 11:40:56 +01:00
|
|
|
|
|
|
|
do-install:
|
2003-10-31 15:20:23 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/qcad/qcad ${PREFIX}/bin/qcad
|
2004-03-28 18:42:17 +02:00
|
|
|
@${MKDIR} ${DATADIR}
|
2004-10-12 13:55:31 +02:00
|
|
|
.for dir in fonts patterns qm
|
2003-10-31 15:20:23 +01:00
|
|
|
${TAR} -C ${WRKSRC}/qcad --exclude CVS -cf - ${dir} | \
|
2002-05-30 20:08:37 +02:00
|
|
|
${TAR} -C ${DATADIR} --unlink -xf -
|
1999-12-22 11:40:56 +01:00
|
|
|
.endfor
|
2001-02-28 15:20:01 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-10-12 13:55:31 +02:00
|
|
|
.for dir in examples
|
2004-03-28 12:50:43 +02:00
|
|
|
${TAR} -C ${WRKSRC}/qcad --exclude CVS -cf - ${dir} | \
|
|
|
|
${TAR} -C ${DATADIR} --unlink -xf -
|
|
|
|
.endfor
|
1999-12-22 11:40:56 +01:00
|
|
|
.endif
|
|
|
|
|
2001-03-11 06:01:04 +01:00
|
|
|
.include <bsd.port.post.mk>
|