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-05-30 18:08:37 +00:00
|
|
|
PORTVERSION= 1.4.14
|
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
|
|
|
|
2000-06-22 05:52:15 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1999-12-22 10:40:56 +00:00
|
|
|
|
2001-04-03 08:14:43 +00:00
|
|
|
USE_QT_VER= 2
|
2002-05-30 18:08:37 +00:00
|
|
|
MAKE_ENV= MOC="${MOC}" LIBQT="-l${QTNAME}" \
|
|
|
|
QTCPPFLAGS="${QTCPPFLAGS}" QTCFGLIBS="${QTCFGLIBS}"
|
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
|
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
|
2000-10-13 20:19:12 +00:00
|
|
|
${TAR} -C ${WRKSRC} -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}
|
2000-10-13 20:19:12 +00:00
|
|
|
${TAR} -C ${WRKSRC}/doc -cf - . | \
|
2002-05-30 18:08:37 +00:00
|
|
|
${TAR} -C ${DOCSDIR} --unlink -xf -
|
|
|
|
@${LN} -sf ${DOCSDIR} ${DATADIR}/doc
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${TAR} -C ${WRKSRC}/examples -cf - . | \
|
|
|
|
${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>
|