aboutsummaryrefslogtreecommitdiffstats
path: root/editors/picpas/Makefile
blob: 04d29799a961d14def9c636b805eeace44fede87 (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
51
52
53
# $FreeBSD$

PORTNAME=   picpas
PORTVERSION=    0.8.8
DISTVERSIONPREFIX=  v
PORTREVISION=   1
CATEGORIES= editors
PKGNAMESUFFIX=  ${LAZARUS_PKGNAMESUFFIX}

MAINTAINER= acm@FreeBSD.org
COMMENT=    Multi-platform Pascal for Microchip PIC16F microcontrollers

LICENSE=    GPLv2

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-registry fcl-xml pasjpeg regexpr \
        rtl-objpas x11
USE_XORG=   x11
DOS2UNIX_REGEX= .*\.([txt]|pas|lpi|txt|lfm)
USE_GITHUB= yes
GH_ACCOUNT= t-edson
GH_PROJECT= PicPas
GH_TAGNAME= cc5d415
GH_TUPLE=   t-edson:MiConfig:a4a988a:miconfig/miconfig \
        t-edson:MisUtils:742eff3:misutils/misutils  \
        t-edson:PicUtils:5f89bdf:picutils/picutils \
        t-edson:SynFacilUtils:2909899:syncfacilutils/syncfacilutils \
        t-edson:UtilsGrilla:07744b9:utilsgrilla/utilsgrilla \
        t-edson:ogEditGraf:328a207:ogeditgraf/ogeeditgraf \
        t-edson:t-Xpres:6665922:txpres/txpres

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

LAZARUS_PROJECT_FILES=  Source/PicPas.lpi
LAZBUILD_ARGS=      -d
LLD_UNSAFE= yes

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

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/PicPas-freebsd ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
    @${MKDIR} ${STAGEDIR}${DATADIR}
    cd ${WRKSRC} && ${COPYTREE_SHARE} "devices10 devices16 devices17 syntax samples temp themes units" ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>