mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# New ports collection makefile for: primer3
|
|
# Date created: 25 February 2002
|
|
# Whom: Tony Maher <tonym@biolateral.com.au>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= primer3
|
|
PORTVERSION= 1.0.0
|
|
CATEGORIES= biology
|
|
MASTER_SITES= http://frodo.wi.mit.edu/primer3/
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
MAINTAINER= tonymaher@optusnet.com.au
|
|
COMMENT= Primer3 helps to choose primers for PCR reactions
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
DOCUMENTS= README example
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} \
|
|
-e 's#^CFLAGS.*#CFLAGS += \$$\(CC_OPTS\)#;' \
|
|
-e 's#CC_OPTS = -g#CC_OPTS =#;' \
|
|
-e 's#LDFLAGS = -g#LDFLAGS ?=#;' \
|
|
-e 's#^WHITEHEAD_SPECIFIC_HACK.*##;' \
|
|
${WRKDIR}/${DISTNAME}/src/Makefile
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/primer3_core ${PREFIX}/bin/primer3
|
|
@${MKDIR} ${DATADIR}
|
|
@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/Copyright ${DATADIR}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for file in ${DOCUMENTS}
|
|
@${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/${file} ${DOCSDIR}
|
|
.endfor
|
|
@${RM} -rf ${WRKDIR}/${DISTNAME}/test/primer*_list_tmp
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
@cd ${WRKDIR}/${DISTNAME}/test && ${FIND} * | ${CPIO} --quiet \
|
|
-pdum -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${DATADIR}/Copyright
|
|
|
|
.include <bsd.port.mk>
|