2000-07-31 19:13:54 +00:00
|
|
|
# New ports collection makefile for: emboss
|
|
|
|
# Date created: 31 July 2000
|
|
|
|
# Whom: Johann Visagie <johann@egenetics.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= emboss
|
2000-11-28 01:43:39 +00:00
|
|
|
PORTVERSION= 1.8.0
|
2000-07-31 19:13:54 +00:00
|
|
|
CATEGORIES= biology
|
2000-09-08 10:07:13 +00:00
|
|
|
MASTER_SITES= ftp://ftp.uk.embnet.org/pub/EMBOSS/ \
|
2000-12-04 13:00:07 +00:00
|
|
|
ftp://ftp.no.embnet.org/pub/EMBOSS/ \
|
|
|
|
ftp://ftp.ebi.ac.uk/pub/software/unix/EMBOSS/
|
2000-11-28 01:43:39 +00:00
|
|
|
DISTFILES= ${PORTNAME:U}-${PORTVERSION}${EXTRACT_SUFX}
|
2000-11-13 13:48:49 +00:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2000-11-28 01:43:39 +00:00
|
|
|
EXTRACT_ONLY= ${PORTNAME:U}-${PORTVERSION}${EXTRACT_SUFX}
|
2000-07-31 19:13:54 +00:00
|
|
|
|
|
|
|
MAINTAINER= johann@egenetics.com
|
|
|
|
|
|
|
|
LIB_DEPENDS= gd.1:${PORTSDIR}/graphics/gd \
|
|
|
|
png.4:${PORTSDIR}/graphics/png
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_LIBTOOL= yes
|
2000-09-22 10:24:52 +00:00
|
|
|
USE_XLIB= yes
|
2000-11-13 13:48:49 +00:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2000-11-28 01:43:39 +00:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2000-11-19 03:06:48 +00:00
|
|
|
|
2000-11-13 13:48:49 +00:00
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
|
|
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/gd" \
|
2000-07-31 19:13:54 +00:00
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
|
|
|
|
2000-11-13 13:48:49 +00:00
|
|
|
SCRIPTS_ENV+= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|
|
|
MKDIR="${MKDIR}" \
|
|
|
|
RM="${RM}"
|
|
|
|
|
2000-11-28 01:43:39 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME:U}-${PORTVERSION}
|
2000-11-13 13:48:49 +00:00
|
|
|
EMBASSY_WRKDIR= ${WRKSRC}/EMBASSY
|
|
|
|
PHYLIP_VERSION= 3.573c
|
|
|
|
MSE_VERSION= 0.0.4
|
|
|
|
TOPO_VERSION= 0.1
|
|
|
|
.for app in MSE PHYLIP TOPO
|
|
|
|
SCRIPTS_ENV+= ${app}_VERSION="${${app}_VERSION}"
|
|
|
|
.if defined(WITH_${app})
|
|
|
|
APPLIST+= ${app}
|
|
|
|
PLISTS+= ${PKGDIR}/pkg-plist.${app}
|
|
|
|
${app}_WRKSRC= ${EMBASSY_WRKDIR}/${app}-${${app}_VERSION}
|
|
|
|
${app}_DISTFILE=${app}-${${app}_VERSION}${EXTRACT_SUFX}
|
|
|
|
DISTFILES+= ${${app}_DISTFILE}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
PLISTS+= ${PKGDIR}/pkg-plist
|
2000-11-01 11:54:56 +00:00
|
|
|
DOC_DIRS= doc/manuals doc/tutorials doc/programs/text doc/programs/html
|
2000-09-07 14:02:52 +00:00
|
|
|
|
2000-11-13 13:48:49 +00:00
|
|
|
pre-fetch:
|
|
|
|
@ ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.${PORTNAME}
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
.for app in ${APPLIST}
|
|
|
|
@ ${MKDIR} ${EMBASSY_WRKDIR}
|
|
|
|
@ cd ${EMBASSY_WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
|
|
|
|
${_DISTDIR}/${${app}_DISTFILE} ${EXTRACT_AFTER_ARGS}
|
|
|
|
@ if [ `id -u` = 0 ]; then \
|
|
|
|
${CHMOD} -R ug-s ${${app}_WRKSRC}; \
|
|
|
|
${CHOWN} -R 0:0 ${${app}_WRKSRC}; \
|
|
|
|
fi
|
|
|
|
.endfor
|
|
|
|
|
2000-09-07 14:02:52 +00:00
|
|
|
post-patch:
|
|
|
|
.for DIR in ${DOC_DIRS}
|
|
|
|
@ ${PERL} -pi.orig -e \
|
|
|
|
"s#share/\\$$\(PACKAGE\)/doc#share/doc/\\$$\(PACKAGE\)#" \
|
|
|
|
${WRKSRC}/${DIR}/Makefile.in
|
|
|
|
.endfor
|
|
|
|
|
2000-11-13 13:48:49 +00:00
|
|
|
post-configure:
|
|
|
|
.for app in ${APPLIST}
|
|
|
|
@ (cd ${${app}_WRKSRC} && \
|
|
|
|
${SETENV} CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" \
|
|
|
|
CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \
|
|
|
|
INSTALL_DATA="${INSTALL_DATA}" \
|
|
|
|
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
|
|
|
|
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
|
|
|
|
${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
.for app in ${APPLIST}
|
|
|
|
@ (cd ${${app}_WRKSRC} && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \
|
|
|
|
${MAKE_ARGS})
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@ ${CAT} ${PLISTS} > ${PLIST}
|
|
|
|
|
2000-08-12 16:15:48 +00:00
|
|
|
post-install:
|
2000-11-13 13:48:49 +00:00
|
|
|
.for app in ${APPLIST}
|
|
|
|
@ (cd ${${app}_WRKSRC} && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \
|
|
|
|
${MAKE_ARGS} ${INSTALL_TARGET})
|
|
|
|
.endfor
|
2000-08-12 16:15:48 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/emboss/acd/emboss.default \
|
|
|
|
${PREFIX}/etc/emboss.default.sample
|
|
|
|
.if !defined(BATCH)
|
2000-11-28 01:43:39 +00:00
|
|
|
@ ${PERL} -pe 's#%%PREFIX%%#${PREFIX}#' \
|
|
|
|
pkg-message > ${PKGMESSAGE}
|
2000-08-12 16:15:48 +00:00
|
|
|
@ ${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
|
|
|
|
2000-11-13 13:48:49 +00:00
|
|
|
post-clean:
|
|
|
|
@ ${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
|
|
|
|
2000-07-31 19:13:54 +00:00
|
|
|
.include <bsd.port.mk>
|