aboutsummaryrefslogtreecommitdiffstats
path: root/science/ghemical/Makefile
blob: 0346978987dc79847444b004ad108c9bb257f6a0 (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
# Created by: Nakata Maho <maho@FreeBSD.org>
# $FreeBSD$

PORTNAME=   ghemical
PORTVERSION=    3.0.0
PORTREVISION=   8
CATEGORIES= science
MASTER_SITES=   http://bioinformatics.org/ghemical/download/%SUBDIR%/
MASTER_SITE_SUBDIR= release20111012 current

MAINTAINER= ports@FreeBSD.org
COMMENT=    Computational chemistry software package

LICENSE=    GPLv2 # (or later)

LIB_DEPENDS=    libmopac7.so:${PORTSDIR}/biology/mopac \
        libghemical.so:${PORTSDIR}/science/libghemical \
        liboglappth.so:${PORTSDIR}/science/liboglappth \
        libmpqc.so:${PORTSDIR}/science/mpqc \
        libopenbabel.so:${PORTSDIR}/science/openbabel \
        libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext
RUN_DEPENDS=    xdg-open:${PORTSDIR}/devel/xdg-utils

USES=       fortran gettext gmake pathfix pkgconfig
USE_GNOME=  gtk20 libglade2 intltool
USE_GL=     glu
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-gtk --enable-threads --enable-openbabel

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

PLIST_SUB=  GHEMICAL_VERSION="${PORTVERSION}"

post-patch:
    @${REINPLACE_CMD} -e \
        's|"mozilla "|"xdg-open "|' ${WRKSRC}/src/gtk_app.cpp

.include <bsd.port.mk>