freebsd-ports/biology/xdrawchem/Makefile

52 lines
1.4 KiB
Makefile
Raw Normal View History

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