2012-10-23 12:24:02 +02:00
|
|
|
# $NetBSD: Makefile,v 1.33 2012/10/23 10:24:02 wiz Exp $
|
2000-03-13 05:41:58 +01:00
|
|
|
|
2005-10-07 17:13:21 +02:00
|
|
|
DISTNAME= RasMol_2.7.3
|
|
|
|
PKGNAME= rasmol-2.7.3
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2000-03-13 05:41:58 +01:00
|
|
|
CATEGORIES= biology
|
2005-10-07 17:13:21 +02:00
|
|
|
MASTER_SITES= http://www.bernstein-plus-sons.com/software/
|
2000-03-13 05:41:58 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2000-03-13 05:41:58 +01:00
|
|
|
HOMEPAGE= http://www.bernstein-plus-sons.com/software/rasmol/
|
2001-02-16 14:41:26 +01:00
|
|
|
COMMENT= Molecular Graphics Visualisation Tool
|
2000-03-13 05:41:58 +01:00
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
2000-03-13 05:41:58 +01:00
|
|
|
USE_IMAKE= YES
|
2005-12-28 15:03:51 +01:00
|
|
|
USE_TOOLS+= gunzip mkdirhier
|
2000-03-13 05:41:58 +01:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= DEPTHDEF=${DEPTHDEF:Q}
|
2000-03-13 05:41:58 +01:00
|
|
|
|
2002-09-29 03:32:05 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-06-11 22:50:50 +02:00
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 2.95.3
|
2002-04-20 16:41:05 +02:00
|
|
|
.endif
|
|
|
|
|
2000-09-27 16:14:24 +02:00
|
|
|
.if defined(RASMOL_DEPTH)
|
2005-12-05 21:49:47 +01:00
|
|
|
. if ${RASMOL_DEPTH} == 32
|
2000-09-27 16:14:24 +02:00
|
|
|
DEPTHDEF= -DTHIRTYTWOBIT
|
2005-12-05 21:49:47 +01:00
|
|
|
. elif ${RASMOL_DEPTH} == 16
|
2000-09-27 16:14:24 +02:00
|
|
|
DEPTHDEF= -DSIXTEENBIT
|
2005-12-05 21:49:47 +01:00
|
|
|
. endif
|
2000-09-27 16:14:24 +02:00
|
|
|
.endif
|
|
|
|
DEPTHDEF?= -DEIGHTBIT
|
|
|
|
|
2005-10-31 18:53:26 +01:00
|
|
|
pre-configure:
|
2000-03-13 05:41:58 +01:00
|
|
|
${LN} -sf ${WRKDIR}/${DISTNAME}/doc ${WRKSRC}
|
|
|
|
${LN} -sf ${WRKDIR}/${DISTNAME}/data ${WRKSRC}
|
|
|
|
cd ${WRKSRC} && ${SED} "s#@@PREFIX@@#${PREFIX}#" rasmol.h > \
|
|
|
|
rasmol.h.new && ${MV} rasmol.h.new rasmol.h
|
|
|
|
|
2010-12-30 09:33:47 +01:00
|
|
|
post-extract:
|
|
|
|
cd ${WRKSRC} && ${RM} -rf RCS doc/RCS src/RCS src/msc/RCS
|
|
|
|
|
2000-03-13 05:41:58 +01:00
|
|
|
post-install:
|
2009-07-08 17:26:26 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/NOTICE ${DESTDIR}${PREFIX}/share/doc/rasmol
|
2000-09-27 16:14:24 +02:00
|
|
|
for doc in manualA4.pdf.gz manualA4.ps.gz manualA4.rtf.gz \
|
|
|
|
manualUS.pdf.gz manualUS.ps.gz manualUS.rtf.gz \
|
|
|
|
refcardA4.pdf.gz refcardA4.ps.gz \
|
|
|
|
refcardA4.rtf.gz refcardUS.pdf.gz \
|
|
|
|
refcardUS.ps.gz refcardUS.rtf.gz; do \
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/$$doc \
|
2009-07-08 17:26:26 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/doc/rasmol; \
|
2000-09-27 16:14:24 +02:00
|
|
|
done
|
|
|
|
for data in 1crn.pdb 1gpd.pdb.gz 1ldb.pdb.gz 1ldm.pdb.gz \
|
|
|
|
3cro.pdb 4hir.ent.gz 4ins.CIF 7lyz.pdb \
|
|
|
|
IUCR9800028.cif asprin.alc pdb2mcg.ent; do \
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/data/$$data \
|
2009-07-08 17:26:26 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/rasmol; \
|
2000-09-27 16:14:24 +02:00
|
|
|
done
|
2000-03-13 05:41:58 +01:00
|
|
|
|
2007-01-11 12:37:07 +01:00
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
|
|
.include "../../x11/libXi/buildlink3.mk"
|
2000-03-13 05:41:58 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|