blob: 2e7dc3862f81c7bfc8c5a82021e9970c88ee8845 (
plain)
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
|
# Created by: NAKATA, Maho <maho@FreeBSD.org>
# $FreeBSD$
PORTNAME= chemtool
PORTVERSION= 1.7.20050716
PORTREVISION= 7
CATEGORIES= science
MASTER_SITES= http://ruby.chemie.uni-freiburg.de/~martin/chemtool/
DISTNAME= ct17a15
EXTRACT_SUFX= .tgz
MAINTAINER= maho@FreeBSD.org
COMMENT= Drawing organic molecules easily and store them (developer version)
LIB_DEPENDS= EMF.1:${PORTSDIR}/graphics/libemf
RUN_DEPENDS= transfig:${PORTSDIR}/print/transfig
WRKSRC= ${WRKDIR}/${PORTNAME}-1.7alpha15/
USE_GNOME= gtk20
#USE_AUTOTOOLS= autoconf213
GNU_CONFIGURE= yes
USES= gettext gmake pkgconfig
CONFIGURE_ARGS= --enable-emf=yes
PKGNAMESUFFIX= -devel
MAN1= chemtool.1 cht.1
MAKE_JOBS_UNSAFE= yes
#to include emf
CFLAGS+= -I${LOCALBASE}/include/libEMF
CXXFLAGS+= -I${LOCALBASE}/include/libEMF
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's+%%LOCALBASE%%+${LOCALBASE}+g;' ${WRKSRC}/configure.in
@${REINPLACE_CMD} -e 's+%%LOCALBASE%%+${LOCALBASE}+g;' ${WRKSRC}/configure
do-install:
@(cd ${WRKSRC}; ${GMAKE} install)
@(cd ${WRKSRC}; \
${MKDIR} ${PREFIX}/share/examples/chemtool/; \
cd ${WRKSRC}/examples/; \
${INSTALL_DATA} * ${PREFIX}/share/examples/chemtool; \
)
.include <bsd.port.mk>
|