aboutsummaryrefslogtreecommitdiffstats
path: root/biology/platon
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2007-01-17 13:30:10 +0800
committermaho <maho@FreeBSD.org>2007-01-17 13:30:10 +0800
commite98fad0e3c9af13861978b92e649cf1f273069f0 (patch)
treea0ef9298b7d7449c927e227003a02b379cbee630 /biology/platon
parent54b362ad0499a7fc03517cc02914b5990bbe97fa (diff)
downloadfreebsd-ports-gnome-e98fad0e3c9af13861978b92e649cf1f273069f0.tar.gz
freebsd-ports-gnome-e98fad0e3c9af13861978b92e649cf1f273069f0.tar.zst
freebsd-ports-gnome-e98fad0e3c9af13861978b92e649cf1f273069f0.zip
* Migrate to gfortran.
* Bump port revision.
Diffstat (limited to 'biology/platon')
-rw-r--r--biology/platon/Makefile19
-rw-r--r--biology/platon/files/Makefile5
2 files changed, 11 insertions, 13 deletions
diff --git a/biology/platon/Makefile b/biology/platon/Makefile
index 75af54e599f3..fe2338f4610c 100644
--- a/biology/platon/Makefile
+++ b/biology/platon/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= platon
-PORTVERSION= 2003.12.04
+PORTVERSION= 2007.01.09
CATEGORIES= biology
MASTER_SITES= ftp://xraysoft.chem.uu.nl/pub/unix/
DISTNAME= platon
@@ -20,6 +20,11 @@ COMMENT= Tool for viewing molecular/crystallographic structures
RESTRICTED= free for academic, US$ 5000 for commercial users
USE_XLIB= yes
+WANT_FORTRAN= yes #dummy but future use
+BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
+FC= gfortran42
+F77= gfortran42
+MAKE_ENV+= FC="${FC}"
# This port only has snapshot archive
IGNOREFILES= platon.tar.gz
@@ -36,14 +41,12 @@ TESTDATADIR= ABSORB_EXAMPLE ABSTOMPA_EXAMPLE ABSTOMPA_TEST ADDSYM_EXAMPLE \
BROKEN= /usr/libexec/elf/ld: platon.o: .got subsegment exceeds 64K (size 88552)
.endif
-.if ${OSVERSION} >= 400004
-MAKE_ENV+= HAVE_G2C=yes
-.endif
-
pre-patch:
- (cd ${WRKDIR}/${DISTNAME} && ${GUNZIP_CMD} platon.f.Z)
- ${SED} 's,%%X11BASE%%,${X11BASE},g' ${FILESDIR}/Makefile > ${WRKDIR}/${DISTNAME}/Makefile
- (cd ${WRKDIR}/${DISTNAME} && ${GUNZIP_CMD} xdrvr.c.gz)
+ (cd ${WRKDIR}/${DISTNAME} ; ${GUNZIP_CMD} platon.f.Z xdrvr.c.gz)
+
+post-patch:
+ ${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile
+ ${REINPLACE_CMD} -e "s+%%X11BASE%%+${X11BASE}+" ${WRKSRC}/Makefile
pre-install:
${STRIP_CMD} ${WRKDIR}/${DISTNAME}/platon
diff --git a/biology/platon/files/Makefile b/biology/platon/files/Makefile
index 862af9363d60..4f6ca0bfb445 100644
--- a/biology/platon/files/Makefile
+++ b/biology/platon/files/Makefile
@@ -11,11 +11,6 @@ FOPT= ${FFLAGS} -Nx800 -NL400 -Nn802
.endif
COPT= ${CFLAGS} -I%%X11BASE%%/include
LOPT= -L%%X11BASE%%/lib -lX11
-.if defined(HAVE_G2C)
-LOPT+= -lg2c
-.else
-LOPT+= -lf2c
-.endif
all: ${OBJS}
${FC} -o ${TARGET} ${OBJS} ${LOPT}