1998-03-16 06:57:14 +00:00
|
|
|
# New ports collection Makefile for: povchem
|
|
|
|
# Date created: Mar 14 1998
|
|
|
|
# Whom: frankch@waru.life.nthu.edu.tw
|
|
|
|
#
|
1999-08-25 04:58:03 +00:00
|
|
|
# $FreeBSD$
|
1998-03-16 06:57:14 +00:00
|
|
|
#
|
|
|
|
|
2000-04-08 22:04:57 +00:00
|
|
|
PORTNAME= povchem
|
|
|
|
PORTVERSION= 1.0
|
2003-07-14 06:50:15 +00:00
|
|
|
PORTREVISION= 2
|
2000-10-10 00:37:00 +00:00
|
|
|
CATEGORIES= biology graphics
|
|
|
|
MASTER_SITES= http://www.chemicalgraphics.com/paul/PC_Dist/v1.00/
|
1998-03-16 06:57:14 +00:00
|
|
|
DISTFILES= povchem.c \
|
|
|
|
povchem.cfg \
|
|
|
|
periodic.tab
|
|
|
|
|
2003-07-14 06:50:15 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 11:08:38 +00:00
|
|
|
COMMENT= Simple yet powerful tool to generate POV from a PDB file
|
1998-03-16 06:57:14 +00:00
|
|
|
|
2003-07-14 06:50:15 +00:00
|
|
|
RUN_DEPENDS= povray:${PORTSDIR}/graphics/povray
|
|
|
|
|
1998-03-16 06:57:14 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
1998-03-17 05:27:24 +00:00
|
|
|
DIST_SUBDIR= povchem
|
1998-03-16 06:57:14 +00:00
|
|
|
|
2000-10-10 00:37:00 +00:00
|
|
|
DEFS= -DDATADIR=\"${PREFIX}/share/povchem\" \
|
|
|
|
-DSYSCONFDIR=\"${PREFIX}/etc\"
|
2004-03-09 00:17:05 +00:00
|
|
|
PATCH_ARGS= -l -d ${PATCH_WRKSRC} --forward --quiet -E ${PATCH_STRIP}
|
1998-03-16 06:57:14 +00:00
|
|
|
|
|
|
|
do-extract:
|
2000-10-10 00:37:00 +00:00
|
|
|
@${MKDIR} ${WRKSRC}
|
|
|
|
.for file in ${DISTFILES}
|
|
|
|
@${CP} ${_DISTDIR}/${file} ${WRKSRC}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-patch:
|
2003-07-14 06:50:15 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
|
|
|
|
${WRKSRC}/povchem.cfg
|
2004-04-07 15:39:34 +00:00
|
|
|
${MV} ${WRKSRC}/povchem.c ${WRKSRC}/povchem.c.patched
|
|
|
|
strings -1 ${WRKSRC}/povchem.c.patched > ${WRKSRC}/povchem.c
|
2000-10-10 00:37:00 +00:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEFS} -o povchem povchem.c -lm
|
1998-03-16 06:57:14 +00:00
|
|
|
|
|
|
|
do-install:
|
2000-10-10 00:37:00 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/povchem ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/povchem.cfg ${PREFIX}/etc
|
|
|
|
@${MKDIR} ${PREFIX}/share/povchem
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/periodic.tab ${PREFIX}/share/povchem
|
1998-03-16 06:57:14 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|