1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/biology/xdrawchem/Makefile
Trevor Johnson 6113f46e0d Update to 0.95.
Compile molecule_tools.cpp with -O0 on all architectures, not just
the Alpha, to avoid g++ pessimization.

Submitted by:	Matthew Emmerton <matt@gsicomp.on.ca>
2001-08-20 11:12:44 +00:00

39 lines
1006 B
Makefile

# New ports collection makefile for: xdrawchem
# Date created: 13 April 2000
# Whom: Trevor Johnson <trevor@jpj.net>
#
# $FreeBSD$
#
PORTNAME= xdrawchem
PORTVERSION= 0.95
CATEGORIES= biology
MASTER_SITES= http://www.prism.gatech.edu/~gte067k/xdrawchem/
EXTRACT_SUFX= .tgz
MAINTAINER= trevor@FreeBSD.org
MAKE_ENV= QTDIR="${X11BASE}"
PLIST= ${WRKDIR}/pkg-plist
USE_GMAKE= yes
USE_QT_VER= 2
USE_X_PREFIX= yes
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
pre-install:
${ECHO} bin/xdrawchem > ${PLIST}
cd ${WRKSRC}/ring && find -s . -type f | \
${SED} -e 's:^.:share/xdrawchem:' >> ${PLIST}
${ECHO} @dirrm share/xdrawchem >> ${PLIST}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xdrawchem ${PREFIX}/bin
@${MKDIR} ${PREFIX}/share/xdrawchem
${INSTALL_DATA} ${WRKSRC}/ring/* ${PREFIX}/share/xdrawchem
.include <bsd.port.mk>