openbsd-ports/graphics/pinta/Makefile
2018-06-29 22:16:08 +00:00

44 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 2018/06/29 22:16:17 espie Exp $
V = 1.6
COMMENT = open source drawing/editing program modeled after Paint.NET
DISTNAME = pinta-${V}
CATEGORIES = graphics x11
REVISION = 5
HOMEPAGE = http://pinta-project.com/
# MIT
PERMIT_PACKAGE_CDROM = Yes
# These tarballs have a proper configure. GH checkout does not...
MASTER_SITES = https://github.com/PintaProject/Pinta/releases/download/${V}/
MODULES = lang/mono \
textproc/intltool
BUILD_DEPENDS = devel/mono-addins \
x11/mono-gtk2
RUN_DEPENDS = devel/mono-addins \
devel/desktop-file-utils \
x11/gtk+3,-guic \
x11/mono-gtk2
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_GMAKE = Yes
pre-configure:
@find ${WRKSRC} -name "*.sln" -exec \
sed -i 's/Format Version 10.00/Format Version 11.00/g' {} \;
@find ${WRKSRC} \( -name "*.csproj" -o -name "*.proj" \) -exec \
sed -i 's#ToolsVersion="3.5"#ToolsVersion="4.0"#g; \
s#<TargetFrameworkVersion>.*</TargetFrameworkVersion>##g; \
s#<PropertyGroup>#<PropertyGroup><TargetFrameworkVersion>v4.5</TargetFrameworkVersion>#g; \
s#Mono.Posix, Version.*"#Mono.Posix"#g' {} \;
.include <bsd.port.mk>