aboutsummaryrefslogtreecommitdiff
path: root/science/ghemical/Makefile
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2004-03-06 21:50:13 +0000
committerMaho Nakata <maho@FreeBSD.org>2004-03-06 21:50:13 +0000
commitd77523f67ede4169ad5a3fe6903aaa74524f938c (patch)
tree7394a6a4f7dbd6f311a41f21336eb4a1b4009037 /science/ghemical/Makefile
parentfcac9744107b7c6be2645c9b7508eff9d501120c (diff)
downloadports-d77523f67ede4169ad5a3fe6903aaa74524f938c.tar.gz
ports-d77523f67ede4169ad5a3fe6903aaa74524f938c.zip
Notes
Diffstat (limited to 'science/ghemical/Makefile')
-rw-r--r--science/ghemical/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/science/ghemical/Makefile b/science/ghemical/Makefile
index 3bb4d18a2f70..6ff7b1ea4960 100644
--- a/science/ghemical/Makefile
+++ b/science/ghemical/Makefile
@@ -9,12 +9,13 @@ PORTVERSION= 1.01
CATEGORIES= science
MASTER_SITES= http://www.uku.fi/~thassine/ghemical/download/
DISTNAME= ${PORTNAME}-${PORTVERSION}
-EXTRACT_SUFX= .tgz
+EXTRACT_SUFX= .tgz
MAINTAINER= maho@FreeBSD.org
COMMENT= Ghemical is a computational chemistry software package
-BUILD_DEPENDS= ${LOCALBASE}/lib/libmpqc.a:${PORTSDIR}/science/mpqc
+BUILD_DEPENDS= ${LOCALBASE}/lib/libmpqc.a:${PORTSDIR}/science/mpqc \
+ f2c:${PORTSDIR}/lang/f2c
LIB_DEPENDS= glut:${PORTSDIR}/graphics/libglut \
gtkgl:${PORTSDIR}/x11-toolkits/gtkglarea \
glade-gnome:${PORTSDIR}/devel/libglade
@@ -22,7 +23,7 @@ LIB_DEPENDS= glut:${PORTSDIR}/graphics/libglut \
USE_GMAKE= yes
USE_REINPLACE= yes
USE_GTK= yes
-GNU_CONFIGURE= yes
+GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-mpqc
USE_AUTOCONF= yes
@@ -36,6 +37,9 @@ pre-patch:
@${REINPLACE_CMD} -e 's|gtk-config|${GTK_CONFIG}|g; s|-lgtk|-lgtk12|g;' \
${WRKSRC}/Makefile.in
pre-build:
+ @${REINPLACE_CMD} -e 's|MAXHEV=60, MAXLIT=60|MAXHEV=90, MAXLIT=90|g;' \
+ ${WRKSRC}/miniMOPAC/fortran/SIZES
+ (cd ${WRKSRC}/miniMOPAC ; ${SH} ${FILESDIR}/ghemical-f2c.sh)
@${REINPLACE_CMD} -e 's|f2c.h|g2c.h|g;' ${WRKSRC}/miniMOPAC/*.c
@${REINPLACE_CMD} -e 's|f2c.h|g2c.h|g;' ${WRKSRC}/src/common/qm1e_mopac.cpp
.include <bsd.port.mk>