1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= FORTRAN/C scientific graphic library
9 HOMEPAGE= https://www.astro.caltech.edu/~tjp/pgplot/
13 SITES[main]= ftp://ftp.astro.caltech.edu/pub/pgplot/
14 DISTFILE[1]= pgplot522.tar.gz:main
16 SPKGS[standard]= complete
21 OPTIONS_AVAILABLE= none
22 OPTIONS_STANDARD= none
24 USES= png shebangfix perl:build cmake fortran:examples
25 XORG_COMPONENTS= x11 xt
29 LICENSE= CUSTOM1:primary
30 LICENSE_NAME= CUSTOM1:"PGPLOT License"
31 LICENSE_FILE= CUSTOM1:{{WRKSRC}}/copyright.notice
34 FPC_EQUIVALENT= graphics/pgplot
35 SHEBANG_FILES= makehtml
37 SHEBANG_OLD_PERL= /usr/local/bin/perl
39 CFLAGS= -Wno-implicit-function-declaration
42 ${REINPLACE_CMD} -e 's|png_ptr->jmpbuf|png_jmpbuf(png_ptr)|' \
43 ${WRKSRC}/drivers/pndriv.c
44 ${REINPLACE_CMD} -e 's|/usr/local/pgplot|${PREFIX}/share/pgplot|g' \
45 ${WRKSRC}/src/grgfil.f
48 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pg*
49 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so
50 ${STRIP_CMD} ${STAGEDIR}${STD_EXAMPLESDIR}/*pgdemo*
53 ${CP} ${FILESDIR}/grexec.f ${WRKSRC}/sys/
54 ${CP} ${FILESDIR}/CMakeLists.txt ${WRKSRC}/
55 .for d in drivers pgdispd fonts src sys examples
56 ${CP} ${FILESDIR}/${d}_CMakeLists.txt ${WRKSRC}/${d}/CMakeLists.txt
61 ${REINPLACE_CMD} -e '/define.*_POSIX_SOURCE/d' \
62 drivers/pgxwin_server.c\
71 [FILE:408:descriptions/desc.primary]
72 PGPLOT is a Fortran subroutine package for drawing graphs on a variety
73 of display devices. For more details, see the manual ``PGPLOT Graphics
74 Subroutine Library'', available from T. J. Pearson.
76 The CPGPLOT library adds an intermediate level of wrapper functions
77 between C programs and the PGPLOT library. These functions hide the
78 system dependencies of calling PGPLOT behind a system independent
83 a5799ff719a510d84d26df4ae7409ae61fe66477e3f1e8820422a9a4727a5be4 1197397 pgplot522.tar.gz
86 [FILE:164:manifests/plist.primary]
98 share/pgplot/grfont.dat
101 [FILE:101:manifests/plist.docs]
111 [FILE:193:manifests/plist.examples]
112 share/examples/pgplot/
133 [FILE:1127:patches/patch-64bit-drivers]
134 --- drivers/gidriv.f.orig 1998-05-13 21:05:05.000000000 -0400
135 +++ drivers/gidriv.f 2011-12-07 16:57:04.000000000 -0500
137 C Note: for 64-bit operating systems, change the following
138 C declaration to INTEGER*8:
140 - INTEGER PIXMAP, WORK
141 + INTEGER*8 PIXMAP, WORK
143 SAVE UNIT, IC, CTABLE, NPICT, MAXIDX, BX, BY, PIXMAP, FILENM
145 --- drivers/ppdriv.f.orig 1998-05-13 21:04:29.000000000 -0400
146 +++ drivers/ppdriv.f 2011-12-07 16:57:39.000000000 -0500
148 C Note: for 64-bit operating systems, change the following
149 C declaration to INTEGER*8:
154 SAVE UNIT, IC, CVAL, CTABLE, BX, BY, PIXMAP, NPICT, CDEFLT
156 --- drivers/wddriv.f.orig 1998-05-13 21:03:53.000000000 -0400
157 +++ drivers/wddriv.f 2011-12-07 16:56:29.000000000 -0500
159 C Note: for 64-bit operating systems, change the following
160 C declaration to INTEGER*8:
165 SAVE UNIT, IC, CTABLE, NPICT, MAXIDX, BX, BY, PIXMAP, FILENM
169 [FILE:684:patches/patch-pgdispd_figcurs.c]
170 --- pgdispd/figcurs.c.orig 1993-11-29 19:55:24 UTC
171 +++ pgdispd/figcurs.c
174 #include <sys/types.h>
175 #include <netinet/in.h>
178 /* The X Window include files */
179 #include <X11/Xlib.h>
180 @@ -113,8 +114,6 @@ XEvent event;
186 if (event.type == ButtonPress) getbuttonval(event.xbutton.button, &val);
187 else if (!getkeyval(event, &val)) return(1);
189 @@ -167,8 +166,6 @@ XEvent event;
195 if (event.type == ButtonPress) getbuttonval(event.xbutton.button, &val);
196 else if (!getkeyval(event, &val)) return(1);
200 [FILE:227:patches/patch-pgdispd_getvisuals.c]
201 --- pgdispd/getvisuals.c.orig 1993-05-10 00:42:46 UTC
202 +++ pgdispd/getvisuals.c
204 #include "messages.h"
209 #define MAX_DEPTH 24 /* the maximum visual depth to use */
213 [FILE:421:patches/patch-pgdispd_initlgwin.c]
214 --- pgdispd/initlgwin.c.orig 1995-02-24 18:13:24 UTC
215 +++ pgdispd/initlgwin.c
218 /* The system include files */
222 /* the X Window include files */
223 #include <X11/Xlib.h>
224 @@ -67,7 +68,6 @@ int initlgwin()
226 Pixmap XCreatePixmap();
227 void initlgluts(); /* initialize the LUTs */
231 /* Initialize the line graphics LUTs */
234 [FILE:591:patches/patch-pgdispd_proccom.c]
235 --- pgdispd/proccom.c.orig 1994-08-22 20:33:35 UTC
236 +++ pgdispd/proccom.c
237 @@ -92,8 +92,9 @@ static char rcsid[]="@(#)$Id: proccom.c,
239 #include <sys/types.h>
240 #include <netinet/in.h>
244 +#if !defined(VMS) && !defined(__FreeBSD__) && !defined(__DragonFly__)
248 @@ -163,8 +164,6 @@ int *retbuflen; /* the length of retbuf
249 void drawline(); /* draw a line in the bitmap window */
250 Pixmap XCreatePixmap();
254 if (!len & savedshorts)
255 { /* an incomplete command was sent! */
259 [FILE:314:files/CMakeLists.txt]
260 cmake_minimum_required(VERSION 3.16)
262 enable_language(Fortran)
264 SET(CMAKE_SKIP_BUILD_RPATH TRUE)
266 add_subdirectory(drivers)
267 add_subdirectory(pgdispd)
268 add_subdirectory(fonts)
269 add_subdirectory(src)
270 add_subdirectory(sys)
271 add_subdirectory(examples)
273 install(FILES rgb.txt DESTINATION share/doc/pgplot)
276 [FILE:5373:files/drivers.list]
278 !------------------------------------------------------------------------------
279 ! To configure PGPLOT, ensure that drivers you do not want are
280 ! commented out (place ! in column 1). N.B. Many device-drivers are
281 ! available on selected operating systems only.
282 !------------------------------------------------------------------------------
283 ! File Code Description Restrictions
284 ! BCDRIV 0 /BCANON Canon Laser printer (bitmap version), landscape
285 ! CADRIV 0 /CANON Canon Laser printer, LBP-8/A2, landscape
286 ! CCDRIV 0 /CCP DEC LJ250 Color Companion printer
287 ! CWDRIV 0 /CW6320 Gould/Bryans Colourwriter 6320 pen plotter Std F77
288 ! EPDRIV 0 /EPSON Epson FX100 dot matrix printer
289 ! EXDRIV 1 /EXCL Talaris/EXCL printers, landscape
290 ! EXDRIV 2 /EXCL Talaris/EXCL printers, portrait
291 ! GCDRIV 0 /GENICOM Genicom 4410 dot-matrix printer, landscape
292 ! Caution: use of GIDRIV may require a license from Unisys:
293 GIDRIV 1 /GIF GIF-format file, landscape
294 GIDRIV 2 /VGIF GIF-format file, portrait
295 GLDRIV 1 /HPGL Hewlett-Packard HP-GL plotters, landscape Std F77
296 GLDRIV 2 /VHPGL Hewlett-Packard HP-GL plotters, portrait Std F77
297 ! GODRIV 0 /GOC GOC Sigma T5670 terminal VMS
298 ! GVDRIV 0 /GVENICOM Genicom 4410 dot-matrix printer, portrait
299 HGDRIV 0 /HPGL2 Hewlett-Packard graphics language
300 ! HIDRIV 0 /HIDMP Houston Instruments HIDMP pen plotter
301 ! HJDRIV 0 /HJ Hewlett-Packard Desk/Laserjet printer
302 ! HPDRIV 0 /HP7221 Hewlett-Packard HP7221 pen plotter Std F77
303 ! IMDRIV 0 /IMPRESS Imagen printers (Impress language), landscape
304 ! IRDRIV 0 /IRIS SiliconGraphics Console SGI (C)
305 ! LADRIV 0 /LA50 Dec LA50 and other sixel printers
306 ! LJDRIV 0 /LJ Hewlett-Packard LaserJet printers
307 ! LSDRIV 1 /LIPS2 Canon LaserShot printer (landscape)
308 ! LSDRIV 2 /VLIPS2 Canon LaserShot printer (portrait)
309 ! LNDRIV 0 /LN03 Dec LN03-PLUS Laser printer (landscape) VMS
310 ! LVDRIV 0 /LVN03 Dec LN03-PLUS Laser printer (portrait) VMS
311 LXDRIV 0 /LATEX LaTeX picture environment
312 ! MFDRIV 0 /FILE PGPLOT graphics metafile
313 ! NEDRIV 0 /NEXT Computers running NeXTstep operating system
314 NUDRIV 0 /NULL Null device (no output) Std F77
315 PPDRIV 1 /PPM Portable Pixel Map file, landscape
316 PPDRIV 2 /VPPM Portable PIxel Map file, portrait
317 PSDRIV 1 /PS PostScript printers, monochrome, landscape Std F77
318 PSDRIV 2 /VPS Postscript printers, monochrome, portrait Std F77
319 PSDRIV 3 /CPS PostScript printers, color, landscape Std F77
320 PSDRIV 4 /VCPS PostScript printers, color, portrait Std F77
321 ! PXDRIV 0 /PRINTRONI Printronix P300 or P600 dot-matrix printer
322 ! QMDRIV 1 /QMS QUIC devices (QMS and Talaris), landscape Std F77
323 ! QMDRIV 2 /VQMS QUIC devices (QMS and Talaris), portrait Std F77
324 ! SVDRIV 0 /SUNVIEW Sun workstations running SunView SunOS C
325 ! TFDRIV 0 /TFILE Tektronix-format disk file VMS
326 ! TODRIV 0 /TOSHIBA Toshiba "3-in-one" printer, model P351
327 ! TTDRIV 1 /TEK4010 Tektronix 4006/4010 storage-tube terminal Std F77
328 ! TTDRIV 2 /GF GraphOn terminal Std F77
329 ! TTDRIV 3 /RETRO RetroGraphics terminal Std F77
330 TTDRIV 4 /GTERM GTERM Tektronix terminal emulator Std F77
331 TTDRIV 5 /XTERM XTERM Tektronix terminal emulator Std F77
332 ! TTDRIV 6 /ZSTEM ZSTEM terminal emulator Std F77
333 ! TTDRIV 7 /V603 Visual 603 terminal Std F77
334 ! TTDRIV 8 /KRM3 Kermit 3 on IBM-PC Std F77
335 TTDRIV 9 /TK4100 Tektronix 4100-series terminals Std F77
336 ! TXDRIV 0 /TX TeX PK Font Output files
337 ! VADRIV 0 /VCANON Canon Laser printer, LBP-8/A2, portrait
338 ! VBDRIV 0 /VBCANON Canon Laser printer (bitmap version), portrait
339 ! VIDRIV 0 /VIPRESS Imagen printers (Impress language), portrait
340 ! VTDRIV 0 /VT125 Dec Regis terminals (VT125 etc.) Std F77
341 WDDRIV 1 /WD X Window dump file, landscape
342 WDDRIV 2 /VWD X Window dump file, portrait
343 ! WSDRIV 0 /WS VAX workstations running VWS software VMS
344 X2DRIV 0 /XDISP PGDISP or FIGDISP server for X workstations C
345 XWDRIV 1 /XWINDOW Workstations running X Window System C
346 XWDRIV 2 /XSERVE Persistent window on X Window System C
347 ! ZEDRIV 0 /ZETA Zeta 8 Digital Plotter
349 ! The following drivers can only be used in PGPLOT installations on MS-DOS
350 ! systems with appropriate hardware and software. Do not select these
351 ! on UNIX or VMS systems.
353 ! LHDRIV 0 /LH IBM PCs and clones, Lahey F77 32-bit Fortran v5.0
354 ! MSDRIV 0 /MSOFT IBM PCs and clones running Microsoft Fortran 5.0
355 ! SSDRIV 0 /SS IBM PCs and clones, MS-DOS, Salford Software FTN
357 ! The following driver can only be used in PGPLOT installations on Acorn
358 ! Archimedes systems with appropriate hardware and software.
360 ! ACDRIV 0 /ARC Acorn Archimedes computer
362 ! Selection of the XMOTIF driver causes a stub driver to be placed in
363 ! the main PGPLOT library. The real driver is placed in libXmPgplot.a.
364 ! Applications that need the Motif driver should link with libXmPgplot.a
365 ! before the PGPLOT library. This treatment means that only Motif
366 ! applications have to be linked with Motif libraries.
368 ! XMDRIV 0 /XMOTIF Motif applications containing XmPgplot widgets. C
371 [FILE:200:files/drivers_CMakeLists.txt]
372 set (prog pgxwin_server)
374 add_executable (${prog}
378 target_compile_definitions (${prog} PUBLIC PGDISP)
379 target_link_libraries (${prog} X11)
381 install (TARGETS ${prog} DESTINATION bin)
384 [FILE:478:files/examples_CMakeLists.txt]
385 foreach(N 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17)
386 add_executable(pgdemo${N} pgdemo${N}.f)
387 target_link_libraries(pgdemo${N} pgplot X11)
388 target_compile_options(pgdemo${N} PUBLIC -fno-backslash)
389 install(TARGETS pgdemo${N} DESTINATION share/examples/pgplot)
392 include_directories(${CMAKE_BINARY_DIR}/src)
394 add_executable(cpgdemo ../cpg/cpgdemo.c)
395 target_link_libraries(cpgdemo cpgplot pgplot X11 m)
396 install(TARGETS cpgdemo DESTINATION share/examples/pgplot)
399 [FILE:420:files/fonts_CMakeLists.txt]
400 set(outprefix grfont)
401 set(infile ${CMAKE_SOURCE_DIR}/fonts/${outprefix}.txt)
402 set(outfile ${CMAKE_CURRENT_BINARY_DIR}/${outprefix}.dat)
404 add_executable (pgpack pgpack.f)
408 COMMAND pgpack < ${infile}
409 DEPENDS pgpack ${infile}
410 COMMENT "Generated ${outfile}"
414 add_custom_target (generate_file ALL
418 install (FILES ${outfile} DESTINATION share/pgplot)
421 [FILE:1806:files/grexec.f]
422 C*GREXEC -- PGPLOT device handler dispatch routine
424 SUBROUTINE GREXEC(IDEV,IFUNC,RBUF,NBUF,CHR,LCHR)
425 INTEGER IDEV, IFUNC, NBUF, LCHR
433 GOTO(1,2,3,4,5,6,7,8,9,10,11,12,13,14,
434 + 15,16,17,18,19,20,21) IDEV
439 WRITE (MSG,'(I10)') IDEV
440 CALL GRWARN('Unknown device code in GREXEC: '//MSG)
444 1 CALL GIDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,1)
446 2 CALL GIDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,2)
448 3 CALL GLDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,1)
450 4 CALL GLDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,2)
452 5 CALL HGDRIV(IFUNC,RBUF,NBUF,CHR,LCHR)
454 6 CALL LXDRIV(IFUNC,RBUF,NBUF,CHR,LCHR)
456 7 CALL NUDRIV(IFUNC,RBUF,NBUF,CHR,LCHR)
458 8 CALL PPDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,1)
460 9 CALL PPDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,2)
462 10 CALL PSDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,1)
464 11 CALL PSDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,2)
466 12 CALL PSDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,3)
468 13 CALL PSDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,4)
470 14 CALL TTDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,4)
472 15 CALL TTDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,5)
474 16 CALL TTDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,9)
476 17 CALL WDDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,1)
478 18 CALL WDDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,2)
480 19 CALL X2DRIV(IFUNC,RBUF,NBUF,CHR,LCHR)
482 20 CALL XWDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,1)
484 21 CALL XWDRIV(IFUNC,RBUF,NBUF,CHR,LCHR,2)
490 [FILE:498:files/pgdispd_CMakeLists.txt]
493 add_executable (${prog}
515 target_compile_definitions (${prog} PUBLIC PGDISP)
516 target_link_libraries (${prog} X11)
518 install(TARGETS ${prog} DESTINATION bin)
519 install(FILES aaaread.me
521 DESTINATION share/doc/pgplot
525 [FILE:4104:files/src_CMakeLists.txt]
526 add_executable (pgbind ../cpg/pgbind.c)
527 target_compile_definitions (pgbind PUBLIC PG_PPU)
530 pgarro.f pgask.f pgband.f pgbbuf.f pgbeg.f pgbin.f pgbox.f
531 pgbox1.f pgcirc.f pgcl.f pgclos.f pgcn01.f pgcnsc.f pgconb.f pgconl.f
532 pgcons.f pgcont.f pgconx.f pgcp.f pgctab.f pgcurs.f pgdraw.f pgebuf.f
533 pgend.f pgenv.f pgeras.f pgerrb.f pgerrx.f pgerry.f pgetxt.f pgfunt.f
534 pgfunx.f pgfuny.f pggray.f pghi2d.f pghis1.f pghist.f pghtch.f
535 pgiden.f pgimag.f pginit.f pglab.f pglcur.f pgldev.f pglen.f pgline.f
536 pgmove.f pgmtxt.f pgncur.f pgnoto.f pgnpl.f pgnumb.f pgolin.f pgopen.f
537 pgpage.f pgpanl.f pgpap.f pgpixl.f pgpnts.f pgpoly.f pgpt.f pgptxt.f
538 pgqah.f pgqcf.f pgqch.f pgqci.f pgqcir.f pgqcol.f pgqcr.f pgqcs.f
539 pgqfs.f pgqhs.f pgqid.f pgqinf.f pgqitf.f pgqls.f pgqlw.f pgqpos.f
540 pgqtbg.f pgqtxt.f pgqvp.f pgqvsz.f pgqwin.f pgrect.f pgrnd.f pgrnge.f
541 pgsah.f pgsave.f pgscf.f pgsch.f pgsci.f pgscir.f pgscr.f pgscrn.f
542 pgsfs.f pgshls.f pgshs.f pgsitf.f pgslct.f pgsls.f pgslw.f pgstbg.f
543 pgsubp.f pgsvp.f pgswin.f pgtbox.f pgtext.f pgupdt.f pgvect.f pgvsiz.f
544 pgvstd.f pgvw.f pgwedg.f pgwnad.f pgadvance.f pgbegin.f pgcurse.f
545 pglabel.f pgmtext.f pgncurse.f pgpaper.f pgpoint.f pgptext.f pgvport.f
546 pgvsize.f pgvstand.f pgwindow.f pgaxis.f pgconf.f pgerr1.f pgpt1.f
547 pgqclp.f pgqdt.f pgqndt.f pgsclp.f pgscrl.f pgtick.f
550 cpgarro.c cpgask.c cpgband.c cpgbbuf.c cpgbeg.c cpgbin.c cpgbox.c
551 cpgcirc.c cpgclos.c cpgconb.c cpgconl.c cpgcons.c cpgcont.c cpgctab.c
552 cpgcurs.c cpgdraw.c cpgebuf.c cpgend.c cpgenv.c cpgeras.c cpgerrb.c
553 cpgerrx.c cpgerry.c cpgetxt.c cpggray.c cpghi2d.c cpghist.c cpgiden.c
554 cpgimag.c cpglab.c cpglcur.c cpgldev.c cpglen.c cpgline.c cpgmove.c
555 cpgmtxt.c cpgncur.c cpgnumb.c cpgolin.c cpgopen.c cpgpage.c cpgpanl.c
556 cpgpap.c cpgpixl.c cpgpnts.c cpgpoly.c cpgpt.c cpgptxt.c cpgqah.c
557 cpgqcf.c cpgqch.c cpgqci.c cpgqcir.c cpgqcol.c cpgqcr.c cpgqcs.c
558 cpgqfs.c cpgqhs.c cpgqid.c cpgqinf.c cpgqitf.c cpgqls.c cpgqlw.c
559 cpgqpos.c cpgqtbg.c cpgqtxt.c cpgqvp.c cpgqvsz.c cpgqwin.c cpgrect.c
560 cpgrnd.c cpgrnge.c cpgsah.c cpgsave.c cpgscf.c cpgsch.c cpgsci.c
561 cpgscir.c cpgscr.c cpgscrn.c cpgsfs.c cpgshls.c cpgshs.c cpgsitf.c
562 cpgslct.c cpgsls.c cpgslw.c cpgstbg.c cpgsubp.c cpgsvp.c cpgswin.c
563 cpgtbox.c cpgtext.c cpgunsa.c cpgupdt.c cpgvect.c cpgvsiz.c cpgvstd.c
564 cpgwedg.c cpgwnad.c cpgaxis.c cpgconf.c cpgerr1.c cpgpt1.c cpgqclp.c
565 cpgqdt.c cpgqndt.c cpgsclp.c cpgscrl.c cpgtick.c
570 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/c${infile}.c
571 COMMAND pgbind bsd -h -w ${CMAKE_SOURCE_DIR}/src/${infile}.f
572 DEPENDS pgbind ${CMAKE_SOURCE_DIR}/src/${infile}.f
575 set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/c${infile}.c
576 PROPERTIES GENERATED true
580 foreach(dossier ${src})
581 set(pathsrc ${pathsrc} ${CMAKE_CURRENT_BINARY_DIR}/${dossier})
582 set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${dossier}
583 PROPERTIES GENERATED true)
586 foreach(dossier ${libsrcs})
587 set(pathlibsrcs ${pathlibsrcs} ${CMAKE_SOURCE_DIR}/src/${dossier})
591 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cpgplot.h ${pathsrc}
592 COMMAND pgbind bsd -h -w ${pathlibsrcs}
593 DEPENDS pgbind ${pathlibsrcs}
597 set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/cpgplot.h
598 PROPERTIES GENERATED true)
600 add_library(plotobj OBJECT ${src})
601 set_property(TARGET plotobj PROPERTY POSITION_INDEPENDENT_CODE 1)
603 add_library(cpgplot SHARED $<TARGET_OBJECTS:plotobj>)
604 add_library(cpgplot_static ${src})
606 set_target_properties(cpgplot PROPERTIES VERSION 5)
607 set_target_properties(cpgplot PROPERTIES SOVERSION 5)
608 set_target_properties(cpgplot PROPERTIES PUBLIC_HEADER
609 ${CMAKE_CURRENT_BINARY_DIR}/cpgplot.h)
611 target_compile_definitions (cpgplot PUBLIC PG_PPU)
612 target_compile_definitions (cpgplot_static PUBLIC PG_PPU)
614 install(TARGETS cpgplot
615 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
616 PUBLIC_HEADER DESTINATION include)
618 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcpgplot_static.a
621 install(FILES ../cpg/cpgplot.doc DESTINATION share/doc/pgplot)
624 [FILE:5920:files/sys_CMakeLists.txt]
625 set (S "${CMAKE_SOURCE_DIR}/src")
627 set (BSD "../sys_freebsd")
881 grdate.c grfileio.c grflun.f grgcom.f grgenv.f
882 grgetc.c grglun.f grgmem.c grgmsg.f grlgtr.f groptx.f grsy00.f
883 grtermio.c grtrml.f grtter.f gruser.c
886 IF(CMAKE_SYSTEM_NAME MATCHES "(FreeBSD|DragonFly)")
887 set(OS_SPECIFIC ${BSD}/iand.c)
900 add_library(fplotobj OBJECT ${SRCS})
901 set_property(TARGET fplotobj PROPERTY POSITION_INDEPENDENT_CODE 1)
903 add_library(pgplot SHARED $<TARGET_OBJECTS:fplotobj>)
904 add_library(pgplot_static ${SRCS})
906 set_target_properties(pgplot PROPERTIES VERSION 5)
907 set_target_properties(pgplot PROPERTIES SOVERSION 5)
909 target_compile_definitions (fplotobj PUBLIC PG_PPU)
910 target_compile_definitions (pgplot_static PUBLIC PG_PPU)
912 target_link_libraries (pgplot png)
914 install(TARGETS pgplot
915 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
916 PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
918 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpgplot_static.a
922 set (out_doc ${CMAKE_CURRENT_BINARY_DIR}/pgplot.doc)
923 set (out_htm ${CMAKE_CURRENT_BINARY_DIR}/pgplot.html)
924 set (out_tex ${CMAKE_CURRENT_BINARY_DIR}/pgplot-routines.tex)
928 COMMAND ${CMAKE_SOURCE_DIR}/makedoc ${PG_ROUTINES} ${PG_NON_STANDARD} > ${out_doc}
929 DEPENDS ${PG_ROUTINES} ${PG_NON_STANDARD}
930 COMMENT "Generated ${out_doc}"
936 COMMAND ${CMAKE_SOURCE_DIR}/makehtml ${PG_ROUTINES} ${PG_NON_STANDARD} > ${out_htm}
937 DEPENDS ${PG_ROUTINES} ${PG_NON_STANDARD}
938 COMMENT "Generated ${out_htm}"
944 COMMAND ${CMAKE_SOURCE_DIR}/maketex ${PG_ROUTINES} ${PG_NON_STANDARD} > ${out_tex}
945 DEPENDS ${PG_ROUTINES} ${PG_NON_STANDARD}
946 COMMENT "Generated ${out_tex}"
950 add_custom_target(gen_docs ALL
951 DEPENDS ${out_doc} ${out_htm} ${out_tex}
954 install(FILES ${out_doc} ${out_htm} ${out_tex}
955 DESTINATION share/doc/pgplot)