2005-12-10 21:45:28 +00:00
|
|
|
# New ports collection makefile for: V_Sim
|
|
|
|
# Date created: Sep 27, 2005
|
|
|
|
# Whom: Thierry Thomas <thierry@pompo.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= v_sim
|
2009-11-07 10:19:44 +00:00
|
|
|
PORTVERSION= 3.5.0
|
2010-03-28 06:47:48 +00:00
|
|
|
PORTREVISION= 2
|
2005-12-10 21:45:28 +00:00
|
|
|
CATEGORIES= science
|
|
|
|
MASTER_SITES= http://www-drfmc.cea.fr/sp2m/L_Sim/V_Sim/download/
|
|
|
|
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
|
|
COMMENT= Visualization of atomic structures
|
|
|
|
|
2008-06-03 05:52:40 +00:00
|
|
|
LIB_DEPENDS= cairo:${PORTSDIR}/graphics/cairo
|
|
|
|
|
2005-12-10 21:45:28 +00:00
|
|
|
USE_BZIP2= yes
|
2009-11-07 10:19:44 +00:00
|
|
|
USE_FORTRAN= yes
|
2005-12-10 21:45:28 +00:00
|
|
|
USE_GNOME= gtk20
|
|
|
|
USE_GL= yes
|
|
|
|
USE_GMAKE= yes
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2008-06-03 05:52:40 +00:00
|
|
|
CONFIGURE_ARGS= --disable-gtk-doc --with-html-dir=${PREFIX}/share/doc
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
2005-12-10 21:45:28 +00:00
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
2009-11-07 10:19:44 +00:00
|
|
|
USE_LDCONFIG= yes
|
2005-12-10 21:45:28 +00:00
|
|
|
|
2008-05-21 20:20:34 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2008-04-03 20:12:18 +00:00
|
|
|
MAN1= v_sim.1
|
2008-05-21 20:20:34 +00:00
|
|
|
.endif
|
2008-04-03 20:12:18 +00:00
|
|
|
|
2005-12-10 21:45:28 +00:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.endif
|
|
|
|
|
2007-03-13 22:24:08 +00:00
|
|
|
.if !defined(WITHOUT_CDF)
|
2007-04-10 03:08:59 +00:00
|
|
|
LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
|
2008-06-03 05:52:40 +00:00
|
|
|
CONFIGURE_ARGS+=--with-netcdf=${LOCALBASE}
|
2007-03-13 22:24:08 +00:00
|
|
|
PLIST_SUB+= CDF=""
|
2005-12-10 21:45:28 +00:00
|
|
|
.else
|
2008-06-03 05:52:40 +00:00
|
|
|
CONFIGURE_ARGS+=--without-netcdf
|
2007-03-13 22:24:08 +00:00
|
|
|
PLIST_SUB+= CDF="@comment "
|
2005-12-10 21:45:28 +00:00
|
|
|
.endif
|
|
|
|
|
2007-03-13 22:24:08 +00:00
|
|
|
.if !defined(WITHOUT_BABEL)
|
2007-05-24 22:21:26 +00:00
|
|
|
LIB_DEPENDS+= openbabel.3:${PORTSDIR}/science/openbabel
|
2007-03-13 22:24:08 +00:00
|
|
|
CONFIGURE_ARGS+=--with-openbabel --with-openbabel-path=${LOCALBASE}
|
|
|
|
PLIST_SUB+= BABEL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-openbabel
|
|
|
|
PLIST_SUB+= BABEL="@comment "
|
2005-12-10 21:45:28 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${REINPLACE_CMD} -e 's|$$datadir/doc/$$PACKAGE/examples|${EXAMPLESDIR}|' \
|
2006-06-14 21:13:00 +00:00
|
|
|
-e 's|CFLAGS="-O2"|#CFLAGS="-O2"|;s|Werror ansi pedantic-errors||' \
|
2008-06-03 05:52:40 +00:00
|
|
|
-e 's|$${docdir}/examples|${EXAMPLESDIR}|' \
|
2005-12-10 21:45:28 +00:00
|
|
|
${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
.if defined(WITHOUT_NLS)
|
2008-05-21 20:20:34 +00:00
|
|
|
${REINPLACE_CMD} -e 's| po ||' \
|
2005-12-10 21:45:28 +00:00
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
|
|
|
.if defined(NOPORTDOCS)
|
2008-05-25 21:49:03 +00:00
|
|
|
${REINPLACE_CMD} -e 's|Documentation||' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
|
|
|
.if defined(NOPORTEXAMPLES)
|
|
|
|
${REINPLACE_CMD} -e 's|pixmaps \\|pixmaps|;s|examples$$||' \
|
2005-12-10 21:45:28 +00:00
|
|
|
${WRKSRC}/Makefile.in
|
2009-11-07 14:36:46 +00:00
|
|
|
${FIND} ${WRKSRC}/lib/plug-ins -name Makefile.in | ${XARGS} \
|
2008-11-22 15:37:06 +00:00
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|install-v_simexamplesDATA install-v_simpixmapsDATA|install-v_simpixmapsDATA|'
|
2009-11-07 14:36:46 +00:00
|
|
|
${REINPLACE_CMD} -e 's|: install-v_simexamplesDATA|:|' \
|
|
|
|
${WRKSRC}/lib/python/Makefile.in
|
2005-12-10 21:45:28 +00:00
|
|
|
.endif
|
|
|
|
|
2007-03-13 22:24:08 +00:00
|
|
|
.include <bsd.port.mk>
|