mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
5c7304ef11
It corrects some minor mistakes including XSF file format, colourisation issues or node duplication.
81 lines
2.1 KiB
Makefile
81 lines
2.1 KiB
Makefile
# New ports collection makefile for: V_Sim
|
|
# Date created: Sep 27, 2005
|
|
# Whom: Thierry Thomas <thierry@pompo.net>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= v_sim
|
|
PORTVERSION= 3.5.2
|
|
CATEGORIES= science
|
|
MASTER_SITES= http://www-drfmc.cea.fr/sp2m/L_Sim/V_Sim/download/
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= Visualization of atomic structures
|
|
|
|
LIB_DEPENDS= cairo:${PORTSDIR}/graphics/cairo
|
|
|
|
USE_BZIP2= yes
|
|
USE_FORTRAN= yes
|
|
USE_GNOME= gtk20
|
|
USE_GL= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-gtk-doc --with-html-dir=${PREFIX}/share/doc
|
|
CONFIGURE_ENV= CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
|
USE_LDCONFIG= yes
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
MAN1= v_sim.1
|
|
.endif
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
PLIST_SUB+= NLS="@comment "
|
|
.else
|
|
USE_GETTEXT= yes
|
|
PLIST_SUB+= NLS=""
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_CDF)
|
|
LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
|
|
CONFIGURE_ARGS+=--with-netcdf=${LOCALBASE}
|
|
PLIST_SUB+= CDF=""
|
|
.else
|
|
CONFIGURE_ARGS+=--without-netcdf
|
|
PLIST_SUB+= CDF="@comment "
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_BABEL)
|
|
LIB_DEPENDS+= openbabel.3:${PORTSDIR}/science/openbabel
|
|
CONFIGURE_ARGS+=--with-openbabel --with-openbabel-path=${LOCALBASE}
|
|
PLIST_SUB+= BABEL=""
|
|
.else
|
|
CONFIGURE_ARGS+=--without-openbabel
|
|
PLIST_SUB+= BABEL="@comment "
|
|
.endif
|
|
|
|
pre-configure:
|
|
${REINPLACE_CMD} -e 's|$$datadir/doc/$$PACKAGE/examples|${EXAMPLESDIR}|' \
|
|
-e 's|CFLAGS="-O2"|#CFLAGS="-O2"|;s|Werror ansi pedantic-errors||' \
|
|
-e 's|$${docdir}/examples|${EXAMPLESDIR}|' \
|
|
${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
.if defined(WITHOUT_NLS)
|
|
${REINPLACE_CMD} -e 's| po ||' \
|
|
${WRKSRC}/Makefile.in
|
|
.endif
|
|
.if defined(NOPORTDOCS)
|
|
${REINPLACE_CMD} -e 's|Documentation||' \
|
|
${WRKSRC}/Makefile.in
|
|
.endif
|
|
.if defined(NOPORTEXAMPLES)
|
|
${REINPLACE_CMD} -e 's|pixmaps \\|pixmaps|;s|examples$$||' \
|
|
${WRKSRC}/Makefile.in
|
|
${FIND} ${WRKSRC}/lib/plug-ins -name Makefile.in | ${XARGS} \
|
|
${REINPLACE_CMD} -e \
|
|
's|install-v_simexamplesDATA install-v_simpixmapsDATA|install-v_simpixmapsDATA|'
|
|
${REINPLACE_CMD} -e 's|: install-v_simexamplesDATA|:|' \
|
|
${WRKSRC}/lib/python/Makefile.in
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|