1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/graphics/lazpaint/Makefile
Jose Alonso Cardenas Marquez 9b13efafc0 - Move flavor helpers to right place
Suggestedd by:	mat
2018-08-07 07:45:59 +00:00

50 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= lazpaint
PORTVERSION= 6.4.1
DISTVERSIONPREFIX= v
CATEGORIES= graphics
PKGNAMESUFFIX= ${LAZARUS_PKGNAMESUFFIX}
MAINTAINER= acm@FreeBSD.org
COMMENT= Image editor written in Lazarus
LICENSE= GPLv3
gtk2_CONFLICTS_INSTALL= ${PORTNAME}-qt4 ${PORTNAME}-qt5
qt4_CONFLICTS_INSTALL= ${PORTNAME}-gtk2 ${PORTNAME}-qt5
qt5_CONFLICTS_INSTALL= ${PORTNAME}-gtk2 ${PORTNAME}-qt4
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:8e9d32a:bgracontrols/bgracontrols \
bgrabitmap:bgrabitmap:dffb32a: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
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>