Lines 8-53
Link Here
|
8 |
PORTNAME= ortep3 |
8 |
PORTNAME= ortep3 |
9 |
PORTVERSION= 1.0.3 |
9 |
PORTVERSION= 1.0.3 |
10 |
CATEGORIES= biology |
10 |
CATEGORIES= biology |
11 |
#MASTER_SITES= ftp://ftp.ccl.net/pub/chemistry/software/SOURCES/FORTRAN/ortep/ |
11 |
MASTER_SITES= ftp://ftp.ccl.net/pub/chemistry/software/SOURCES/FORTRAN/ortep/ \ |
12 |
# ftp://ftp.ornl.gov/pub/ortep/src/ |
12 |
ftp://ftp.ornl.gov/pub/ortep/src/ |
13 |
MASTER_SITES= ${MASTER_SITE_LOCAL} |
13 |
DISTFILES= ortep.tar.Z ortep.f |
14 |
MASTER_SITE_SUBDIR=alex |
14 |
EXTRACT_ONLY= ortep.tar.Z |
15 |
DISTFILES= ortep-1.0.3.tar.Z ortep-1.0.3.f |
|
|
16 |
DISTNAME= ortep |
17 |
EXTRACT_ONLY= ortep-1.0.3.tar.Z |
18 |
|
15 |
|
19 |
MAINTAINER= rmiya@cc.hirosaki-u.ac.jp |
16 |
MAINTAINER= rmiya@cc.hirosaki-u.ac.jp |
20 |
|
17 |
|
|
|
18 |
.if defined(WITH_PGPLOT) |
21 |
LIB_DEPENDS= pgplot.5:${PORTSDIR}/graphics/pgplot |
19 |
LIB_DEPENDS= pgplot.5:${PORTSDIR}/graphics/pgplot |
|
|
20 |
.endif |
22 |
|
21 |
|
23 |
WRKSRC= ${WRKDIR}/${DISTNAME}/src |
22 |
WRKSRC= ${WRKDIR}/ortep/src |
24 |
|
23 |
|
25 |
post-extract: |
24 |
MAKE_ARGS= FFLAGS="${FFLAGS}" LFLAGS="${LFLAGS}" |
26 |
${MV} ${WRKSRC}/ortep.f ${WRKSRC}/ortep.f-1.0 |
|
|
27 |
${CP} ${DISTDIR}/ortep-${PORTVERSION}.f ${WRKSRC}/ortep.f |
28 |
|
25 |
|
29 |
pre-patch: |
26 |
.if defined(WITH_PGPLOT) |
30 |
${CP} ${FILESDIR}/Makefile.ortep3 ${WRKDIR}/${DISTNAME}/src/Makefile |
27 |
EXTRA_PATCHES= ${FILESDIR}/patch-aa |
31 |
.if defined(USEPGPLOT) |
28 |
LFLAGS= "-L${LOCALBASE}/lib -lpgplot -L${X11BASE}/lib -lX11" |
32 |
cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/patch-aa |
|
|
33 |
cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/patch-ab |
34 |
.endif |
29 |
.endif |
35 |
|
30 |
|
36 |
pre-install: |
31 |
post-extract: |
37 |
${MKDIR} ${PREFIX}/share/doc/ortep3 |
32 |
${MV} ${WRKSRC}/ortep.f ${WRKSRC}/ortep.f-1.0 |
38 |
${MKDIR} ${PREFIX}/share/doc/ortep3/examples |
33 |
${CP} ${DISTDIR}/ortep.f ${WRKSRC}/ortep.f |
39 |
${MKDIR} ${PREFIX}/share/doc/ortep3/man |
34 |
|
40 |
${MKDIR} ${PREFIX}/share/doc/ortep3/src |
35 |
pre-build: |
|
|
36 |
${CP} ${FILESDIR}/Makefile.ortep3 ${WRKSRC}/Makefile |
41 |
|
37 |
|
42 |
do-install: |
38 |
do-install: |
43 |
${INSTALL_PROGRAM} ${WRKSRC}/ortep3 ${PREFIX}/bin |
39 |
${INSTALL_PROGRAM} ${WRKSRC}/ortep3 ${PREFIX}/bin |
44 |
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/examples/* \ |
40 |
@${MKDIR} ${PREFIX}/share/doc/ortep3 |
45 |
${PREFIX}/share/doc/ortep3/examples |
41 |
${INSTALL_DATA} ${WRKSRC}/../README.1st \ |
46 |
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/man/* \ |
42 |
${PREFIX}/share/doc/ortep3 |
47 |
${PREFIX}/share/doc/ortep3/man |
43 |
@${MKDIR} ${PREFIX}/share/doc/ortep3/examples |
48 |
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/src/000readme.txt \ |
44 |
${INSTALL_DATA} ${WRKSRC}/../examples/* \ |
49 |
${PREFIX}/share/doc/ortep3/src |
45 |
${PREFIX}/share/doc/ortep3/examples |
50 |
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README.1st \ |
46 |
@${MKDIR} ${PREFIX}/share/doc/ortep3/man |
51 |
${PREFIX}/share/doc/ortep3 |
47 |
${INSTALL_DATA} ${WRKSRC}/../man/* \ |
|
|
48 |
${PREFIX}/share/doc/ortep3/man |
49 |
@${MKDIR} ${PREFIX}/share/doc/ortep3/src |
50 |
${INSTALL_DATA} ${WRKSRC}/000readme.txt \ |
51 |
${PREFIX}/share/doc/ortep3/src |
52 |
|
52 |
|
53 |
.include <bsd.port.mk> |
53 |
.include <bsd.port.mk> |