[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / biology / rasmol

File: [cvs.NetBSD.org] / pkgsrc / biology / rasmol / Makefile (download)

Revision 1.21, Fri Jul 15 18:27:48 2005 UTC (15 years, 4 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2005Q3-base, pkgsrc-2005Q3
Changes since 1.20: +2 -2 lines

Drop distinction between PKGSRC_USE_TOOLS and USE_TOOLS by making
PKGSRC_USE_TOOLS go away.  There is now only a single USE_TOOLS variable
that specifies all of the tools we need to build/run the package.

# $NetBSD: Makefile,v 1.21 2005/07/15 18:27:48 jlam Exp $

DISTNAME=	RasMol_2.7.1
PKGNAME=	rasmol-2.7.1
PKGREVISION=	1
CATEGORIES=	biology
MASTER_SITES=	ftp://ftp.bernstein-plus-sons.com/software/

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://www.bernstein-plus-sons.com/software/rasmol/
COMMENT=	Molecular Graphics Visualisation Tool

WRKSRC=		${WRKDIR}/${DISTNAME}/src
USE_IMAKE=	YES
USE_TOOLS+=	gunzip

MAKE_ENV+=	DEPTHDEF="${DEPTHDEF}"

.include "../../mk/bsd.prefs.mk"

.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
GCC_REQD+=		2.95.3
.endif

.if defined(RASMOL_DEPTH)
.if ${RASMOL_DEPTH} == 32
DEPTHDEF=	-DTHIRTYTWOBIT
.else if ${RASMOL_DEPTH} == 16
DEPTHDEF=	-DSIXTEENBIT
.endif
.endif
DEPTHDEF?=	-DEIGHTBIT

post-patch:
	${LN} -sf ${WRKDIR}/${DISTNAME}/doc  ${WRKSRC}
	${LN} -sf ${WRKDIR}/${DISTNAME}/data ${WRKSRC}
	${GUNZIP_CMD} ${WRKDIR}/${DISTNAME}/doc/rasmol.1.gz
	cd ${WRKSRC} && ${SED} "s#@@PREFIX@@#${PREFIX}#" rasmol.h > \
		rasmol.h.new && ${MV} rasmol.h.new rasmol.h

post-install:
	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/NOTICE ${PREFIX}/share/doc/rasmol
	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		\
			${PREFIX}/share/doc/rasmol;			\
	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	\
			${PREFIX}/share/examples/rasmol;		\
	done

.include "../../mk/bsd.pkg.mk"