2000-09-18 19:14:48 -04:00
|
|
|
# New ports collection makefile for: xdrawchem
|
|
|
|
# Date created: 13 April 2000
|
|
|
|
# Whom: Trevor Johnson <trevor@jpj.net>
|
2000-07-19 09:23:02 -04:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xdrawchem
|
2002-01-19 21:45:37 -05:00
|
|
|
PORTVERSION= 0.99.7
|
2000-07-19 09:23:02 -04:00
|
|
|
CATEGORIES= biology
|
|
|
|
MASTER_SITES= http://www.prism.gatech.edu/~gte067k/xdrawchem/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2000-10-02 01:39:35 -04:00
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
2000-07-19 09:23:02 -04:00
|
|
|
|
2001-08-20 07:12:44 -04:00
|
|
|
MAKE_ENV= QTDIR="${X11BASE}"
|
2001-02-19 10:53:46 -05:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2000-09-18 19:14:48 -04:00
|
|
|
USE_GMAKE= yes
|
2001-04-03 04:14:43 -04:00
|
|
|
USE_QT_VER= 2
|
2000-07-19 09:23:02 -04:00
|
|
|
USE_X_PREFIX= yes
|
2001-02-08 14:57:19 -05:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/a//}
|
|
|
|
|
2001-08-20 07:12:44 -04:00
|
|
|
pre-build:
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
${CXX} ${CXXFLAGS} -O0 -c -DRINGHOME="\"${PREFIX}/share/xdrawchem/\"" -I${X11BASE}/include/qt2 -o molecule_tools.o molecule_tools.cpp
|
2001-03-12 03:33:42 -05:00
|
|
|
|
2001-02-08 14:57:19 -05:00
|
|
|
pre-install:
|
2002-01-29 04:39:59 -05:00
|
|
|
${ECHO_CMD} bin/xdrawchem > ${PLIST}
|
2002-01-19 21:45:37 -05:00
|
|
|
${LS} ${WRKSRC}/ring | \
|
|
|
|
${SED} -e 's:^:share/xdrawchem/:' >> ${PLIST}
|
2002-01-29 04:39:59 -05:00
|
|
|
${ECHO_CMD} @dirrm share/xdrawchem >> ${PLIST}
|
2002-01-19 21:45:37 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
cd ${WRKSRC} && ${LS} *txt | \
|
|
|
|
${SED} -e 's:^:share/doc/xdrawchem/:' >> ${PLIST}
|
2002-01-29 04:39:59 -05:00
|
|
|
${ECHO_CMD} @dirrm share/doc/xdrawchem >> ${PLIST}
|
2002-01-19 21:45:37 -05:00
|
|
|
${LS} ${WRKSRC}/save | \
|
|
|
|
${SED} -e 's:^:share/examples/xdrawchem/:' >> ${PLIST}
|
2002-01-29 04:39:59 -05:00
|
|
|
${ECHO_CMD} @dirrm share/examples/xdrawchem >> ${PLIST}
|
2002-01-19 21:45:37 -05:00
|
|
|
.endif
|
2000-07-19 09:23:02 -04:00
|
|
|
|
2000-10-08 15:31:00 -04:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xdrawchem ${PREFIX}/bin
|
2002-01-19 21:45:37 -05:00
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ring/* ${DATADIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/save/* ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*txt ${DOCSDIR}
|
|
|
|
.endif
|
2000-10-08 15:31:00 -04:00
|
|
|
|
2001-08-20 07:12:44 -04:00
|
|
|
.include <bsd.port.mk>
|