1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/cad/qcad/Makefile

48 lines
1.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: qcad
# Date created: 10 Dec 1999
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= qcad
PORTVERSION= 1.4.14
CATEGORIES= cad
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
2000-05-17 08:30:51 +00:00
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
USE_QT_VER= 2
MAKE_ENV= MOC="${MOC}" LIBQT="-l${QTNAME}" \
QTCPPFLAGS="${QTCPPFLAGS}" QTCFGLIBS="${QTCFGLIBS}"
.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} ${DATADIR}
.for dir in cur fonts hatches libraries messages xpm
${TAR} -C ${WRKSRC} -cf - ${dir} | \
${TAR} -C ${DATADIR} --unlink -xf -
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${TAR} -C ${WRKSRC}/doc -cf - . | \
${TAR} -C ${DOCSDIR} --unlink -xf -
@${LN} -sf ${DOCSDIR} ${DATADIR}/doc
@${MKDIR} ${EXAMPLESDIR}
${TAR} -C ${WRKSRC}/examples -cf - . | \
${TAR} -C ${EXAMPLESDIR} --unlink -xf -
.endif
.include <bsd.port.post.mk>