aboutsummaryrefslogtreecommitdiffstats
path: root/biology/ugene/Makefile
blob: ec2b37eee708b8a5536768f9f9d58abfb727f9ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Created by: Hannes Hauswedell <h2+fbsdports@fsfe.org>
# $FreeBSD$

PORTNAME=   ugene
DISTVERSION=    1.11.4
CATEGORIES= biology
MASTER_SITES=   http://ugene.unipro.ru/downloads/

MAINTAINER= h2+fbsdports@fsfe.org
COMMENT=    Free, open-source, cross-platform bioinformatics toolkit

LICENSE=    GPLv2

LIB_DEPENDS=    execinfo:${PORTSDIR}/devel/libexecinfo
RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash

USE_GL=     glu
USE_QT4=    gui webkit xml svg linguist_build moc_build qmake_build \
        qtestlib_build rcc_build uic_build imageformats_run
USE_XORG=   xtst

USE_LDCONFIG=   yes
INSTALLS_ICONS= yes

MAN1=       ${PORTNAME}.1
MANCOMPRESSED=  yes

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
# need to manually tell the build we are on x64
CARCH=      CONFIG+=x64
PLIST_SUB=  NOX64="@comment "
.else
PLIST_SUB=  NOX64=""
.endif

# yes, bash is required, stuff will not execute with sh
post-patch:
    @${REINPLACE_CMD} -e 's|/bin/bash|/usr/bin/env bash|' \
        ${WRKSRC}/src/gen_bin_script.cmd \
        ${WRKSRC}/installer/_common_data/ugene

do-configure:
    @cd ${CONFIGURE_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} \
        PREFIX=${PREFIX} INSTALL_PREFIX=${PREFIX} \
        INSTALL_MANDIR=${MAN1PREFIX}/man ${CARCH} \
        UGENE_INSTALL_DATA=${DATADIR} -r ${PORTNAME}.pro

.include <bsd.port.post.mk>