diff options
author | jeh <jeh@FreeBSD.org> | 2000-11-13 21:48:49 +0800 |
---|---|---|
committer | jeh <jeh@FreeBSD.org> | 2000-11-13 21:48:49 +0800 |
commit | afd364ec0e375612d7a03acd5c03bd95b5b9e338 (patch) | |
tree | 1bcd9fd9b3846a961fc82e91931abbdcbce5fdc5 /biology/emboss/Makefile | |
parent | e52ad364d3a48beb2b430381c5af3d0cb86593bb (diff) | |
download | freebsd-ports-gnome-afd364ec0e375612d7a03acd5c03bd95b5b9e338.tar.gz freebsd-ports-gnome-afd364ec0e375612d7a03acd5c03bd95b5b9e338.tar.zst freebsd-ports-gnome-afd364ec0e375612d7a03acd5c03bd95b5b9e338.zip |
- This is a fairly extensive rework of this port.
- "EMBASSY" applications are third party tools which have been adapted to
function as part of EMBOSS, but which are not included with the base EMBOSS
distribution for licensing or other reasons. This new version of the
EMBOSS port now contains the three current EMBASSY applications as well,
and during installation the user is presented with a dialog(1) menu to
choose which of these should be isntalled.
PR: 22818
Submitted by: Johann Visagie <johann@egenetics.com> MAINTAINER
Diffstat (limited to 'biology/emboss/Makefile')
-rw-r--r-- | biology/emboss/Makefile | 76 |
1 files changed, 74 insertions, 2 deletions
diff --git a/biology/emboss/Makefile b/biology/emboss/Makefile index 651c403ee3eb..5ffa3f400065 100644 --- a/biology/emboss/Makefile +++ b/biology/emboss/Makefile @@ -7,10 +7,13 @@ PORTNAME= emboss PORTVERSION= 1.7.0 +PORTREVISION= 1 CATEGORIES= biology MASTER_SITES= ftp://ftp.uk.embnet.org/pub/EMBOSS/ \ ftp://ftp.no.embnet.org/pub/EMBOSS/ -DISTNAME= EMBOSS-${PORTVERSION} +DISTFILES= ${PORTNAME:U}-${PORTVERSION}${EXTRACT_SUFX} +DIST_SUBDIR= ${PORTNAME} +EXTRACT_ONLY= ${PORTNAME:U}-${PORTVERSION}${EXTRACT_SUFX} MAINTAINER= johann@egenetics.com @@ -20,12 +23,51 @@ LIB_DEPENDS= gd.1:${PORTSDIR}/graphics/gd \ USE_GMAKE= yes USE_LIBTOOL= yes USE_XLIB= yes +PLIST= ${WRKDIR}/pkg-plist -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/gd" \ +.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) +.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" +.endif + +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/gd" \ LIBS="-L${LOCALBASE}/lib" +SCRIPTS_ENV+= WRKDIRPREFIX="${WRKDIRPREFIX}" \ + MKDIR="${MKDIR}" \ + RM="${RM}" + +WRKSRC= ${WRKDIR}/${PORTNAME:U}-${PORTVERSION} +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 DOC_DIRS= doc/manuals doc/tutorials doc/programs/text doc/programs/html +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 + post-patch: .for DIR in ${DOC_DIRS} @ ${PERL} -pi.orig -e \ @@ -33,11 +75,41 @@ post-patch: ${WRKSRC}/${DIR}/Makefile.in .endfor +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} + post-install: +.for app in ${APPLIST} + @ (cd ${${app}_WRKSRC} && \ + ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \ + ${MAKE_ARGS} ${INSTALL_TARGET}) +.endfor @ ${INSTALL_DATA} ${WRKSRC}/emboss/acd/emboss.default \ ${PREFIX}/etc/emboss.default.sample .if !defined(BATCH) @ ${CAT} ${PKGMESSAGE} .endif +post-clean: + @ ${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc + .include <bsd.port.mk> |