aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2010-07-15 15:12:53 +0800
committermiwi <miwi@FreeBSD.org>2010-07-15 15:12:53 +0800
commit47d3da27210660a4f9e23dcea017ef779c0f7726 (patch)
treef72db519081291d7e8d9160110c90c302d070265 /math
parentc4abe613e7fe6964c041fe8504d1a063695efe64 (diff)
downloadfreebsd-ports-gnome-47d3da27210660a4f9e23dcea017ef779c0f7726.tar.gz
freebsd-ports-gnome-47d3da27210660a4f9e23dcea017ef779c0f7726.tar.zst
freebsd-ports-gnome-47d3da27210660a4f9e23dcea017ef779c0f7726.zip
- Update to 0.6.3
PR: 148561 Submitted by: Ports Fury
Diffstat (limited to 'math')
-rw-r--r--math/fityk/Makefile38
-rw-r--r--math/fityk/distinfo9
-rw-r--r--math/fityk/pkg-plist22
3 files changed, 36 insertions, 33 deletions
diff --git a/math/fityk/Makefile b/math/fityk/Makefile
index 4a61f21eece4..32326179f3ed 100644
--- a/math/fityk/Makefile
+++ b/math/fityk/Makefile
@@ -7,15 +7,18 @@
#
PORTNAME= fityk
-PORTVERSION= 0.9.0
-PORTREVISION= 2
+PORTVERSION= 0.9.2
CATEGORIES= math
-MASTER_SITES= SF
+MASTER_SITES= SF \
+ SF/xylib:xylib
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:DEFAULT \
+ ${XYLIB_DISTNAME}${EXTRACT_SUFX}:xylib
MAINTAINER= ports@FreeBSD.org
COMMENT= Free peak fitting software
-BUILD_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
+BUILD_DEPENDS= ${LOCALBASE}/include/boost/spirit/core.hpp:${PORTSDIR}/devel/boost-libs \
+ gnuplot:${PORTSDIR}/math/gnuplot
RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
USE_BZIP2= yes
@@ -25,24 +28,43 @@ WX_CONF_ARGS= absolute
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:22
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-CONFIGURE_ARGS= --with-xylib --without-doc --disable-xyconvert
+CONFIGURE_ARGS= --without-doc --disable-xyconvert
USE_LDCONFIG= yes
MAN1= fityk.1 xyconv.1
PORTDOCS= *
CFLAGS+= -D_GNU_SOURCE
-CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
-LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+CPPFLAGS= -I${WRKDIR}/${XYLIB_DISTNAME} \
+ -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS= -L${WRKDIR}/${XYLIB_DISTNAME}/xylib/.libs \
+ -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+
+XYLIB_DISTNAME= xylib-0.6
post-patch:
@${REINPLACE_CMD} -e '/HELP_DEF/s|pkgdatadir|docdir|g' \
${WRKSRC}/src/wxgui/Makefile.in
@${REINPLACE_CMD} -e '/XYLIB_USE_TR1_MEMORY/s| 1| 0|g' \
- ${WRKSRC}/xylib/xylib/cache.h
+ ${WRKDIR}/${XYLIB_DISTNAME}/xylib/cache.h
+
+pre-configure:
+ @cd ${WRKDIR}/${XYLIB_DISTNAME} \
+ && ${SH} ./configure --disable-shared \
+ CC="${CC}" CFLAGS="${CFLAGS} -fPIC" \
+ CXX="${CXX}" CXXFLAGS="${CXXFLAGS} -fPIC" \
+ CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+pre-build:
+ @cd ${WRKDIR}/${XYLIB_DISTNAME} \
+ && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
+ ${ALL_TARGET}
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/fityk.1 ${MANPREFIX}/man/man1
+ ${INSTALL_PROGRAM} ${WRKDIR}/${XYLIB_DISTNAME}/xyconv ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKDIR}/${XYLIB_DISTNAME}/xyconv.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${DOCSDIR})
diff --git a/math/fityk/distinfo b/math/fityk/distinfo
index 652f9b726542..9ec2a97dba1f 100644
--- a/math/fityk/distinfo
+++ b/math/fityk/distinfo
@@ -1,3 +1,6 @@
-MD5 (fityk-0.9.0.tar.bz2) = bba2ee31335a574eab6fa9e338469e2a
-SHA256 (fityk-0.9.0.tar.bz2) = 50a2b34f1d3a2f2bdc3e41dcb0ea090210296f3dad62e5ed62c0820704f03985
-SIZE (fityk-0.9.0.tar.bz2) = 1593059
+MD5 (fityk-0.9.2.tar.bz2) = c710b3756a5db5b6341ee90ebcce12dc
+SHA256 (fityk-0.9.2.tar.bz2) = 16c9e85be2191ca3fbc527ff36cffdccf8e2f1ddeb34b2b622482488b604c857
+SIZE (fityk-0.9.2.tar.bz2) = 984246
+MD5 (xylib-0.6.tar.bz2) = 997d53ecea59c3f341250a3fc02c1b1b
+SHA256 (xylib-0.6.tar.bz2) = 86166e6df9dd6fe1c7581f9d111ca5e4d8b84656f94e25133b541054d95c834e
+SIZE (xylib-0.6.tar.bz2) = 288815
diff --git a/math/fityk/pkg-plist b/math/fityk/pkg-plist
index e8d0956ebb36..91799a67fe83 100644
--- a/math/fityk/pkg-plist
+++ b/math/fityk/pkg-plist
@@ -1,36 +1,14 @@
bin/cfityk
bin/fityk
bin/xyconv
-include/fityk/brucker_raw.h
-include/fityk/cache.h
-include/fityk/canberra_mca.h
-include/fityk/cpi.h
-include/fityk/dbws.h
-include/fityk/gsas.h
-include/fityk/pdcif.h
-include/fityk/philips_raw.h
-include/fityk/philips_udf.h
-include/fityk/riet7.h
-include/fityk/rigaku_dat.h
-include/fityk/text.h
-include/fityk/uxd.h
-include/fityk/vamas.h
-include/fityk/winspec_spe.h
-include/fityk/xfit_xdd.h
-include/fityk/xylib.h
include/fityk.h
lib/libfityk.a
lib/libfityk.la
lib/libfityk.so
lib/libfityk.so.2
-lib/libxy.a
-lib/libxy.la
-lib/libxy.so
-lib/libxy.so.2
share/applications/fityk.desktop
share/mime/packages/fityk.xml
share/pixmaps/fityk.png
@dirrmtry share/applications
-@dirrm include/fityk
@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime