aboutsummaryrefslogtreecommitdiffstats
path: root/biology/pymol/Makefile
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2008-03-07 10:38:09 +0800
committermaho <maho@FreeBSD.org>2008-03-07 10:38:09 +0800
commit241a33fdffbe2ae5fb3902db883691a9278bd1d2 (patch)
tree333dac018117effedb45e1ce11174bd3dc84b339 /biology/pymol/Makefile
parent682e547464ddda1ec74f584493fc0f68c837a2a7 (diff)
downloadfreebsd-ports-gnome-241a33fdffbe2ae5fb3902db883691a9278bd1d2.tar.gz
freebsd-ports-gnome-241a33fdffbe2ae5fb3902db883691a9278bd1d2.tar.zst
freebsd-ports-gnome-241a33fdffbe2ae5fb3902db883691a9278bd1d2.zip
Update to 1.0r2.
Diffstat (limited to 'biology/pymol/Makefile')
-rw-r--r--biology/pymol/Makefile49
1 files changed, 9 insertions, 40 deletions
diff --git a/biology/pymol/Makefile b/biology/pymol/Makefile
index dc1d75cfe776..d053e5b0e62e 100644
--- a/biology/pymol/Makefile
+++ b/biology/pymol/Makefile
@@ -5,13 +5,9 @@
# $FreeBSD$
PORTNAME= pymol
-PORTVERSION= 0.99rc6
-PORTREVISION= 2
+PORTVERSION= 1.0r2
CATEGORIES= biology python
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= pymol
-DISTNAME= pymol-${PORTVERSION:S/./_/}-src
-EXTRACT_SUFX= .tgz
+MASTER_SITES= ${MASTER_SITE_LOCAL:S|%SUBDIR%|maho/pymol|}
MAINTAINER= maho@FreeBSD.org
COMMENT= Free and Open-Source molecular modeling system
@@ -26,42 +22,15 @@ WRKSRC= ${WRKDIR}/pymol-${PORTVERSION}
USE_GMAKE= yes
USE_PYTHON= yes
-.include <bsd.port.pre.mk>
+pre-build:
+ @${REINPLACE_CMD} -e "s+%%LOCALBASE%%+${LOCALBASE}+" ${WRKSRC}/setup.py
-.if ${ARCH} == "ia64"
-BROKEN= Does not build on ${ARCH}
-.endif
-
-.if ${ARCH} == "sparc64" || ${ARCH} == "amd64" || ${ARCH} == "ia64"
-PICFLAG?= -fPIC
-.else
-PICFLAG?= -fpic
-.endif
-
-pre-patch:
- @${CP} ${WRKSRC}/setup/Rules.linux ${WRKSRC}/Rules.make
-
-post-patch:
- @${CP} ${WRKSRC}/setup/pymol.com.linux-rh7x ${WRKSRC}/pymol
- @${REINPLACE_CMD} -e 's,@PREFIX@,${PREFIX},g' -e 's,@LOCALBASE@,${LOCALBASE},g' ${WRKSRC}/pymol
- ${REINPLACE_CMD} -e 's,@PYTHON_VERSION@,${PYTHON_VERSION},g' \
- -e 's,@LOCALBASE@,${LOCALBASE},g' \
- -e 's,@X11BASE@,${X11BASE},g' \
- -e 's,@CFLAGS@,${CFLAGS},g' \
- -e 's,@CC@,${CC},g' \
- -e 's,@PICFLAG@,${PICFLAG},g' ${WRKSRC}/Rules.make
+do-build:
+ @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build
do-install:
+ @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} install \
+ ; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup2.py install)
@${INSTALL_SCRIPT} ${WRKSRC}/pymol ${PREFIX}/bin/pymol
- @${MKDIR} ${PREFIX}/share/pymol
- @${TAR} -C ${WRKSRC} -chf - data modules test | \
- ${TAR} -xf - -C ${PREFIX}/share/pymol
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${EXAMPLESDIR}
- @${TAR} -C ${WRKSRC}/examples --exclude package -chf - . | \
- ${TAR} -xf - -C ${EXAMPLESDIR}
-.endif
- @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/pymol/modules
- @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/pymol/modules
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>