aboutsummaryrefslogtreecommitdiffstats
path: root/science/openbabel/Makefile
blob: e8c5c5b722045987f974e4e32f2cd584ff8bf9a2 (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
# ex:ts=8
# Ports collection makefile for:    openbabel
# Date created:         Jan 5, 2003
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   openbabel
PORTVERSION=    2.2.3
CATEGORIES= science
MASTER_SITES=   SF

MAINTAINER= makc@FreeBSD.org
COMMENT=    Chemistry file translation program

LIB_DEPENDS=    boost_python.4:${PORTSDIR}/devel/boost-python-libs

WITH_FBSD10_FIX=yes
USE_GNOME=  gnomehack libxml2
USE_AUTOTOOLS=  libtool
USE_LDCONFIG=   yes

MAN1=       obchiral.1 obconformer.1 obenergy.1 obfit.1 obgen.1 obgrep.1 \
        obminimize.1 obprobe.1 obprop.1 obrotamer.1 obrotate.1 \
        openbabel.1 roundtrip.1

PLIST_SUB=  VERSION="${PORTVERSION}"

MAKE_JOBS_SAFE= yes

.include <bsd.port.pre.mk>

post-extract:
    @${LN} -sf babel.1 ${WRKSRC}/doc/openbabel.1

post-patch:
    @${REINPLACE_CMD} -e \
        's|/usr/local/|${LOCALBASE}|g' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e \
        's|= babel|= openbabel|g' ${WRKSRC}/doc/Makefile.in
    @${REINPLACE_CMD} -e 's| babel| openbabel|g ; \
         s|"babel|"openbabel|g' ${WRKSRC}/doc/o*.1
    @${REINPLACE_CMD} -e 's|babel$$(EXEEXT)|openbabel$$(EXEEXT)|g' ${WRKSRC}/tools/Makefile.in

.include <bsd.port.post.mk>