mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- X11BASE clean
- properly link libpgplot.so against -lpng (so that each program which links with libpgplot.so does not have to specify -lpng) - a bit cleaner (use macros where possible, etc.) Submitted by: knu
This commit is contained in:
parent
88f263f5c0
commit
75de1f6dd9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44478
@ -7,16 +7,17 @@
|
|||||||
|
|
||||||
PORTNAME= pgplot
|
PORTNAME= pgplot
|
||||||
PORTVERSION= 5.2.2
|
PORTVERSION= 5.2.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= graphics
|
CATEGORIES= graphics
|
||||||
MASTER_SITES= ftp://ftp.astro.caltech.edu/pub/pgplot/
|
MASTER_SITES= ftp://ftp.astro.caltech.edu/pub/pgplot/
|
||||||
DISTNAME= ${PORTNAME}5.2
|
DISTNAME= ${PORTNAME}${PORTVERSION:R}
|
||||||
|
|
||||||
MAINTAINER= jmz@FreeBSD.org
|
MAINTAINER= jmz@FreeBSD.org
|
||||||
|
|
||||||
LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png
|
LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png
|
||||||
USE_XLIB= yes
|
USE_XLIB= yes
|
||||||
INSTALLS_SHLIB= yes
|
INSTALLS_SHLIB= yes
|
||||||
WRKSRC= ${WRKDIR}/pgplot
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
@ -33,6 +34,7 @@ FC= f77
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
MAKE_ENV+= FC=${FC}
|
MAKE_ENV+= FC=${FC}
|
||||||
|
MAKE_ARGS+= X11BASE="${X11BASE}"
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.for f in libcpgplot.so libpgplot.so
|
.for f in libcpgplot.so libpgplot.so
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
D=examples/
|
# $FreeBSD$
|
||||||
all:
|
all:
|
||||||
make -f Makefile.flib
|
make -f Makefile.flib X11BASE="${X11BASE}"
|
||||||
make -f Makefile.clib
|
make -f Makefile.clib
|
||||||
make -f Makefile.bin
|
make -f Makefile.bin X11BASE="${X11BASE}"
|
||||||
make -f Makefile.doc
|
make -f Makefile.doc
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@ -13,4 +13,3 @@ install:
|
|||||||
install -c Makefile.demo examples/pgdemo*.f cpg/cpgdemo.c ${PREFIX}/share/pgplot
|
install -c Makefile.demo examples/pgdemo*.f cpg/cpgdemo.c ${PREFIX}/share/pgplot
|
||||||
cp pgdispd/aaaread.me ${PREFIX}/share/pgplot/readme.pgdisp
|
cp pgdispd/aaaread.me ${PREFIX}/share/pgplot/readme.pgdisp
|
||||||
install -c -s pgxwin_server pgdisp ${PREFIX}/bin
|
install -c -s pgxwin_server pgdisp ${PREFIX}/bin
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
DRVDIR=./drivers
|
DRVDIR=./drivers
|
||||||
|
LIBS=-L${X11BASE}/lib -lX11 -lm
|
||||||
LIBS=-L/usr/X11R6/lib -lX11 -lm
|
XINCL=-I${X11BASE}/include
|
||||||
XINCL=-I/usr/X11R6/include
|
|
||||||
|
|
||||||
CFLAGS+= $(XINCL) -DPGDISP
|
CFLAGS+= $(XINCL) -DPGDISP
|
||||||
.PATH: . ./pgdispd
|
.PATH: . ./pgdispd
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
PGPLOT_LIB = -L/usr/local/lib -lpgplot -lpng
|
PGPLOT_LIB = -L/usr/local/lib -lpgplot
|
||||||
CPGPLOT_LIB = -L/usr/local/lib -lcpgplot -lpng
|
CPGPLOT_LIB = -L/usr/local/lib -lcpgplot
|
||||||
LIBS= -L/usr/X11R6/lib -lX11 -lm
|
LIBS= -L${X11BASE}/lib -lX11 -lm
|
||||||
|
|
||||||
OSVERSION!= /sbin/sysctl -n kern.osreldate
|
OSVERSION!= /sbin/sysctl -n kern.osreldate
|
||||||
.if ${OSVERSION} > 400004
|
.if ${OSVERSION} > 400004
|
||||||
@ -10,7 +10,7 @@ FFLAGS+= -fno-backslash
|
|||||||
all: cpgdemo pgdemo1 pgdemo2 pgdemo3 pgdemo4 pgdemo5 pgdemo6 pgdemo7 pgdemo8 \
|
all: cpgdemo pgdemo1 pgdemo2 pgdemo3 pgdemo4 pgdemo5 pgdemo6 pgdemo7 pgdemo8 \
|
||||||
pgdemo9 pgdemo10 pgdemo11 pgdemo12 pgdemo13 pgdemo14 pgdemo15 \
|
pgdemo9 pgdemo10 pgdemo11 pgdemo12 pgdemo13 pgdemo14 pgdemo15 \
|
||||||
pgdemo16 pgdemo17
|
pgdemo16 pgdemo17
|
||||||
|
|
||||||
pgdemo1: pgdemo1.f libpgplot.a
|
pgdemo1: pgdemo1.f libpgplot.a
|
||||||
$(FC) $(FFLAGS) -o pgdemo1 pgdemo1.f $(PGPLOT_LIB) $(LIBS)
|
$(FC) $(FFLAGS) -o pgdemo1 pgdemo1.f $(PGPLOT_LIB) $(LIBS)
|
||||||
pgdemo2: pgdemo2.f libpgplot.a
|
pgdemo2: pgdemo2.f libpgplot.a
|
||||||
|
@ -9,12 +9,13 @@ PG_NON_STANDARD= pgadvance.f pgbegin.f pgcurse.f pglabel.f pgmtext.f pgn
|
|||||||
GR_ROUTINES= grarea.f grbpic.f grchsz.f grclip.f grclos.f grclpl.f grctoi.f grcurs.f grdot0.f grdot1.f grdtyp.f gresc.f grepic.f gretxt.f grfa.f grfao.f grgfil.f grgray.f grimg0.f grimg1.f grimg2.f grimg3.f grinit.f gritoc.f grldev.f grlen.f grlin0.f grlin1.f grlin2.f grlin3.f grlina.f grmcur.f grmker.f grmova.f grmsg.f gropen.f grpage.f grpars.f grpixl.f grpocl.f grprom.f grpxpo.f grpxps.f grpxpx.f grpxre.f grqcap.f grqci.f grqcol.f grqcr.f grqdev.f grqdt.f grqfnt.f grqls.f grqlw.f grqpos.f grqtxt.f grqtyp.f grquit.f grrec0.f grrect.f grsci.f grscr.f grsetc.f grscrl.f grsetc.f grsets.f grsfnt.f grsize.f grskpb.f grslct.f grsls.f grslw.f grsyds.f grsymk.f grsyxd.f grterm.f grtext.f grtoup.f grtrim.f grtrn0.f grtxy0.f grvct0.f grwarn.f grxhls.f grxrgb.f
|
GR_ROUTINES= grarea.f grbpic.f grchsz.f grclip.f grclos.f grclpl.f grctoi.f grcurs.f grdot0.f grdot1.f grdtyp.f gresc.f grepic.f gretxt.f grfa.f grfao.f grgfil.f grgray.f grimg0.f grimg1.f grimg2.f grimg3.f grinit.f gritoc.f grldev.f grlen.f grlin0.f grlin1.f grlin2.f grlin3.f grlina.f grmcur.f grmker.f grmova.f grmsg.f gropen.f grpage.f grpars.f grpixl.f grpocl.f grprom.f grpxpo.f grpxps.f grpxpx.f grpxre.f grqcap.f grqci.f grqcol.f grqcr.f grqdev.f grqdt.f grqfnt.f grqls.f grqlw.f grqpos.f grqtxt.f grqtyp.f grquit.f grrec0.f grrect.f grsci.f grscr.f grsetc.f grscrl.f grsetc.f grsets.f grsfnt.f grsize.f grskpb.f grslct.f grsls.f grslw.f grsyds.f grsymk.f grsyxd.f grterm.f grtext.f grtoup.f grtrim.f grtrn0.f grtxy0.f grvct0.f grwarn.f grxhls.f grxrgb.f
|
||||||
SYSTEM_ROUTINES= grdate.c grfileio.c grflun.f grgcom.f grgenv.f grgetc.c grglun.f grgmem.c grgmsg.f grlgtr.f groptx.f grsy00.f grtermio.c grtrml.f grtter.f gruser.f iand.c
|
SYSTEM_ROUTINES= grdate.c grfileio.c grflun.f grgcom.f grgenv.f grgetc.c grglun.f grgmem.c grgmsg.f grlgtr.f groptx.f grsy00.f grtermio.c grtrml.f grtter.f gruser.f iand.c
|
||||||
DRIVERS=gidriv.f gldriv.f hgdriv.f lxdriv.f nudriv.f ppdriv.f psdriv.f ttdriv.f wddriv.f x2driv.c figdisp_comm.c xwdriv.c cgdriv.c pndriv.c xadriv.c
|
DRIVERS=gidriv.f gldriv.f hgdriv.f lxdriv.f nudriv.f ppdriv.f psdriv.f ttdriv.f wddriv.f x2driv.c figdisp_comm.c xwdriv.c cgdriv.c pndriv.c xadriv.c
|
||||||
|
|
||||||
.PATH:./src ./examples ./fonts ./drivers ./sys_freebsd ./pgdispd ./sys
|
.PATH:./src ./examples ./fonts ./drivers ./sys_freebsd ./pgdispd ./sys
|
||||||
|
|
||||||
SRCS= ${PG_ROUTINES} ${PG_NON_STANDARD} ${GR_ROUTINES} ${SYSTEM_ROUTINES} \
|
SRCS= ${PG_ROUTINES} ${PG_NON_STANDARD} ${GR_ROUTINES} ${SYSTEM_ROUTINES} \
|
||||||
${DRIVERS} grexec.f
|
${DRIVERS} grexec.f
|
||||||
|
|
||||||
CFLAGS+=-DPG_PPU -I/usr/X11R6/include -I${PREFIX}/include
|
CFLAGS+=-DPG_PPU -I${X11BASE}/include -I${PREFIX}/include
|
||||||
|
LDADD=-L${PREFIX}/lib -lpng
|
||||||
|
|
||||||
.include <bsd.lib.mk>
|
.include <bsd.lib.mk>
|
||||||
|
Loading…
Reference in New Issue
Block a user