pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import graphite2 from pkgsrc



Module Name:	pkgsrc-wip
Committed By:	coypu <coypu%sdf.org@localhost>
Pushed By:	coypu
Date:		Wed Mar 23 11:37:58 2016 +0200
Changeset:	30afdcebf2331bb2d835f9a36ac8c2789044bbf7

Added Files:
	graphite2/DESCR
	graphite2/Makefile
	graphite2/PLIST
	graphite2/buildlink3.mk
	graphite2/distinfo
	graphite2/patches/patch-src_CMakeLists.txt

Log Message:
Import graphite2 from pkgsrc

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=30afdcebf2331bb2d835f9a36ac8c2789044bbf7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 graphite2/DESCR                            |  7 +++++
 graphite2/Makefile                         | 17 +++++++++++
 graphite2/PLIST                            | 12 ++++++++
 graphite2/buildlink3.mk                    | 12 ++++++++
 graphite2/distinfo                         |  7 +++++
 graphite2/patches/patch-src_CMakeLists.txt | 45 ++++++++++++++++++++++++++++++
 6 files changed, 100 insertions(+)

diffs:
diff --git a/graphite2/DESCR b/graphite2/DESCR
new file mode 100644
index 0000000..a15ef7e
--- /dev/null
+++ b/graphite2/DESCR
@@ -0,0 +1,7 @@
+Graphite is a project within SIL's scripts and software dev
+groups to provide cross-platform rendering for complex writing
+systems.
+
+Graphite2, a new version of the Graphite engine, is available
+at: http://projects.palaso.org/projects/graphitedev with its
+own bug tracker.
diff --git a/graphite2/Makefile b/graphite2/Makefile
new file mode 100644
index 0000000..1f04170
--- /dev/null
+++ b/graphite2/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.3 2016/01/26 13:56:23 wiz Exp $
+
+DISTNAME=	graphite2-1.3.5
+CATEGORIES=	graphics
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=silgraphite/}
+EXTRACT_SUFX=	.tgz
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://sourceforge.net/projects/silgraphite/
+COMMENT=	Cross-platform rendering for complex writing systems
+LICENSE=	gnu-lgpl-v2
+
+USE_LANGUAGES=	c c++
+USE_CMAKE=	yes
+USE_LIBTOOL=	yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphite2/PLIST b/graphite2/PLIST
new file mode 100644
index 0000000..3663823
--- /dev/null
+++ b/graphite2/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.3 2016/01/26 13:56:23 wiz Exp $
+bin/gr2fonttest
+include/graphite2/Font.h
+include/graphite2/Log.h
+include/graphite2/Segment.h
+include/graphite2/Types.h
+lib/libgraphite2.so
+lib/libgraphite2.so.3
+lib/libgraphite2.so.3.0.1
+lib/pkgconfig/graphite2.pc
+share/graphite2/graphite2-release.cmake
+share/graphite2/graphite2.cmake
diff --git a/graphite2/buildlink3.mk b/graphite2/buildlink3.mk
new file mode 100644
index 0000000..2792f29
--- /dev/null
+++ b/graphite2/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/02/02 07:47:36 ryoon Exp $
+
+BUILDLINK_TREE+=	graphite2
+
+.if !defined(GRAPHITE2_BUILDLINK3_MK)
+GRAPHITE2_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.graphite2+=	graphite2>=1.2
+BUILDLINK_PKGSRCDIR.graphite2?=		../../graphics/graphite2
+.endif # GRAPHITE2_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-graphite2
diff --git a/graphite2/distinfo b/graphite2/distinfo
new file mode 100644
index 0000000..4ac441e
--- /dev/null
+++ b/graphite2/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.6 2016/02/07 01:05:11 ryoon Exp $
+
+SHA1 (graphite2-1.3.5.tgz) = 044f65d5b4ade3169f5fcd75a25f047c81f5d33e
+RMD160 (graphite2-1.3.5.tgz) = 49c0c9d919a23ab215402d082670083b7cfba61e
+SHA512 (graphite2-1.3.5.tgz) = 70e85ff44d63dcca6beb55aa68966888453610c4ec1fca0d0986910a8f396ad64fd0b9f393270fd403c93e7e5d45cdc134c3965f47761cd40cd659b92b8abcec
+Size (graphite2-1.3.5.tgz) = 3880214 bytes
+SHA1 (patch-src_CMakeLists.txt) = 4751d4cb699a368b9b612a18c45176346e29968b
diff --git a/graphite2/patches/patch-src_CMakeLists.txt b/graphite2/patches/patch-src_CMakeLists.txt
new file mode 100644
index 0000000..1ce6df2
--- /dev/null
+++ b/graphite2/patches/patch-src_CMakeLists.txt
@@ -0,0 +1,45 @@
+$NetBSD: patch-src_CMakeLists.txt,v 1.4 2016/02/07 01:05:11 ryoon Exp $
+
+Don't pass -nodefaultlibs to compiler or the build fails for missing
+symbols on PowerPC and possibly other platforms. I can't see any
+reason why they do this at all.
+
+The problem is already reported to the upstream:
+http://sourceforge.net/p/silgraphite/bugs/56/
+
+--- src/CMakeLists.txt.orig	2016-01-15 04:17:18.000000000 +0000
++++ src/CMakeLists.txt
+@@ -109,7 +109,7 @@ set_target_properties(graphite2 PROPERTI
+ if  (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+     set_target_properties(graphite2 PROPERTIES 
+         COMPILE_FLAGS   "-Wall -Wextra -Wno-unknown-pragmas -Wendif-labels -Wshadow -Wctor-dtor-privacy -Wnon-virtual-dtor -fno-rtti -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden -fno-stack-protector"
+-        LINK_FLAGS      "-nodefaultlibs ${GRAPHITE_LINK_FLAGS}" 
++        LINK_FLAGS      "${GRAPHITE_LINK_FLAGS}" 
+         LINKER_LANGUAGE C)
+     if (CMAKE_COMPILER_IS_GNUCXX)
+         add_definitions(-Wdouble-promotion)
+@@ -126,23 +126,17 @@ if  (${CMAKE_SYSTEM_NAME} STREQUAL "Linu
+         else (GRAPHITE2_ASAN)
+             target_link_libraries(graphite2 c gcc)
+         endif (GRAPHITE2_ASAN)
+-        include(Graphite)
+-        nolib_test(stdc++ $<TARGET_SONAME_FILE:graphite2>)
+     endif (${CMAKE_CXX_COMPILER} MATCHES  ".*mingw.*")
+     set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")
+-    CREATE_LIBTOOL_FILE(graphite2 "/lib${LIB_SUFFIX}")
+ endif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+ 
+ if  (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
+     set_target_properties(graphite2 PROPERTIES 
+         COMPILE_FLAGS   "-Wall -Wextra -Wno-unknown-pragmas -Wimplicit-fallthrough -Wendif-labels -Wshadow -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -fno-rtti -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden -fno-stack-protector"
+-        LINK_FLAGS      "-nodefaultlibs" 
++        LINK_FLAGS      "${GRAPHITE_LINK_FLAGS}" 
+         LINKER_LANGUAGE C)
+     target_link_libraries(graphite2 c)
+-    include(Graphite)
+-    nolib_test(stdc++ $<TARGET_SONAME_FILE:graphite2>)
+     set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")
+-    CREATE_LIBTOOL_FILE(graphite2 "/lib${LIB_SUFFIX}")
+ endif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
+ 
+ if  (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")


Home | Main Index | Thread Index | Old Index