From nobody Sun Jul 3 06:27:53 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E492F8ADC74; Sun, 3 Jul 2022 06:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LbJs53hYYz4VQ9; Sun, 3 Jul 2022 06:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656829673; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tdjZz1zG4z9tYoD5UQaaI0LfEYPzElo5sG5/PCJwFD0=; b=vYi1rNmplGKrGlhWkLCe2jCMDl+UdaYkuSA3RvtnrcESov+xowZwJKKRR56xvqSR9K7q6z msi14GtMH0WdfQ0j8y1bTgI9c3acBGyTME5NkdQfU4nOezdorkHrvG+IDC47opYJQEuD78 l5bzHv8XMrSut4bh2w+cw2IVJTGZupKk372q/cuteIgz+Nj4Bf4fXJ9bf3nmLs4RqW9KuE yw+mSIgHt+YRAMP3YzdZXm/OGLPlM9Mk0HVJzXVLxJmblO/ujR60cSDCZktaqaGO6C57RE QG8CI52elw+IvA9ojC+O8UrRRIl3taD44HQFgCCPQ+5ut/DgMsryCJIdRPQtag== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4EC9D1F1D8; Sun, 3 Jul 2022 06:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2636Rrpq063568; Sun, 3 Jul 2022 06:27:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2636RrPs063567; Sun, 3 Jul 2022 06:27:53 GMT (envelope-from git) Date: Sun, 3 Jul 2022 06:27:53 GMT Message-Id: <202207030627.2636RrPs063567@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: c3068f3c4640 - main - graphics/kplot: New port: Cairo plotting library List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c3068f3c4640116d412f652386b97e0f5e907e09 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656829673; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tdjZz1zG4z9tYoD5UQaaI0LfEYPzElo5sG5/PCJwFD0=; b=CD3dD4+G9C5+lvUarODaSteQHMV58LLz+0rwdfYsXtdRpdXXfbOM3Tacs/3HopCZy3vJSH l8+drAOvXbw3ML9MoHmbgZyOxweRhrmqjzhGo2H3DyoXdsn+sRfd+wCkMueSYfHcZbwyW0 eyQj27hENQnCPJnQwACmFowlVs1iRTjjo/Z79fik/SeokxMfC+b9NWCwueqh63oOmnxXEu hht6nYeMjz1OwdqveHOjR6auz42Enoa3PusSEQ3Hk3lIYfxVwOizZWNfLUHdFKjIPKhQxz FvxnRF/+Ev6pbNE1lJBzEj9epDDKoD9FkZSrYiHfKK6KSYOlZzMQtVYG+iGfYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656829673; a=rsa-sha256; cv=none; b=JT4f+6Jxe+jmRMkRykp27UGF+KcGl5/OWKHMHDCgb/PgYaX7By+SzoLvukNmpvLS7SMYkJ wMTD1zh7ADHZdUNUdHm7Ou58XsyqK6B6pRUreavJBP6CbcJgnLhbixiLafImaVMUM6EYIz XvFQ1k5dj4Byk4KqYkIGh382mX70ryWy7SH+xdN+H9xLWMXiNGk8S5z/NO3bSe7ryEK2PQ Um1686n81pbQhrZ/bxrJBknZAyjh1PTx+GqupFNFwR1mGW9Ga0LOCx2Ea3ZkKJt9JAfmDy hM00pDvR74c9Hs21qTHoKlANSaQRiHM0Xvj/H8LcCd9xsspbSW0QcOMf+fp9Gg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=c3068f3c4640116d412f652386b97e0f5e907e09 commit c3068f3c4640116d412f652386b97e0f5e907e09 Author: Yuri Victorovich AuthorDate: 2022-07-03 06:27:06 +0000 Commit: Yuri Victorovich CommitDate: 2022-07-03 06:27:47 +0000 graphics/kplot: New port: Cairo plotting library --- graphics/Makefile | 1 + graphics/kplot/Makefile | 21 +++++++ graphics/kplot/distinfo | 3 + graphics/kplot/files/patch-Makefile | 113 ++++++++++++++++++++++++++++++++++++ graphics/kplot/pkg-descr | 3 + graphics/kplot/pkg-plist | 37 ++++++++++++ 6 files changed, 178 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 7657f37f07a0..85d1eb877603 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -412,6 +412,7 @@ SUBDIR += kontrast SUBDIR += kooka SUBDIR += kphotoalbum + SUBDIR += kplot SUBDIR += kqtquickcharts SUBDIR += kquickimageeditor SUBDIR += krita diff --git a/graphics/kplot/Makefile b/graphics/kplot/Makefile new file mode 100644 index 000000000000..193a89e5f8ec --- /dev/null +++ b/graphics/kplot/Makefile @@ -0,0 +1,21 @@ +PORTNAME= kplot +DISTVERSIONPREFIX= VERSION_ +DISTVERSION= 0_1_15 +CATEGORIES= graphics + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Cairo plotting library + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +USES= gmake gnome localbase pkgconfig +USE_GNOME= cairo + +USE_GITHUB= yes +GH_ACCOUNT= kristapsdz + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libkplot.so + +.include diff --git a/graphics/kplot/distinfo b/graphics/kplot/distinfo new file mode 100644 index 000000000000..c45107a82fc6 --- /dev/null +++ b/graphics/kplot/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1656828350 +SHA256 (kristapsdz-kplot-VERSION_0_1_15_GH0.tar.gz) = 602ebaac9b67dc7c7e84d8112df887c95ba0a1c4ed71fbab6671f8c5ecf4ba2a +SIZE (kristapsdz-kplot-VERSION_0_1_15_GH0.tar.gz) = 41464 diff --git a/graphics/kplot/files/patch-Makefile b/graphics/kplot/files/patch-Makefile new file mode 100644 index 000000000000..ba5278ce6640 --- /dev/null +++ b/graphics/kplot/files/patch-Makefile @@ -0,0 +1,113 @@ +--- Makefile.orig 2022-07-03 06:07:22 UTC ++++ Makefile +@@ -1,6 +1,6 @@ + .SUFFIXES: .3 .3.html + +-CFLAGS = -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings ++CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings -fPIC + #If you're on Mac OSX without XQuarts, you'll need /usr/X11 instead of /opt/X11! + CPPFLAGS = `pkg-config --cflags --silence-errors cairo || echo '-I/opt/X11/include/cairo'` + VERSION = 0.1.15 +@@ -165,13 +165,13 @@ MANS = man/kdata_array_alloc.3 \ + man/kplot_get_plotcfg.3 \ + man/kplotcfg_defaults.3 + +-all: libkplot.a $(EXAMPLES) ++all: libkplot.so $(EXAMPLES) + + install: all + mkdir -p $(DESTDIR)$(PREFIX)/lib + mkdir -p $(DESTDIR)$(PREFIX)/include + mkdir -p $(DESTDIR)$(PREFIX)/share/man/man3 +- install -m 0444 libkplot.a $(DESTDIR)$(PREFIX)/lib ++ install -m 0444 libkplot.so $(DESTDIR)$(PREFIX)/lib + install -m 0444 kplot.h $(DESTDIR)$(PREFIX)/include + install -m 0444 $(MANS) $(DESTDIR)$(PREFIX)/man/man3 + +@@ -186,50 +186,50 @@ installwww: www + install -m 0444 kplot.tgz $(PREFIX)/snapshots + install -m 0444 kplot.tgz.sha512 $(PREFIX)/snapshots + +-$(EXAMPLES): libkplot.a ++$(EXAMPLES): libkplot.so + +-EXAMPLE_LIBS = libkplot.a $(LDADD) -lm ++EXAMPLE_LIBS = libkplot.so $(LDADD) -lm + +-example0: example0.c libkplot.a ++example0: example0.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + +-example1: example1.c libkplot.a ++example1: example1.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + +-example2: example2.c libkplot.a ++example2: example2.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + +-example3: example3.c libkplot.a ++example3: example3.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + +-example4: example4.c libkplot.a ++example4: example4.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + +-example5: example5.c libkplot.a ++example5: example5.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + +-example6: example6.c libkplot.a ++example6: example6.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + +-example7: example7.c libkplot.a ++example7: example7.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + +-example8: example8.c libkplot.a ++example8: example8.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + +-example9: example9.c libkplot.a ++example9: example9.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + +-example10: example10.c libkplot.a ++example10: example10.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + +-example11: example11.c libkplot.a ++example11: example11.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + +-example12: example12.c libkplot.a ++example12: example12.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + +-example13: example13.c libkplot.a ++example13: example13.c libkplot.so + $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $< $(EXAMPLE_LIBS) + + example0.png: example0 +@@ -274,8 +274,8 @@ example12.png: example12 + example13.png: example13 + ./example13 + +-libkplot.a: $(OBJS) +- $(AR) rs $@ $(OBJS) ++libkplot.so: $(OBJS) ++ $(CC) -shared -o $@ $(OBJS) -L$(PREFIX)/lib -lcairo + + $(OBJS): kplot.h compat.h extern.h + +@@ -305,7 +305,7 @@ kplot.tgz: + rm -rf .dist + + clean: +- rm -f libkplot.a compat.h test-reallocarray ++ rm -f libkplot.so compat.h test-reallocarray + rm -f $(EXAMPLES) + rm -rf *.dSYM + rm -f $(OBJS) diff --git a/graphics/kplot/pkg-descr b/graphics/kplot/pkg-descr new file mode 100644 index 000000000000..5a3e38a2b59c --- /dev/null +++ b/graphics/kplot/pkg-descr @@ -0,0 +1,3 @@ +kplot is an open source Cairo plotting library. + +WWW: https://kristaps.bsd.lv/kplot/ diff --git a/graphics/kplot/pkg-plist b/graphics/kplot/pkg-plist new file mode 100644 index 000000000000..32631b748763 --- /dev/null +++ b/graphics/kplot/pkg-plist @@ -0,0 +1,37 @@ +include/kplot.h +lib/libkplot.so +man/man3/kdata_array_alloc.3.gz +man/man3/kdata_array_fill.3.gz +man/man3/kdata_bucket_add.3.gz +man/man3/kdata_bucket_alloc.3.gz +man/man3/kdata_buffer_alloc.3.gz +man/man3/kdata_buffer_copy.3.gz +man/man3/kdata_destroy.3.gz +man/man3/kdata_get.3.gz +man/man3/kdata_hist_add.3.gz +man/man3/kdata_hist_alloc.3.gz +man/man3/kdata_mean_alloc.3.gz +man/man3/kdata_mean_attach.3.gz +man/man3/kdata_pmfmean.3.gz +man/man3/kdata_pmfstddev.3.gz +man/man3/kdata_pmfvar.3.gz +man/man3/kdata_stddev_alloc.3.gz +man/man3/kdata_stddev_attach.3.gz +man/man3/kdata_vector_alloc.3.gz +man/man3/kdata_vector_append.3.gz +man/man3/kdata_xmax.3.gz +man/man3/kdata_xmean.3.gz +man/man3/kdata_xmin.3.gz +man/man3/kdata_xstddev.3.gz +man/man3/kdatacfg_defaults.3.gz +man/man3/kplot.3.gz +man/man3/kplot_alloc.3.gz +man/man3/kplot_attach_data.3.gz +man/man3/kplot_attach_datas.3.gz +man/man3/kplot_attach_smooth.3.gz +man/man3/kplot_detach.3.gz +man/man3/kplot_draw.3.gz +man/man3/kplot_free.3.gz +man/man3/kplot_get_datacfg.3.gz +man/man3/kplot_get_plotcfg.3.gz +man/man3/kplotcfg_defaults.3.gz