openbsd-ports/math/qtoctave/Makefile

48 lines
1.1 KiB
Makefile
Raw Normal View History

2011-11-03 16:28:09 -04:00
# $OpenBSD: Makefile,v 1.13 2011/11/03 20:28:09 jasper Exp $
COMMENT= graphical front-end for octave
2009-04-14 14:23:40 -04:00
DISTNAME= qtoctave-0.8.1
2011-11-03 16:28:09 -04:00
REVISION= 4
CATEGORIES= math
HOMEPAGE= http://qtoctave.wordpress.com/
# GPL v2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= https://forja.rediris.es/frs/download.php/352/
2011-07-06 14:57:09 -04:00
MODULES= x11/qt4 \
devel/gettext
2010-11-19 02:23:05 -05:00
RUN_DEPENDS= math/octave
LIB_DEPENDS= x11/qt4
2011-11-03 16:28:09 -04:00
WANTLIB += QtGui QtXml c m pthread stdc++
WRKDIST= ${WRKDIR}/project
CONFIGURE_STYLE=simple
CONFIGURE_ARGS= --qtdir=${MODQT4_QTDIR}
DESTDIRNAME= INSTALL_ROOT
QTOCTHELP_PATH= ${PREFIX}/share/doc/qtoctave
OCTHELP_PATH= ${LOCALBASE}/share/doc/octave/interpreter
pre-configure:
@perl -pi -e "s,/home/lucas/usr/,${PREFIX},g" \
${WRKSRC}/qtoctave/qtoctave.pro \
${WRKSRC}/widgetserver/widgetserver.pro \
${WRKSRC}/qtoctave/configure.h
@perl -pi -e "s,!!OCTHELP_PATH!!,${OCTHELP_PATH}/index.html,;" \
-e "s,!!QTOCTHELP_PATH!!,${QTOCTHELP_PATH}/index.html," \
${WRKSRC}/qtoctave/configure.h
@perl -pi -e "s,!!QTOCTHELP_PATH!!,${QTOCTHELP_PATH}," \
${WRKSRC}/qtoctave/qtoctave.pro
.include <bsd.port.mk>