From ebf9c697114b4c68c4b2960a8226c92664a78160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sun, 21 Jun 2020 18:18:03 -0300 Subject: [PATCH] New package: horizon-1.1.1. --- srcpkgs/horizon/patches/flags.patch | 16 ++++++++++++++++ srcpkgs/horizon/patches/ld.patch | 14 ++++++++++++++ srcpkgs/horizon/template | 20 ++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 srcpkgs/horizon/patches/flags.patch create mode 100644 srcpkgs/horizon/patches/ld.patch create mode 100644 srcpkgs/horizon/template diff --git a/srcpkgs/horizon/patches/flags.patch b/srcpkgs/horizon/patches/flags.patch new file mode 100644 index 00000000000..15b6415fd7a --- /dev/null +++ b/srcpkgs/horizon/patches/flags.patch @@ -0,0 +1,16 @@ +diff --git a/Makefile b/Makefile +index bb22e2e4..62bafcd8 100644 +--- Makefile ++++ Makefile +@@ -634,9 +634,9 @@ LIBS_ALL = $(LIBS_COMMON) gtkmm-3.0 epoxy cairomm-pdf-1.0 librsvg-2.0 libzmq lib + + OPTIMIZE=-fdata-sections -ffunction-sections + DEBUG =-g3 +-CXXFLAGS =$(DEBUG) $(DEFINES) $(OPTIMIZE) $(shell $(PKGCONFIG) --cflags $(LIBS_ALL)) -MP -MMD -pthread -Wall -Wshadow -std=c++14 -O3 ++CXXFLAGS += $(DEBUG) $(DEFINES) $(OPTIMIZE) $(shell $(PKGCONFIG) --cflags $(LIBS_ALL)) -MP -MMD -pthread -Wall -Wshadow -std=c++14 -O3 + CFLAGS = $(filter-out -std=%,$(CXXFLAGS)) -std=c99 +-LDFLAGS = -lm -lpthread ++LDFLAGS += -lm -lpthread + GLIB_COMPILE_RESOURCES = $(shell $(PKGCONFIG) --variable=glib_compile_resources gio-2.0) + + ifeq ($(OS),Windows_NT) diff --git a/srcpkgs/horizon/patches/ld.patch b/srcpkgs/horizon/patches/ld.patch new file mode 100644 index 00000000000..e719ce0d4b2 --- /dev/null +++ b/srcpkgs/horizon/patches/ld.patch @@ -0,0 +1,14 @@ +diff --git a/Makefile b/Makefile +index bb22e2e4..97274d40 100644 +--- Makefile ++++ Makefile +@@ -647,8 +647,8 @@ else + UNAME := $(shell uname) + ifeq ($(UNAME), Darwin) + # do nothing on mac os + else +- LDFLAGS += -fuse-ld=gold ++ #LDFLAGS += -fuse-ld=gold + endif + endif + diff --git a/srcpkgs/horizon/template b/srcpkgs/horizon/template new file mode 100644 index 00000000000..bba149ae10e --- /dev/null +++ b/srcpkgs/horizon/template @@ -0,0 +1,20 @@ +# Template file for 'horizon' +pkgname=horizon +version=1.1.1 +revision=1 +build_style=gnu-makefile +make_use_env=yes +hostmakedepends="pkg-config glib-devel" +makedepends="cairomm-devel librsvg-devel yaml-cpp-devel sqlite-devel boost-devel + glm libgit2-devel libcurl-devel occt-devel cppzmq libpodofo-devel libzip-devel + gtkmm-devel libepoxy-devel libsodium-devel" +short_desc="Free EDA package" +maintainer="Érico Nogueira " +license="GPL-3.0-only" +homepage="https://horizon-eda.org/" +distfiles="https://github.com/horizon-eda/horizon/archive/v${version}.tar.gz" +checksum=05f7c18209a5ea1a38e6e9687e89902a9925a89c03d9294aae3328eeb2135aec + +if [ "$CROSS_BUILD" ]; then + make_build_args="INC_OCE=-I$XBPS_CROSS_BASE/usr/include/opencascade" +fi