diff options
Diffstat (limited to 'biology/fasta3/Makefile')
-rw-r--r-- | biology/fasta3/Makefile | 71 |
1 files changed, 36 insertions, 35 deletions
diff --git a/biology/fasta3/Makefile b/biology/fasta3/Makefile index 6415d90b8247..9155c60064f3 100644 --- a/biology/fasta3/Makefile +++ b/biology/fasta3/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= fasta3 -PORTVERSION= 36.3.6 +PORTVERSION= 36.3.6d CATEGORIES= biology MASTER_SITES= http://faculty.virginia.edu/wrpearson/fasta/fasta36/ DISTNAME= fasta-${PORTVERSION} @@ -10,59 +10,60 @@ DISTNAME= fasta-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Collection of programs for searching DNA and protein databases +OPTIONS_DEFINE= DOCS EXAMPLES + NO_CDROM= May not be sold or incorporated into a commercial product + WRKSRC= ${WRKDIR}/${DISTNAME} BUILD_WRKSRC= ${WRKSRC}/src INSTALL_WRKSRC= ${BUILD_WRKSRC} -SUB_FILES= pkg-message + MAKEFILE= Makefile.freebsd +MAKE_ENV= THR_LIBS="-pthread" XDIR="${STAGEDIR}${PREFIX}/bin" \ + FASTA_HOST="$$(${UNAME} -n)" -XDIR= ${PREFIX}/bin -FASTA_HOST!= /usr/bin/uname -n +SUB_FILES= pkg-message -MAKE_ENV+= THR_LIBS=${PTHREAD_LIBS} XDIR=${XDIR} \ - FASTA_HOST='"${FASTA_HOST}"' +PLIST_SUB= VER="${PORTVERSION:R:R}" -FASTA3_DOCS= README.versions \ +MAN1_LINKS= fastf35.1 fasts35.1 fastm35.1 fastx35.1 fasty35.1 \ + ggsearch35.1 lalign35.1 ssearch35.1 tfasta35.1 tfastf35.1 \ + tfasts35.1 tfastx35.1 tfasty35.1 prfx35.1 prss35.1 +MAN1_FILES= fasta36.1 fastf3.1 fasts3.1 prss3.1 map_db.1 ps_lav.1 +DOC_FILES= README.versions \ fasta_func.doc readme.* fasta.defaults \ fasta.options fasta_versions.html changes*.html DATA= data/*.mat EXAMPLES= seq/*.aa seq/*.lc seq/*.seq seq/*.lib -MAN1= fasta36.1 fastf3.1 fasts3.1 prss3.1 map_db.1 ps_lav.1 -MLINKS= fasta36.1 tfasta35.1 fasta36.1 fastx35.1 fasta36.1 tfastx35.1 \ - fasta36.1 fasty35.1 fasta36.1 tfasty35.1 fasta36.1 ssearch35.1 \ - fasta36.1 fastf35.1 fasta36.1 fasts35.1 fasta36.1 tfasts35.1 \ - fasta36.1 fastm35.1 fasta36.1 tfastf35.1 fasta36.1 ggsearch35.1 \ - fasta36.1 lalign35.1 fasta36.1 prss35.1 fasta36.1 prfx35.1 -PLIST_SUB= VER=${PORTVERSION:R:R} - -NO_STAGE= yes post-patch: - @ ${CP} ${WRKSRC}/make/${MAKEFILE} ${BUILD_WRKSRC}/ + @${CP} ${WRKSRC}/make/${MAKEFILE} ${BUILD_WRKSRC} + post-install: - ${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin/ - ${INSTALL_DATA} ${WRKSRC}/conf/fastlibs ${PREFIX}/etc/fastlibs.sample - @ ${MKDIR} ${DATADIR} + (cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} * ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC}/conf && ${INSTALL_DATA} fastlibs \ + ${STAGEDIR}${PREFIX}/etc/fastlibs.sample) + @${MKDIR} ${STAGEDIR}${DATADIR} .for data in ${DATA} - ${INSTALL_DATA} ${WRKSRC}/${data} ${DATADIR} + (cd ${WRKSRC} && ${INSTALL_DATA} ${data} ${STAGEDIR}${DATADIR}) .endfor - @ ${MKDIR} ${EXAMPLESDIR} -.for ex in ${EXAMPLES} - ${INSTALL_DATA} ${WRKSRC}/${ex} ${EXAMPLESDIR} +.for manpage in ${MAN1_FILES} + (cd ${WRKSRC}/doc && ${INSTALL_MAN} ${manpage} \ + ${STAGEDIR}${MAN1PREFIX}/man/man1) +.endfor +.for links in ${MAN1_LINKS} + (${LN} -sf fasta36.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/${links}) .endfor -.for manpage in ${MAN1} - ${INSTALL_MAN} ${WRKSRC}/doc/${manpage} ${MAN1PREFIX}/man/man1/ + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for i in COPYRIGHT FASTA_LIST README + (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR}) .endfor -.if !defined(NOPORTDOCS) - @ ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/FASTA_LIST ${DOCSDIR} -.for docfile in ${FASTA3_DOCS} - @ ${INSTALL_DATA} ${WRKSRC}/doc/${docfile} ${DOCSDIR} +.for docfile in ${DOC_FILES} + (cd ${WRKSRC}/doc && ${INSTALL_DATA} ${docfile} ${STAGEDIR}${DOCSDIR}) +.endfor + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} +.for ex in ${EXAMPLES} + (cd ${WRKSRC} && ${INSTALL_DATA} ${ex} ${STAGEDIR}${EXAMPLESDIR}) .endfor -.endif - @ ${CAT} ${PKGMESSAGE} .include <bsd.port.mk> |