1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/math/qwtplot3d/Makefile

46 lines
1.2 KiB
Makefile
Raw Normal View History

# ex:ts=8
# Ports collection makefile for: qwtplot3d
# Date created: Aug 30, 2004
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= qwtplot3d
PORTVERSION= 0.2.7
PORTREVISION= 4
CATEGORIES= math
MASTER_SITES= SF
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A 3D plotting widget for scientific data and mathematical expressions
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
USE_QT_VER= 3
USE_GL= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
MAKE_ENV= QTDIR=${QT_PREFIX}
USE_LDCONFIG= yes
USE_DOS2UNIX= yes
pre-build:
cd ${WRKSRC}; qmake -spec ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ ${PORTNAME}.pro
cd ${WRKSRC} && ${REINPLACE_CMD} -e \
's|^CC .*|CC=${CC}|; \
s|^CXX .*|CXX=${CXX}|; \
s|^LINK .*|LINK=${CXX}|' Makefile
do-install:
${CP} ${WRKSRC}/include/* ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/lib/libqwtplot3d.so.${PORTVERSION} ${PREFIX}/lib
${LN} -fs ${PREFIX}/lib/libqwtplot3d.so.${PORTVERSION} ${PREFIX}/lib/libqwtplot3d.so.0
${LN} -fs ${PREFIX}/lib/libqwtplot3d.so.${PORTVERSION} ${PREFIX}/lib/libqwtplot3d.so
.if !defined(NOPORTDOCS)
${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
.include <bsd.port.mk>