mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
51c60ddf7f
While here stagify some of the ports Modernize LIB_DEPENDS Extract zip with bsdtar when possible
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
# Created by: frankch@waru.life.nthu.edu.tw
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= povchem
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 7
|
|
CATEGORIES= biology graphics
|
|
MASTER_SITES= http://www.chemicalgraphics.com/paul/PC_Dist/v1.00/
|
|
DISTFILES= povchem.c \
|
|
povchem.cfg \
|
|
periodic.tab
|
|
DIST_SUBDIR= povchem
|
|
EXTRACT_ONLY= #
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Simple yet powerful tool to generate POV from a PDB file
|
|
|
|
RUN_DEPENDS= povray:${PORTSDIR}/graphics/povray-meta
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
USES= dos2unix
|
|
|
|
CPPFLAGS+= -DDATADIR=\"${DATADIR}\" \
|
|
-DSYSCONFDIR=\"${PREFIX}/etc\"
|
|
|
|
PLIST_FILES= bin/povchem etc/povchem.cfg %%DATADIR%%/periodic.tab
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
post-extract:
|
|
@(cd ${DISTDIR}/${DIST_SUBDIR} && ${TAR} -cf - ${DISTFILES}) | \
|
|
(cd ${WRKSRC} && ${TAR} -xf -)
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/povchem.cfg
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o povchem povchem.c -lm
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/povchem ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/povchem.cfg ${STAGEDIR}${PREFIX}/etc
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/periodic.tab ${STAGEDIR}${DATADIR}
|
|
|
|
.include <bsd.port.mk>
|