freebsd-ports/science/xcrysden/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

39 lines
1.0 KiB
Makefile

# $FreeBSD$
PORTNAME= xcrysden
DISTVERSION= 1.5.60
PORTREVISION= 6
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 \
babel:science/openbabel \
convert:graphics/ImageMagick6 \
ppmtompeg:graphics/netpbm \
xwd:x11/xwd
USES= fortran gl 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 <bsd.port.mk>