Import libwps-0.3.1 as converters/libwps03.

libwps is a library for reading Microsoft Works documents.
This package tracks 0.3 release branch for misc/libreoffice4.
This commit is contained in:
ryoon 2015-08-12 00:29:14 +00:00
parent 73fd7b4ba0
commit 84bdb79f78
6 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,2 @@
libwps is a library for reading Microsoft Works documents.
This package tracks 0.3 release branch for misc/libreoffice4.

View file

@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.1 2015/08/12 00:29:14 ryoon Exp $
DISTNAME= libwps-0.3.1
CATEGORIES= converters
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libwps/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://libwps.sourceforge.net/
COMMENT= Library for importing Microsoft Works documents, 0.3 branch
LICENSE= gnu-lgpl-v2.1
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --without-docs
PKGCONFIG_OVERRIDE+= libwps.pc.in
BUILDLINK_TRANSFORM+= rm:-Werror
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
_WRAP_EXTRA_ARGS.CXX+= -Wno-unused-private-field -Wno-unused-const-variable
CWRAPPERS_APPEND.cxx+= -Wno-unused-private-field -Wno-unused-const-variable
.endif
.include "../../converters/librevenge/buildlink3.mk"
.include "../../converters/libwpd/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/boost-headers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

11
converters/libwps03/PLIST Normal file
View file

@ -0,0 +1,11 @@
@comment $NetBSD: PLIST,v 1.1 2015/08/12 00:29:14 ryoon Exp $
bin/wks2csv
bin/wks2raw
bin/wks2text
bin/wps2html
bin/wps2raw
bin/wps2text
include/libwps-0.3/libwps/WPSDocument.h
include/libwps-0.3/libwps/libwps.h
lib/libwps-0.3.la
lib/pkgconfig/libwps-0.3.pc

View file

@ -0,0 +1,16 @@
# $NetBSD: buildlink3.mk,v 1.1 2015/08/12 00:29:14 ryoon Exp $
BUILDLINK_TREE+= libwps
.if !defined(LIBWPS_BUILDLINK3_MK)
LIBWPS_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libwps+= libwps>=0.2.0
BUILDLINK_ABI_DEPENDS.libwps?= libwps>=0.3.0
BUILDLINK_PKGSRCDIR.libwps?= ../../converters/libwps03
.include "../../converters/librevenge/buildlink3.mk"
.include "../../converters/libwpd/buildlink3.mk"
.endif # LIBWPS_BUILDLINK3_MK
BUILDLINK_TREE+= -libwps

View file

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1 2015/08/12 00:29:14 ryoon Exp $
SHA1 (libwps-0.3.1.tar.bz2) = f873f672adf0d92030ab2b6697be735ef6cfc6e2
RMD160 (libwps-0.3.1.tar.bz2) = 109484e67bf62d64eeaf78417e1552b3e2f3d7fa
Size (libwps-0.3.1.tar.bz2) = 496436 bytes
SHA1 (patch-configure) = 5b3e7b782a708a9039032a9eb0f57ed21ead3c86

View file

@ -0,0 +1,15 @@
$NetBSD: patch-configure,v 1.1 2015/08/12 00:29:14 ryoon Exp $
Fix unportable test(1) operator.
--- configure.orig 2014-12-30 09:10:53.000000000 +0000
+++ configure
@@ -16187,7 +16187,7 @@ else
fi
-if test "x$platform_win32" == "xyes"; then :
+if test "x$platform_win32" = "xyes"; then :
else