freebsd-ports/cad/qcad2/Makefile
Will Andrews dbba8af644 Overhaul QT/KDE support:
- bsd.port.mk update to use bsd.kde.mk for USE_{QT,KDE}*
- Cleanup corresponding ports for bsd.kde.mk update.
- Fix bsd.kde.mk: use correct kdelibs dependency, put qt at the bottom,
  introduce QT_NONSTANDARD variable for nonstandard configure setup.
- Update KDE2 to 2.1.1.  Two patches included in x11/kdelibs2 to fix the
  proxy authentication that was broken for 2.1.1.  Remove old patches.
- Potentially fix kdelibs build for alpha.
- Fix qt-designer 2.3.0 build.
- Ruby stuff left alone since it looks like black magic to me.  Should
  still work w/ compat shims for older USE_QT[,2] style.  Some others
  were also left alone for the same reason.

Reviewed by:	portmgr, ports (bsd.kde.mk+bsd.port.mk)
Submitted by:	David Faure <faure@kde.org> (proxy auth patches)
		Alex Zepeda <garbanzo@kde.org> (old patches removal)
2001-04-03 08:14:43 +00:00

47 lines
1.1 KiB
Makefile

# New ports collection makefile for: qcad
# Date created: 10 Dec 1999
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= qcad
PORTVERSION= 1.4.6
CATEGORIES= cad
MASTER_SITES= http://www.qcad.org/archives/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
USE_XLIB= yes
USE_QT_VER= 2
MAKE_ENV= QTDIR="${X11BASE}"
.include <bsd.port.pre.mk>
.if ${MACHINE_ARCH} == "alpha"
CFLAGS+= -O0
.endif
post-patch:
@${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/*.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qcad ${PREFIX}/bin
@${MKDIR} ${PREFIX}/share/qcad
.for dir in cur fonts hatches libraries messages xpm
${TAR} -C ${WRKSRC} -cf - ${dir} | \
${TAR} -C ${PREFIX}/share/qcad --unlink -xf -
.endfor
.if !defined(NOPORTDOCS)
@${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
.endif
.include <bsd.port.post.mk>