mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- Updated to 0.2.2.
- Update license. It is now dual-licensed under MPL2+ and LGPL2.1+. - Fix packaging without DOCS. - Trim Makefile header. Approved by: fluffy (maintainer)
This commit is contained in:
parent
3156cdf2e1
commit
624a325bdf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316261
@ -1,20 +1,15 @@
|
||||
# New ports collection makefile for: graphics/libwpg
|
||||
# Date created: 2009-01-09
|
||||
# Whom: Dima Panov <fluffy@Fluffy.Khv.RU>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= libwpg
|
||||
PORTVERSION= 0.2.1
|
||||
PORTREVISION= 2
|
||||
PORTVERSION= 0.2.2
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= fluffy@FreeBSD.org
|
||||
COMMENT= Library and tools to work with WordPerfect Graphics (WPG) files
|
||||
|
||||
LICENSE= LGPL20
|
||||
LICENSE= LGPL21 MPL
|
||||
LICENSE_COMB= dual
|
||||
|
||||
LIB_DEPENDS= wpd-0.9:${PORTSDIR}/textproc/libwpd
|
||||
|
||||
@ -28,12 +23,11 @@ CONFIGURE_ARGS= --disable-werror
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
PORTDOCS= *
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
|
||||
PORTDOCS= *
|
||||
.else
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -E '/^SUBDIRS = /s/docs//g' ${WRKSRC}/Makefile.in
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (libwpg-0.2.1.tar.bz2) = a0bc8854af5affbcf6f91731d867163b96c4991220f8e3b28b9d49ca3cfba169
|
||||
SIZE (libwpg-0.2.1.tar.bz2) = 335521
|
||||
SHA256 (libwpg-0.2.2.tar.bz2) = ccb8907bdd78e2a094204a745431d6bcfdba475354ed3caba36aaea6c9d88626
|
||||
SIZE (libwpg-0.2.2.tar.bz2) = 376802
|
||||
|
@ -1,38 +0,0 @@
|
||||
--- src/lib/WPG2Parser.cpp
|
||||
+++ src/lib/WPG2Parser.cpp
|
||||
@@ -820,7 +820,7 @@ void WPG2Parser::handleDPPenForeColor()
|
||||
unsigned char red = (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
unsigned char green = (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
unsigned char blue = (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
- unsigned char alpha = 0xff - (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
+ unsigned char alpha = 0xff - ((m_doublePrecision) ? readU16()>>8 : readU8());
|
||||
|
||||
m_style.insert("svg:stroke-color", libwpg::WPGColor(red, green, blue, alpha).getColorString());
|
||||
m_style.insert("svg:stroke-opacity", libwpg::WPGColor(red, green, blue, alpha).getOpacity(), WPX_PERCENT);
|
||||
@@ -860,7 +860,7 @@ void WPG2Parser::handleDPPenBackColor()
|
||||
unsigned int red = (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
unsigned int green = (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
unsigned int blue = (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
- unsigned int alpha = 0xff - (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
+ unsigned int alpha = 0xff - ((m_doublePrecision) ? readU16()>>8 : readU8());
|
||||
|
||||
m_penBackColor = libwpg::WPGColor(red, green, blue, alpha);
|
||||
|
||||
@@ -1156,7 +1156,7 @@ void WPG2Parser::handleDPBrushForeColor()
|
||||
unsigned char red = (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
unsigned char green = (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
unsigned char blue = (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
- unsigned char alpha = 0xff - (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
+ unsigned char alpha = 0xff - ((m_doublePrecision) ? readU16()>>8 : readU8());
|
||||
WPG_DEBUG_MSG((" Foreground color (RGBA): %d %d %d %d\n", red, green, blue, alpha));
|
||||
|
||||
m_brushForeColor = libwpg::WPGColor(red, green, blue, alpha);
|
||||
@@ -1181,7 +1181,7 @@ void WPG2Parser::handleDPBrushForeColor()
|
||||
unsigned char red = (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
unsigned char green = (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
unsigned char blue = (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
- unsigned char alpha = 0xff - (m_doublePrecision) ? readU16()>>8 : readU8();
|
||||
+ unsigned char alpha = 0xff - ((m_doublePrecision) ? readU16()>>8 : readU8());
|
||||
libwpg::WPGColor color(red, green, blue, alpha);
|
||||
colors.push_back(color);
|
||||
WPG_DEBUG_MSG((" Color #%d (RGBA): %d %d %d %d\n", i+1, red, green, blue, alpha));
|
Loading…
Reference in New Issue
Block a user