aboutsummaryrefslogtreecommitdiff
path: root/biology/emboss/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'biology/emboss/Makefile')
-rw-r--r--biology/emboss/Makefile29
1 files changed, 15 insertions, 14 deletions
diff --git a/biology/emboss/Makefile b/biology/emboss/Makefile
index 27aa2db9b5ee..2fdecddae40f 100644
--- a/biology/emboss/Makefile
+++ b/biology/emboss/Makefile
@@ -6,14 +6,15 @@
#
PORTNAME= emboss
-PORTVERSION= 2.10.0
-PORTREVISION= 1
+PORTVERSION= 3.0.0
CATEGORIES= biology
-MASTER_SITES= ftp://ftp.uk.embnet.org/pub/EMBOSS/ \
+MASTER_SITES= ftp://emboss.open-bio.org/pub/EMBOSS/ \
+ ftp://ftp.uk.embnet.org/pub/EMBOSS/ \
ftp://ftp.es.embnet.org/pub/software/emboss/EMBOSS/ \
ftp://ftp.ebi.ac.uk/pub/software/unix/EMBOSS/
DISTNAME= ${PORTNAME:U}-${PORTVERSION}
DISTFILES= ${PORTNAME:U}-${PORTVERSION}${EXTRACT_SUFX}
+DIST_SUBDIR= ${PORTNAME}
MAINTAINER= fernan@iib.unsam.edu.ar
COMMENT= A collection of open source tools for genetic sequence analysis
@@ -23,16 +24,19 @@ BUILD_DEPENDS= clustalw:${PORTSDIR}/biology/clustalw \
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd \
png.5:${PORTSDIR}/graphics/png
-CONFLICTS= qmail-ldap2-* digest-*
+CONFLICTS= qmail-ldap-[0-9]* digest-[0-9]*
+PREFIX?= ${LOCALBASE}/emboss
+NO_MTREE= yes
USE_SUBMAKE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
+USE_AUTOTOOLS= libtool:15
INSTALLS_SHLIB= yes
USE_XLIB= yes
USE_MOTIF= yes
-USE_REINPLACE= yes
-PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_FILES= pkg-message
+SUB_LIST= PREFIX=${PREFIX} DATADIR=${DATADIR}
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:U}
DATADIR= ${PREFIX}/share/${PORTNAME:U}
@@ -43,20 +47,17 @@ CONFIG_FILE= ${WRKSRC}/emboss/emboss.default.template
post-patch:
.if !defined(NOPORTDOCS)
.for DIR in ${DOC_DIRS}
- ${REINPLACE_CMD} -e \
+ @ ${REINPLACE_CMD} -e \
's#$$(prefix)/share/$$(PACKAGE)/doc#$$(datadir)/doc/$$(PACKAGE)#' \
${WRKSRC}/${DIR}/Makefile.in
.endfor
.endif
+pre-install:
+ @ ${REINPLACE_CMD} -e 's#%%DATADIR%%#${DATADIR}#' ${CONFIG_FILE}
+
post-install:
- @ cd ${WRKSRC} && \
- ${SED} -e 's#%%PREFIX%%#${PREFIX}#' \
- ${CONFIG_FILE} > ${PREFIX}/etc/emboss.default.sample && \
- ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PREFIX}/etc/emboss.default.sample
- @ ${SED} -e 's#%%PREFIX%%#${PREFIX}#' ${.CURDIR}/pkg-message > ${PKGMESSAGE}
-.if !defined(BATCH)
+ ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DATADIR}/emboss.default.template
@ ${CAT} ${PKGMESSAGE}
-.endif
.include <bsd.port.mk>