openbsd-ports/devel/lazarus/Makefile
naddy f88a93d598 * Combine and tweak some find(1) invocations.
* Use the -delete operator to remove files.
2020-03-22 18:13:35 +00:00

72 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 2020/03/22 18:13:35 naddy Exp $
BROKEN = build fails fairly often, "EAccessViolation: Access violation"
ONLY_FOR_ARCHS = amd64 i386
COMMENT = Delphi compatible IDE
V = 1.6.4
DISTNAME = lazarus-${V}-0
PKGNAME = lazarus-${V}
REVISION = 2
FPC_V = 3.0.2
CATEGORIES = devel
HOMEPAGE = http://lazarus.freepascal.org/
MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
# GPLv2+ / LGPL / MPL
PERMIT_PACKAGE = Yes
WANTLIB += X11 atk-1.0 c cairo gdk-x11-2.0 gdk_pixbuf-2.0 glib-2.0
WANTLIB += gmodule-2.0 gobject-2.0 gthread-2.0 gtk-x11-2.0 iconv pango-1.0
WANTLIB += pthread
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=lazarus/}
BUILD_DEPENDS = lang/fpc>=${FPC_V}
RUN_DEPENDS = lang/fpc>=${FPC_V} \
x11/gtk+3,-guic \
devel/desktop-file-utils \
devel/gmake \
misc/shared-mime-info
LIB_DEPENDS = converters/libiconv \
x11/gtk+2
MAKE_ENV = PPC_CONFIG_PATH="${WRKDIR}" MKDIRPROG=/bin/mkdir \
ECHO=/bin/echo GINSTALL=/usr/bin/install \
DATE=/bin/date TARPROG=/bin/tar \
FPCDIR="${LOCALBASE}/lib/fpc/${FPC_V}"
.if ${MACHINE_ARCH} == "amd64"
CONFIG = x86_64-openbsd
.else
CONFIG = i386-openbsd
.endif
SUBST_VARS += CONFIG
USE_GMAKE = Yes
NO_TEST = Yes
WRKDIST = ${WRKDIR}/lazarus
post-install:
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/lazarus
find ${PREFIX}/share/lazarus \
-type d -exec chmod ${DIRMODE} {} + -o \
-type f -exec chmod ${SHAREMODE} {} +
cd ${PREFIX}/share/lazarus && \
chown ${BINOWN}:${BINGRP} lazarus startlazarus lazbuild && \
chmod ${BINMODE} lazarus startlazarus lazbuild
find ${PREFIX} -name '*.orig' -delete
cd ${PREFIX}/share/lazarus/components/chmhelp/lhelp/lhelp.app/Contents/MacOS \
&& ln -sf ../../../../lhelp .
.include <bsd.port.mk>