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
|
1999-12-22 10:40:56 +00:00
|
|
|
|
2002-11-19 16:41:28 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2002-07-08 10:14:16 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-11-19 16:41:28 +00:00
|
|
|
USE_QT_VER= 3
|
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:
|
2002-11-19 16:41:28 +00:00
|
|
|
${REINPLACE_CMD} -e 's,warn_on,warn_on thread,' ${WRKSRC}/qcad.pro
|
|
|
|
${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,' \
|
|
|
|
${WRKSRC}/rconfig.cpp ${WRKSRC}/rprgdef.h\
|
|
|
|
${WRKSRC}/rfonts.cpp ${WRKSRC}/rlibrarybrowser.cpp
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
cd ${BUILD_WRKSRC}; qmake -spec ${X11BASE}/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}
|
2001-02-28 14:20:01 +00:00
|
|
|
.for dir in cur 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} ${DOCSDIR}
|
2002-08-05 04:21:25 +00:00
|
|
|
${TAR} -C ${WRKSRC}/doc --exclude CVS -cf - . | \
|
2002-05-30 18:08:37 +00:00
|
|
|
${TAR} -C ${DOCSDIR} --unlink -xf -
|
|
|
|
@${LN} -sf ${DOCSDIR} ${DATADIR}/doc
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2002-08-05 04:21:25 +00:00
|
|
|
${TAR} -C ${WRKSRC}/examples --exclude CVS -cf - . | \
|
2002-05-30 18:08:37 +00:00
|
|
|
${TAR} -C ${EXAMPLESDIR} --unlink -xf -
|
1999-12-22 10:40:56 +00:00
|
|
|
.endif
|
|
|
|
|
2001-03-11 05:01:04 +00:00
|
|
|
.include <bsd.port.post.mk>
|