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

(-)plplot/Makefile (-30 / +27 lines)
Lines 13-19 Link Here
13
MAINTAINER=	giffunip@tutopia.com
13
MAINTAINER=	giffunip@tutopia.com
14
COMMENT=	A scientific plotting package
14
COMMENT=	A scientific plotting package
15
15
16
BUILD_DEPENDS=	gm4:${PORTSDIR}/devel/m4
17
LIB_DEPENDS=	unicode.0:${PORTSDIR}/devel/libunicode \
16
LIB_DEPENDS=	unicode.0:${PORTSDIR}/devel/libunicode \
18
		gd.4:${PORTSDIR}/graphics/gd \
17
		gd.4:${PORTSDIR}/graphics/gd \
19
		qhull.5:${PORTSDIR}/math/qhull
18
		qhull.5:${PORTSDIR}/math/qhull
Lines 21-29 Link Here
21
USE_AUTOTOOLS=	libltdl:15
20
USE_AUTOTOOLS=	libltdl:15
22
USE_PERL5_BUILD=yes
21
USE_PERL5_BUILD=yes
23
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
24
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
23
CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include" \
25
		LDFLAGS="-L${LOCALBASE}/lib" \
24
		LDFLAGS="-L${LOCALBASE}/lib"
26
		M4="${LOCALBASE}/bin/gm4"
25
27
CONFIGURE_ARGS=	--disable-cgm --disable-java --disable-octave \
26
CONFIGURE_ARGS=	--disable-cgm --disable-java --disable-octave \
28
		--with-gd-incdir=${LOCALBASE}/include \
27
		--with-gd-incdir=${LOCALBASE}/include \
29
		--with-gd-libdir=${LOCALBASE}/lib \
28
		--with-gd-libdir=${LOCALBASE}/lib \
Lines 33-47 Link Here
33
32
34
MAN1=		plm2gif.1 plplot_libtool.1 plpr.1 pltek.1 pstex2eps.1
33
MAN1=		plm2gif.1 plplot_libtool.1 plpr.1 pltek.1 pstex2eps.1
35
34
36
.if defined(WITH_FORTRAN)
35
.if !defined(WITHOUT_PTHREAD)
37
PKGNAMESUFFIX=	-fortran
36
CONFIGURE_ARGS+=	--with-pthreads
38
USE_FORTRAN=	yes
39
CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}"
40
CONFIGURE_ARGS+=	--enable-f95
41
PLIST_SUB+=	FORTRAN=""
42
.else
43
CONFIGURE_ARGS+=	--disable-f77
44
PLIST_SUB+=	FORTRAN="@comment "
45
.endif
37
.endif
46
38
47
.if defined(WITHOUT_X11)
39
.if defined(WITHOUT_X11)
Lines 54-69 Link Here
54
PLIST_SUB+=	X11=""
46
PLIST_SUB+=	X11=""
55
.endif
47
.endif
56
48
57
.if !defined(WITHOUT_PTHREAD)
49
.if defined(WITH_FORTRAN)
58
CONFIGURE_ARGS+=	--with-pthreads
50
PKGNAMESUFFIX=	-fortran
51
USE_FORTRAN=	yes
52
CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}"
53
CONFIGURE_ARGS+=	--enable-f95
54
PLIST_SUB+=	FORTRAN=""
55
.else
56
CONFIGURE_ARGS+=	--disable-f77
57
PLIST_SUB+=	FORTRAN="@comment "
59
.endif
58
.endif
60
59
61
.if defined(WITH_SVGALIB)
60
.if defined(WITH_GNOME)
62
LIB_DEPENDS+=	vga:${PORTSDIR}/graphics/svgalib
61
.undef WITHOUT_X11
63
PLIST_SUB+=	SVGALIB=""
62
USE_GNOME=	libgnomeprintui libgnomeui
63
PLIST_SUB+=	GNOME=""
64
.else
64
.else
65
CONFIGURE_ARGS+=	--disable-linuxvga
65
PLIST_SUB+=	GNOME="@comment "
66
PLIST_SUB+=	SVGALIB="@comment "
66
CONFIGURE_ARGS+=	--disable-gcw
67
.endif
67
.endif
68
68
69
.if defined(WITH_PYTHON)
69
.if defined(WITH_PYTHON)
Lines 75-87 Link Here
75
PLIST_SUB+=	PYTHON="@comment "
75
PLIST_SUB+=	PYTHON="@comment "
76
.endif
76
.endif
77
77
78
.if defined(WITH_GNOME)
78
.if defined(WITH_SVGALIB)
79
.undef WITHOUT_X11
79
LIB_DEPENDS+=	vga:${PORTSDIR}/graphics/svgalib
80
USE_GNOME=	libgnomeprintui libgnomeui
80
PLIST_SUB+=	SVGALIB=""
81
PLIST_SUB+=	GNOME=""
82
.else
81
.else
83
PLIST_SUB+=	GNOME="@comment "
82
CONFIGURE_ARGS+=	--disable-linuxvga
84
CONFIGURE_ARGS+=	--disable-gcw
83
PLIST_SUB+=	SVGALIB="@comment "
85
.endif
84
.endif
86
85
87
.if defined(WITH_TCLTK)
86
.if defined(WITH_TCLTK)
Lines 109-120 Link Here
109
	@${ECHO_MSG} ""
108
	@${ECHO_MSG} ""
110
	@${ECHO_MSG} "PLplot has the following tunable options:"
109
	@${ECHO_MSG} "PLplot has the following tunable options:"
111
	@${ECHO_MSG} ""
110
	@${ECHO_MSG} ""
112
	@${ECHO_MSG} "	WITHOUT_X11=yes		Turns off X11 support"
113
	@${ECHO_MSG} "	WITHOUT_PTHREAD=yes	Turns off pthread support"
111
	@${ECHO_MSG} "	WITHOUT_PTHREAD=yes	Turns off pthread support"
112
	@${ECHO_MSG} "	WITHOUT_X11=yes		Turns off X11 support"
114
	@${ECHO_MSG} "	WITH_FORTRAN=yes	Turns on Fortran support"
113
	@${ECHO_MSG} "	WITH_FORTRAN=yes	Turns on Fortran support"
115
	@${ECHO_MSG} "	WITH_SVGALIB=yes	Turns on SVGAlib support"
116
	@${ECHO_MSG} "	WITH_GNOME=yes		Turns on GNOME driver support"
114
	@${ECHO_MSG} "	WITH_GNOME=yes		Turns on GNOME driver support"
117
	@${ECHO_MSG} "	WITH_PYTHON=yes		Turns on Python support"
115
	@${ECHO_MSG} "	WITH_PYTHON=yes		Turns on Python support"
116
	@${ECHO_MSG} "	WITH_SVGALIB=yes	Turns on SVGAlib support"
118
	@${ECHO_MSG} "	WITH_TCLTK=yes		Turns on Tcl/Tk support"
117
	@${ECHO_MSG} "	WITH_TCLTK=yes		Turns on Tcl/Tk support"
119
	@${ECHO_MSG} ""
118
	@${ECHO_MSG} ""
120
119
Lines 123-130 Link Here
123
		 s|-ltcl$$|-ltcl84|g ; \
122
		 s|-ltcl$$|-ltcl84|g ; \
124
		 s|-lpthread|${PTHREAD_LIBS:S/"//g}|g ; \
123
		 s|-lpthread|${PTHREAD_LIBS:S/"//g}|g ; \
125
		 s|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|' ${WRKSRC}/configure
124
		 s|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|' ${WRKSRC}/configure
126
	@${REINPLACE_CMD} -e 's|tk octave java|tk|g' \
127
		${WRKSRC}/bindings/Makefile.in
128
	@${REINPLACE_CMD} -e 's| tclsh | ${LOCALBASE}/bin/tclsh8.4 |g' \
125
	@${REINPLACE_CMD} -e 's| tclsh | ${LOCALBASE}/bin/tclsh8.4 |g' \
129
		${WRKSRC}/scripts/mktclIndex
126
		${WRKSRC}/scripts/mktclIndex

Return to bug 130168