View | Details | Raw Unified | Return to bug 21608
Collapse All | Expand All

(-)biology/ortep3/Makefile (-29 / +29 lines)
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>
(-)biology/ortep3/files/md5 (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (ortep-1.0.3.tar.Z) = c183517406eda8854399287042dac075
1
MD5 (ortep.tar.Z) = c183517406eda8854399287042dac075
2
MD5 (ortep-1.0.3.f) = 9af12582aa95d9cc21f18883c2afea20
2
MD5 (ortep.f) = 9af12582aa95d9cc21f18883c2afea20
(-)biology/ortep3/files/patch-ab (-19 lines)
Lines 1-19 Link Here
1
*** Makefile	Sat May  8 20:23:01 1999
2
--- Makefile.pgplot	Sat May  8 20:37:41 1999
3
***************
4
*** 3,9 ****
5
  SRC= ortep.f
6
  OBJ= ortep.o
7
  FFLAGS= -O2
8
! LFLAGS=
9
  
10
  all: ${OBJ}
11
  	${FC} ${OBJ} ${LFLAGS} -o ${TARGET}
12
--- 3,9 ----
13
  SRC= ortep.f
14
  OBJ= ortep.o
15
  FFLAGS= -O2
16
! LFLAGS= -L/usr/local/lib -lpgplot -L/usr/X11R6/lib -lX11
17
  
18
  all: ${OBJ}
19
  	${FC} ${OBJ} ${LFLAGS} -o ${TARGET}
(-)biology/ortep3/pkg/DESCR (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
(1) If you can use `pgplot' as screen drawing routine, type 
4
(1) If you can use `pgplot' as screen drawing routine, type 
5
5
6
    % make USEPGPLOT=yes
6
    % make WITH_PGPLOT=yes
7
7
8
(2) If you are not familier to `pgplot', note the followings:
8
(2) If you are not familier to `pgplot', note the followings:

Return to bug 21608