diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-10-14 02:08:46 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-10-14 02:08:46 -0300 |
commit | 776999f7876ddc85f4212202fc4ec3b4389dd784 (patch) | |
tree | 8c5533c7e1b6d14a7eb1818cbbf34b0dd9c50a6f /pcr/ploticus | |
parent | f0d222892c55dfde6fc14cd2ee2578d035ce5866 (diff) | |
download | abslibre-776999f7876ddc85f4212202fc4ec3b4389dd784.tar.gz abslibre-776999f7876ddc85f4212202fc4ec3b4389dd784.tar.bz2 abslibre-776999f7876ddc85f4212202fc4ec3b4389dd784.zip |
ploticus: add new package to [pcr]
Diffstat (limited to 'pcr/ploticus')
-rw-r--r-- | pcr/ploticus/Makefile.patch | 81 | ||||
-rw-r--r-- | pcr/ploticus/PKGBUILD | 41 |
2 files changed, 122 insertions, 0 deletions
diff --git a/pcr/ploticus/Makefile.patch b/pcr/ploticus/Makefile.patch new file mode 100644 index 000000000..c991172c9 --- /dev/null +++ b/pcr/ploticus/Makefile.patch @@ -0,0 +1,81 @@ +--- pl241src/src/Makefile.backup 2010-08-25 17:23:27.678303158 -0400 ++++ pl241src/src/Makefile 2010-08-25 17:23:35.078302786 -0400 +@@ -25,21 +25,21 @@ + + + ############ Option 1: build the pl executable (unix), no X11 .... +-NOX11 = -DNOX11 ++#NOX11 = -DNOX11 + + + + ############ Option 2: build the pl executable (unix), with X11 enabled .... +-# NOX11 = +-# XOBJ = x11.o interact.o ++NOX11 = ++XOBJ = x11.o interact.o + + ############ ...AND... activate the lines below for your platform... (X11 libs & header files) + #### linux + # XLIBS = -L/usr/X11R6/lib -lX11 + # XINCLUDEDIR = -I/usr/X11R6/include + #### alt linux +-# XLIBS = -lX11 +-# XINCLUDEDIR = -I/usr/include/X11 ++XLIBS = -lX11 ++XINCLUDEDIR = -I/usr/include/X11 + #### 64bit linux + # XLIBS = -L/usr/X11R6/lib64 -lX11 + #### solaris +@@ -89,10 +89,10 @@ + + + ########### Option 1: use bundled GD16 (PNG only). Requires libpng and zlib. +-exetarget: plpng +-GD16LIBS = -lpng -lz +-GD16H = +-ZFLAG = -DWZ ++#exetarget: plpng ++#GD16LIBS = -lpng -lz ++#GD16H = ++#ZFLAG = -DWZ + + ########### Option 2: use bundled GD13 (pseudoGIF only). No additional lib dependencies. + # exetarget: pl +@@ -106,11 +106,11 @@ + + ########### Option 4: use your own GD resource with FreeType2 fonts enabled. + ########### Requires GD 1.84+, libpng, zlib, libjpeg and libfreetype +-# exetarget: plgd18 +-# GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype +-# GD18H = +-# GDFREETYPE = -DGDFREETYPE +-# ZFLAG = -DWZ ++exetarget: plgd18 ++GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype ++GD18H = ++GDFREETYPE = -DGDFREETYPE ++ZFLAG = -DWZ + + ########### Option 5: don't use GD at all. + # exetarget: plnogd +@@ -133,7 +133,7 @@ + #### To set a hard-coded directory for prefabs files, uncomment & edit the following.. + #### If done, users won't be required to have PLOTICUS_PREFABS environment variable defined. + #### This option not available for win32 +-# PREFABS_DIR = "/usr/lib/ploticus/prefabs" ++PREFABS_DIR = "/usr/share/ploticus" + + + #### If you do a "make install", where do you want the executable(s) to be moved to? +@@ -141,8 +141,8 @@ + + + #### For LOCALE support (non-roman alphabets & collation), uncomment the following.. +-# LOCALEOBJ = localef.o +-# LOCALE_FLAG = -DLOCALE ++LOCALEOBJ = localef.o ++LOCALE_FLAG = -DLOCALE + + #### SVG output is always available by default. + #### If you want compressed SVG (.svgz), and you selected GD13 or no GD above, diff --git a/pcr/ploticus/PKGBUILD b/pcr/ploticus/PKGBUILD new file mode 100644 index 000000000..f63508246 --- /dev/null +++ b/pcr/ploticus/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer (Arch): Chris Severance aur.severach aATt spamgourmet dott com +# Contributor (Arch): Kaiting Chen <kaitocracy@gmail.com> +# Contributor (Arch): Andreas Hauser <andy-aur@splashground.de> + +set -u +pkgname='ploticus' +pkgver='2.41' +pkgrel='1' +pkgdesc='produce plots and graphs in GIF, PNG, PostScript, SVG from CSV like data' +arch=('i686' 'x86_64') +url='http://ploticus.sourceforge.net/doc/welcome.html' +license=('GPL') +depends=('gd' 'libpng' 'libjpeg' 'freetype2' 'zlib' 'libx11') +sha256sums=('ecccb6afcf0008d5b31da2e9e74c448564101eb7b9bbde758a3dca1f2dc8c580' + 'f0b1acc10a35b1d3c4268ee67c2520af36044991e289d538c1cb5b7bc406d4e4') +source=("http://prdownloads.sourceforge.net/sourceforge/${pkgname}/pl${pkgver/./}src.tar.gz" + 'Makefile.patch') + +prepare() { + set -u + cd "${srcdir}/pl${pkgver/./}src/src" + patch -Np2 -i "${srcdir}/Makefile.patch" + set +u +} + +build() { + set -u + cd "${srcdir}/pl${pkgver/./}src/src" + make -s -j "$(nproc)" CC='gcc -O' + set +u +} + +package() { + set -u + cd "${srcdir}/pl${pkgver/./}src/src" + install -Dpm755 'pl' -t "${pkgdir}/usr/bin/" + install -Dpm644 '../man/man1/pl.1' -t "${pkgdir}/usr/share/man/man1/" + install -Dpm644 '../prefabs'/* -t "${pkgdir}/usr/share/ploticus/" + set +u +} +set +u |