1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/biology/emboss/Makefile
Muhammad Moinur Rahman ee6c86aea5 */*: Refactor with IGNORE_WITH_MYSQL
- There are multiple ports which has MYSQL options and are non-DEFAULT.
  Most of the time committers actually forget to check with the OPTION
  enabled and in some cases they are BROKEN with newr versions of mysql.
  So test with different versions of mysql and mark IGNOPRE_WITH_MYSQL
  appropriately. Due to the EOL of 5.7 this has not been checked.
- Unbreak sysutils/cfengine* with MySQL 8.0 and later
- The primary purpose of running this check is having statistics of the
  MySQL usability over MariaDB to explore the future possibility of
  shifting to MariaDB as the default as major ports upstream have moved
  their codebase to support MariaDB over MySQL.
- The following actions will also be taken after the sunset of MySQL 5.7
  If a port is broken on all instances of MySQL/MariaDB:
  - If a port has the option of multiple DB backends and MySQL is the
    default then the DEFAULT will be changed to PGSQL/SQLITE before
    2024Q1. And the OPTION will be removed before 2024Q2. If a
    MAINTAINER is aware about such cases and want to prefer PGSQL over
    SQLITE or vice versa please do so at your own accord. Otherwise
    PGSQL will be preferred over SQLITE.
  - If a port has the option of multiple DB backends and MySQL is not
    the default then the the OPTION will be removed before 2024Q1.

Approved by:	portmgr (blanket)
2023-12-29 19:24:39 +01:00

67 lines
1.7 KiB
Makefile

PORTNAME= emboss
PORTVERSION= 6.6.0
PORTREVISION= 7
CATEGORIES= biology
MASTER_SITES= ftp://emboss.open-bio.org/pub/EMBOSS/
DISTNAME= ${PORTNAME:tu}-${PORTVERSION}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= wen@FreeBSD.org
COMMENT= Collection of open source tools for genetic sequence analysis
WWW= http://www.emboss.org/
LICENSE= GPLv2
BUILD_DEPENDS= clustalw:biology/clustalw \
primer3:biology/primer3
LIB_DEPENDS= libgd.so:graphics/gd \
libpng.so:graphics/png
USES= gmake libtool iconv localbase:ldflags pgsql ssl
USE_SUBMAKE= yes
CONFLICTS= qmail-ldap digest
PREFIX?= ${LOCALBASE}/emboss
NO_MTREE= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
SUB_FILES= pkg-message emboss-shell
SUB_LIST= PREFIX=${PREFIX} DATADIR=${DATADIR}
CONFIGURE_ARGS+=${ICONV_CONFIGURE_ARG}
INSTALL_TARGET= install-strip
DOCSDIR= ${PREFIX}/share/${PORTNAME:tu}/doc
DATADIR= ${PREFIX}/share/${PORTNAME:tu}
OPTIONS_DEFINE= DOCS MYSQL X11
OPTIONS_DEFAULT= X11
DOCS_CONFIGURE_ON= --with-docroot=${DOCSDIR}
MYSQL_USES= mysql
MYSQL_VARS= IGNORE_WITH_MYSQL="80 81"
X11_USES= motif xorg
X11_USE= XORG=x11
X11_LIB_DEPENDS= libgd.so:graphics/gd \
libpng.so:graphics/png
X11_CONFIGURE_OFF= --without-x
CONFIG_FILE= ${WRKSRC}/emboss/emboss.default.template
post-patch:
@${REINPLACE_CMD} -e 's/-liconv/${ICONV_LIB}/' ${WRKSRC}/configure
post-build:
${CC} -DEMBOSS_PREFIX="\"${PREFIX}\"" ${FILESDIR}/emboss.c -o ${WRKDIR}/emboss
pre-install:
@ ${REINPLACE_CMD} -e 's#%%DATADIR%%#${PREFIX}/share/${PORTNAME:tu}#' ${CONFIG_FILE}
post-install:
@${MKDIR} ${STAGEDIR}${LOCALBASE}/bin
${INSTALL_SCRIPT} ${WRKDIR}/emboss-shell ${STAGEDIR}${LOCALBASE}/bin
${INSTALL_DATA} ${CONFIG_FILE} ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${WRKDIR}/emboss ${STAGEDIR}${LOCALBASE}/bin
.include <bsd.port.mk>