2006-06-10 13:30:16 +00:00
|
|
|
# New ports collection makefile for: digitizer
|
|
|
|
# Date created: 27 May 2006
|
|
|
|
# Whom: Thierry Thomas <thierry@pompo.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= digitizer
|
2007-04-11 22:02:21 +00:00
|
|
|
PORTVERSION= 4.1
|
2010-03-28 06:47:48 +00:00
|
|
|
PORTREVISION= 6
|
2006-06-10 13:30:16 +00:00
|
|
|
CATEGORIES= math graphics
|
2009-08-22 00:28:34 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Engauge%20Digitizer/${PORTNAME}-${PORTVERSION}
|
2006-06-10 13:30:16 +00:00
|
|
|
DISTNAME= digit-src-${PORTVERSION:S/./_/}
|
|
|
|
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
|
|
COMMENT= Engauge Digitizer - Digitizing software to convert graphs into numbers
|
|
|
|
|
|
|
|
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
|
2009-05-18 15:08:58 +00:00
|
|
|
LIB_DEPENDS= fftw3.5:${PORTSDIR}/math/fftw3
|
2006-06-10 13:30:16 +00:00
|
|
|
|
2007-04-11 22:02:21 +00:00
|
|
|
WRKSRC= ${WRKDIR}/engauge
|
2006-06-10 13:30:16 +00:00
|
|
|
|
|
|
|
USE_QT_VER= 3
|
2007-02-13 00:16:29 +00:00
|
|
|
QTDIR?= ${QT_PREFIX}
|
2006-06-10 13:30:16 +00:00
|
|
|
MAKE_ENV= QMAKESPEC="${LOCALBASE}/share/qt/mkspecs/freebsd-g++" \
|
|
|
|
QTDIR="${QTDIR}"
|
|
|
|
|
|
|
|
DESKTOP_ENTRIES= "Engauge Digitizer" \
|
|
|
|
"Digitizing software to convert graphs into numbers" \
|
|
|
|
"${DATADIR}/lo16-app-digitizer.png" \
|
2007-01-07 22:22:41 +00:00
|
|
|
"engauge" \
|
2006-06-10 13:30:16 +00:00
|
|
|
"Education;Math;" \
|
|
|
|
true
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
2007-01-07 22:22:41 +00:00
|
|
|
DOCS= README
|
2006-06-10 13:30:16 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
.if !defined(WITH_DEBUG)
|
|
|
|
${REINPLACE_CMD} -e '/^CONFIG/s/debug/release/' ${WRKSRC}/digitizer.pro
|
|
|
|
.endif
|
|
|
|
${REINPLACE_CMD} -e 's|Path1("usermanual")|Path1("${DOCSDIR}/usermanual")|' \
|
|
|
|
${WRKSRC}/src/digitmain.cpp
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} qmake -unix digitizer.pro
|
|
|
|
|
|
|
|
do-install:
|
2007-01-07 22:22:41 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/engauge ${PREFIX}/bin
|
2006-06-10 13:30:16 +00:00
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/img/lo16-app-digitizer.png \
|
|
|
|
${DATADIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}/usermanual
|
|
|
|
${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/usermanual && ${FIND} . -type f -depth 1 \
|
|
|
|
-exec ${INSTALL_DATA} {} ${DOCSDIR}/usermanual \;
|
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/samples && ${FIND} . -type f -depth 1 \
|
|
|
|
-exec ${INSTALL_DATA} {} ${EXAMPLESDIR} \;
|
|
|
|
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
|
|
|
|
.endif
|
|
|
|
|
2009-01-05 21:05:49 +00:00
|
|
|
.include <bsd.port.mk>
|