aboutsummaryrefslogtreecommitdiff
path: root/science/chemtool/Makefile
blob: 82b0b6aa7cb16fe2248570fae7363b83bd2bdea5 (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: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$

PORTNAME=	chemtool
DISTVERSION=	1.6.14
PORTREVISION=	2
CATEGORIES=	science
MASTER_SITES=	http://ruby.chemie.uni-freiburg.de/~martin/chemtool/

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

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libEMF.so:graphics/libemf \
		libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2
RUN_DEPENDS=	transfig:print/transfig

USES=		compiler:c++11-lang gmake gnome pkgconfig xorg
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-emf=yes --with-localedir=${PREFIX}
USE_GNOME=	cairo gdkpixbuf2 gtk20
USE_XORG=	x11

OPTIONS_DEFINE=	NLS EXAMPLES
OPTIONS_SUB=	yes

NLS_USES=	gettext
NLS_CONFIGURE_ENABLE=	nls

PORTEXAMPLES=	*

do-install-EXAMPLES-on:
	cd ${WRKSRC}/examples && ${FIND} . | \
		${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>