aboutsummaryrefslogtreecommitdiffstats
path: root/science/mol2ps/Makefile
blob: ffe8e7d994decf4dffd848fc0f85de44ffe1dca1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: Fernan Aguero <fernan@iib.unsam.edu.ar>
# $FreeBSD$

PORTNAME=   mol2ps
PORTVERSION=    0.4a
PORTREVISION=   2
CATEGORIES= science
MASTER_SITES=   http://merian.pch.univie.ac.at/pch/download/chemistry/${PORTNAME}/
DISTNAME=   ${PORTNAME}
EXTRACT_SUFX=   .pas
DIST_SUBDIR=    ${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Read molecular structure files and generate Postscript output

BROKEN=     unfetchable

LICENSE=    GPLv2 # (or later)

NO_WRKSUBDIR=   yes

EXTRACT_CMD=    ${CP}
EXTRACT_BEFORE_ARGS=    #
EXTRACT_AFTER_ARGS= ${WRKSRC}

USE_FPC=    yes

PLIST_FILES=    bin/${PORTNAME} bin/mol2svg %%DATADIR%%/color.conf

do-build:
    (cd ${WRKSRC} && ${LOCALBASE}/bin/fpc ${EXTRACT_ONLY} -S2 -O3)

do-install:
    (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${STAGEDIR}${PREFIX}/bin)
    (cd ${STAGEDIR}${PREFIX}/bin && ${LN} ${PORTNAME} mol2svg)
    @${MKDIR} ${STAGEDIR}${DATADIR}
    (cd ${FILESDIR} && ${INSTALL_DATA} color.conf ${STAGEDIR}${DATADIR})

.include <bsd.port.mk>