aboutsummaryrefslogtreecommitdiffstats
path: root/biology
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2013-06-19 21:09:19 +0800
committerbsam <bsam@FreeBSD.org>2013-06-19 21:09:19 +0800
commite9059b43d6ec8fc5e75a277d5f57c0e2b60d2fa3 (patch)
tree82065da4d102dda0bef7a197106bfb02185fa574 /biology
parent07c413cc1007e7544eee89765fd367e5f7d5e9f4 (diff)
downloadfreebsd-ports-gnome-e9059b43d6ec8fc5e75a277d5f57c0e2b60d2fa3.tar.gz
freebsd-ports-gnome-e9059b43d6ec8fc5e75a277d5f57c0e2b60d2fa3.tar.zst
freebsd-ports-gnome-e9059b43d6ec8fc5e75a277d5f57c0e2b60d2fa3.zip
Index: Makefile
=================================================================== --- Makefile (revision 321238) +++ Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: seqio -# Date created: 17 August 2001 -# Whom: Tony Maher -# +# Created by: Tony Maher # $FreeBSD$ -# PORTNAME= seqio PORTVERSION= 1.2.2 @@ -13,38 +9,32 @@ DISTNAME= ${PORTNAME} MAINTAINER= ports@FreeBSD.org -COMMENT= A set of C functions which can read/write biological sequence files +COMMENT= Set of C functions which can read/write biological sequence files WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} EXAMPLES= example1.c example2.c example3.c example4.c seqio.c \ seqio.h Makefile PROGRAMS= fmtseq grepseq idxseq typeseq wcseq +PLIST_FILES+= ${PROGRAMS:S,^,bin/,} +PORTEXAMPLES= * +PORTDOCS= * +OPTIONS_DEFINE= DOCS EXAMPLES + +.include <bsd.port.options.mk> + do-install: - cd ${WRKSRC}; \ - for file in ${PROGRAMS}; do \ - ${INSTALL_PROGRAM} $$file ${PREFIX}/bin; \ - done -.if !defined(NOPORTEXAMPLES) - ${MKDIR} ${EXAMPLESDIR} - cd ${WRKSRC}; \ - for file in ${EXAMPLES}; do \ - ${INSTALL_DATA} $$file ${EXAMPLESDIR}; \ - done + ${INSTALL_PROGRAM} ${PROGRAMS:S,^,${WRKSRC}/,} ${PREFIX}/bin +.if ${PORT_OPTIONS:MEXAMPLES} + @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,} ${EXAMPLESDIR} .endif -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${MKDIR} ${DOCSDIR}/html +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR}/html ${INSTALL_DATA} ${WRKSRC}/bioseq.txt ${DOCSDIR} - cd ${WRKSRC}/doc; \ - for file in *.doc; do \ - ${INSTALL_DATA} $$file ${DOCSDIR}; \ - done - cd ${WRKSRC}/html; \ - for file in *.html; do \ - ${INSTALL_DATA} $$file ${DOCSDIR}/html; \ - done + ${INSTALL_DATA} ${WRKSRC}/doc/*.doc ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/html/*.html ${DOCSDIR}/html .endif .include <bsd.port.mk>
Diffstat (limited to 'biology')
-rw-r--r--biology/seqio/Makefile44
1 files changed, 17 insertions, 27 deletions
diff --git a/biology/seqio/Makefile b/biology/seqio/Makefile
index 9c7d8327c222..75a307c70efd 100644
--- a/biology/seqio/Makefile
+++ b/biology/seqio/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: seqio
-# Date created: 17 August 2001
-# Whom: Tony Maher
-#
+# Created by: Tony Maher
# $FreeBSD$
-#
PORTNAME= seqio
PORTVERSION= 1.2.2
@@ -13,38 +9,32 @@ MASTER_SITES= http://www.cs.ucdavis.edu/~gusfield/
DISTNAME= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
-COMMENT= A set of C functions which can read/write biological sequence files
+COMMENT= Set of C functions which can read/write biological sequence files
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
EXAMPLES= example1.c example2.c example3.c example4.c seqio.c \
seqio.h Makefile
PROGRAMS= fmtseq grepseq idxseq typeseq wcseq
+PLIST_FILES+= ${PROGRAMS:S,^,bin/,}
+PORTEXAMPLES= *
+PORTDOCS= *
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+.include <bsd.port.options.mk>
do-install:
- cd ${WRKSRC}; \
- for file in ${PROGRAMS}; do \
- ${INSTALL_PROGRAM} $$file ${PREFIX}/bin; \
- done
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR}
- cd ${WRKSRC}; \
- for file in ${EXAMPLES}; do \
- ${INSTALL_DATA} $$file ${EXAMPLESDIR}; \
- done
+ ${INSTALL_PROGRAM} ${PROGRAMS:S,^,${WRKSRC}/,} ${PREFIX}/bin
+.if ${PORT_OPTIONS:MEXAMPLES}
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,} ${EXAMPLESDIR}
.endif
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${MKDIR} ${DOCSDIR}/html
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/bioseq.txt ${DOCSDIR}
- cd ${WRKSRC}/doc; \
- for file in *.doc; do \
- ${INSTALL_DATA} $$file ${DOCSDIR}; \
- done
- cd ${WRKSRC}/html; \
- for file in *.html; do \
- ${INSTALL_DATA} $$file ${DOCSDIR}/html; \
- done
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.doc ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/html/*.html ${DOCSDIR}/html
.endif
.include <bsd.port.mk>