aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/lazpaint/Makefile
blob: fd6688c35b46c96efff68de462297ca610c553db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $FreeBSD$

PORTNAME=   lazpaint
PORTVERSION=    6.4.1
DISTVERSIONPREFIX=  v
PORTREVISION=   2
CATEGORIES= graphics
PKGNAMESUFFIX=  ${LAZARUS_PKGNAMESUFFIX}

MAINTAINER= acm@FreeBSD.org
COMMENT=    Image editor written in Lazarus

LICENSE=    GPLv3

gtk2_CONFLICTS_INSTALL= ${PORTNAME}-qt5
qt5_CONFLICTS_INSTALL=  ${PORTNAME}-gtk2

USES=       dos2unix fpc lazarus:flavors
USE_FPC=    chm fcl-base fcl-image fcl-json fcl-net fcl-web fcl-xml \
        opengl openssl pasjpeg rtl-extra rtl-objpas x11
USE_XORG=   x11
DOS2UNIX_REGEX= .*\.([txt]|pas|lpi|txt)
USE_GITHUB= yes
GH_ACCOUNT= bgrabitmap
GH_PROJECT= lazpaint
GH_TAGNAME= 4fc4381
GH_TUPLE=   bgrabitmap:bgracontrols:ec090e5:bgracontrols/bgracontrols \
        bgrabitmap:bgrabitmap:cd2d856:bgrabitmap/bgrabitmapnew

USE_FPC_gtk2=   cairo
USE_GNOME_gtk2= cairo
USE_FPC+=   ${USE_FPC_${FLAVOR}}
USE_GNOME+= ${USE_GNOME_${FLAVOR}}

LAZARUS_PROJECT_FILES=  bgrabitmapnew/bgrabitmap/bgrabitmappack.lpk
LAZARUS_PROJECT_FILES+= bgracontrols/bgracontrols.lpk
LAZARUS_PROJECT_FILES+= lazpaint/lazpaint.lpi

LAZBUILD_ARGS=  -d
LLD_UNSAFE= yes

post-patch:
    ${REINPLACE_CMD} 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/lazpaint/utranslation.pas

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/lazpaint/release/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    @${MKDIR} ${STAGEDIR}${DATADIR}
    cd ${WRKSRC}/lazpaint/release && ${COPYTREE_SHARE} "i18n models" ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>