summaryrefslogtreecommitdiff
path: root/science/chemtool/Makefile
blob: e427dfff052ce4e9383bf4c84904ef7f35e6d700 (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
# New ports collection makefile for:	chemtool
# Date created:			Mar 31, 2001
# Whom:				Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=	chemtool
PORTVERSION=	1.6
CATEGORIES=	science
MASTER_SITES=	http://ruby.chemie.uni-freiburg.de/~martin/chemtool/

MAINTAINER=	maho@FreeBSD.org
COMMENT=	Draw organic molecules easily and store them

#LIB_DEPENDS=   EMF.1:${PORTSDIR}/graphics/libemf
RUN_DEPENDS=	transfig:${PORTSDIR}/print/transfig

USE_GNOME=	gtk12
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \ #-I${LOCALBASE}/include/libEMF"
		LDFLAGS="-L${LOCALBASE}/lib"
#CONFIGURE_ARGS= --enable-emf=yes

MAN1=	chemtool.1 cht.1

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/chemtool ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/src-cht/cht ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/chemtool.1 ${MANPREFIX}/man/man1
	${INSTALL_MAN} ${WRKSRC}/cht.1 ${MANPREFIX}/man/man1
.for lang in cs de fr pl pt_BR ru
	@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
	${INSTALL_DATA} ${WRKSRC}/locales/${lang}/chemtool.mo \
		${PREFIX}/share/locale/${lang}/LC_MESSAGES
.endfor
.if !defined(NOPORTDOCS)
	@${MKDIR} ${EXAMPLESDIR}
	cd ${WRKSRC}/examples && ${FIND} . | \
		cpio -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>