diff options
author | Maho Nakata <maho@FreeBSD.org> | 2007-01-17 05:30:10 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2007-01-17 05:30:10 +0000 |
commit | 8599517b9031815888d278fe2925b9d2fba0e73d (patch) | |
tree | 46ac73c22c7363d4dbd0dcaf41ae6cf99163137d /biology | |
parent | 568fefd5e3a4c4bd84738ea8b9caff7418873f51 (diff) | |
download | ports-8599517b9031815888d278fe2925b9d2fba0e73d.tar.gz ports-8599517b9031815888d278fe2925b9d2fba0e73d.zip |
Notes
Diffstat (limited to 'biology')
-rw-r--r-- | biology/platon/Makefile | 19 | ||||
-rw-r--r-- | biology/platon/files/Makefile | 5 |
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} |