1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/ploticus/ploticus.conf
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
4 # Copyright (C) 1998 - 2004 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 # set prefabs dir during build so that PLOTICUS_PREFABS environment variable
14 # does not have to be set explicitly
15 PREFABS_DIR=/$prefix/share/ploticus/prefabs/
16 var_append makeopt ' ' "PREFABS_DIR=$PREFABS_DIR"
19 install src/pl $root$bindir/ploticus
20 #FIXME shared file with swi-prolog, have to convert sources to
21 # always use the "ploticus" name instead of
22 # ln -svf pl $root$bindir/pl
23 mkdir -p $root/$prefix/share/ploticus
24 cp -rfv prefabs $root${PREFABS_DIR%prefabs/}
26 # somehow the docs change with each version released ...
27 # cp -fv man/man1/pl.1 $root/$prefic/man/man1/ploticus.1
28 # cp -fv man/man3/libploticus.3 $root/$prefic/man/man3/
29 # cp -rfv man/manpl $docdir
33 # change into src, and do not run make install
34 var_append makeopt ' ' '-C src'
36 hook_add postmake 3 "ploticus_install"
38 if pkginstalled libx11; then
39 var_append GCC_WRAPPER_INSERT ' ' "$(pkg-config x11 --cflags --libs-only-L)"
40 var_append makeopt ' ' 'NOX11='
41 var_append makeopt ' ' 'XOBJ="x11.o interact.o"'
42 var_append makeopt ' ' 'XLIBS="-L/usr/X11/lib -lX11"'
43 var_append makeopt ' ' 'XINCLUDEDIR=-I/usr/X11/include'