2002-03-13 03:53:19 +01:00
|
|
|
# New ports collection makefile for: Qwt
|
|
|
|
# Date created: 02 March 2002
|
|
|
|
# Whom: Bob Bomar <bob@fly.homeunix.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= qwt
|
2005-02-18 13:36:34 +01:00
|
|
|
PORTVERSION= 4.2.0
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 5
|
2002-03-13 03:53:19 +01:00
|
|
|
CATEGORIES= x11-toolkits
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SF
|
2002-03-13 03:53:19 +01:00
|
|
|
MASTER_SITE_SUBDIR=qwt
|
|
|
|
|
2009-02-21 12:31:28 +01:00
|
|
|
MAINTAINER= makc@FreeBSD.org
|
2008-04-02 11:06:34 +02:00
|
|
|
COMMENT= Qwt widget library for technical purposes (old version)
|
2002-03-13 03:53:19 +01:00
|
|
|
|
2005-02-18 13:36:34 +01:00
|
|
|
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
|
|
|
|
|
2003-01-08 21:47:46 +01:00
|
|
|
USE_QT_VER= 3
|
|
|
|
USE_BZIP2= yes
|
2008-04-02 11:06:34 +02:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV+= QMAKESPEC="${QMAKESPEC}"
|
|
|
|
MAKE_ENV+= MOC="${MOC}" QTDIR="${QT_PREFIX}"
|
2006-08-15 03:13:42 +02:00
|
|
|
USE_LDCONFIG= yes
|
2002-03-13 03:53:19 +01:00
|
|
|
|
2008-04-02 11:06:34 +02:00
|
|
|
QMAKESPEC= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
|
|
|
|
QMAKE= ${LOCALBASE}/bin/qmake
|
|
|
|
|
2007-03-27 14:23:18 +02:00
|
|
|
PORTSCOUT= limit:^4\.
|
2008-04-02 11:06:34 +02:00
|
|
|
LATEST_LINK= qwt4
|
2007-03-27 14:23:18 +02:00
|
|
|
|
2008-04-02 11:06:34 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.include <${FILESDIR}/Makefile.man>
|
2002-03-13 03:53:19 +01:00
|
|
|
|
2008-04-02 11:06:34 +02:00
|
|
|
do-configure:
|
|
|
|
@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} -unix)
|
2002-03-13 03:53:19 +01:00
|
|
|
|
2008-04-02 11:06:34 +02:00
|
|
|
post-configure:
|
|
|
|
@(cd ${WRKSRC} && \
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|^CC .*|CC=${CC}|; \
|
|
|
|
s|^CXX .*|CXX=${CXX}|; \
|
|
|
|
s|^LINK .*|LINK=${CXX}|' \
|
|
|
|
${WRKSRC}/Makefile)
|
2002-03-13 03:53:19 +01:00
|
|
|
|
2008-04-02 11:06:34 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/libqwt4.so.${PORTVERSION} ${PREFIX}/lib/libqwt4.so.${PORTVERSION:R:R}
|
|
|
|
${LN} -fs ${PREFIX}/lib/libqwt4.so.${PORTVERSION:R:R} ${PREFIX}/lib/libqwt4.so
|
|
|
|
${MKDIR} ${PREFIX}/include/qwt4
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include/qwt4
|
|
|
|
.for f in ${MAN3}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/man3/${f:S/Qwt4/Qwt/} ${PREFIX}/man/man3/${f}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|