freebsd-ports/science/chemtool/Makefile
Dirk Meyer de78af3ac5 - update to 1.4.1
Reviewed by:	exp8 run on pointyhat
Supported by:	miwi
2010-03-28 06:47:48 +00:00

45 lines
1.2 KiB
Makefile

# New ports collection makefile for: chemtool
# Date created: Mar 31, 2001
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= chemtool
PORTVERSION= 1.6.11
PORTREVISION= 3
CATEGORIES= science
MASTER_SITES= http://ruby.chemie.uni-freiburg.de/~martin/chemtool/
MAINTAINER= maho@FreeBSD.org
COMMENT= Draw organic molecules easily and store them
RUN_DEPENDS= transfig:${PORTSDIR}/print/transfig
USE_GNOME= gtk20
USE_GMAKE= yes
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ENV= CFLAGS+="${CFLAGS}" CPPFLAGS+="${CFLAGS}" LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --enable-emf=yes --with-localedir=${PREFIX}
.include <bsd.port.pre.mk>
#isolate libEMF stuff
LIB_DEPENDS+= EMF.1:${PORTSDIR}/graphics/libemf
CFLAGS+= -I${LOCALBASE}/include/libEMF
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
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${FIND} . | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>