From 3aa3261c8759cdc04b6657851c1705f2c5ebe24d Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Thu, 19 Jul 2018 19:19:38 +0000 Subject: New port: science/xcrysden: Crystalline and molecular structure visualisation program --- science/xcrysden/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 science/xcrysden/Makefile (limited to 'science/xcrysden/Makefile') diff --git a/science/xcrysden/Makefile b/science/xcrysden/Makefile new file mode 100644 index 000000000000..516fe32ac48e --- /dev/null +++ b/science/xcrysden/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +PORTNAME= xcrysden +DISTVERSION= 1.5.60 +CATEGORIES= science +MASTER_SITES= http://www.xcrysden.org/download/ + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Crystalline and molecular structure visualisation program + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libfftw3.so:math/fftw3 +RUN_DEPENDS= bwidget>0:x11-toolkits/bwidget + +USES= fortran gmake localbase:ldflags tcl tk +USE_GL= gl glu +USE_XORG= x11 xmu + +BINARY_ALIAS= make=gmake gcc=cc gfortran=gfortran${GCC_DEFAULT} + +post-patch: + @${CP} ${FILESDIR}/Make.sys ${WRKSRC} + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Make.sys + @${RM} -r ${WRKSRC}/external/src + +post-install: + @cd ${STAGEDIR}${PREFIX}/lib/${PORTNAME} && ${STRIP_CMD} xcrys xctclsh xsf2xsf + @${REINPLACE_CMD} -i '' -e 's|^\.|export LD_PRELOAD=/usr/local/lib/gcc${GCC_DEFAULT}/libgcc_s.so; .|' \ + ${STAGEDIR}${PREFIX}/bin/xcrysden + +.include -- cgit v1.2.3