aboutsummaryrefslogtreecommitdiffstats
path: root/russian/emkatic/Makefile
blob: 64e45206b03fb4f23febc8ba2b1ffce2465671f2 (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
# Created by: Andrey Fesenko <andrey@bsdnir.info>
# $FreeBSD$

PORTNAME=   emkatic
PORTVERSION=    0.36
PORTREVISION=   3
CATEGORIES= russian emulators
PKGNAMESUFFIX=  ${LAZARUS_PKGNAMESUFFIX}
MASTER_SITES=   SF/${PORTNAME}/eMKatic%20Source
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= andrey@bsdnir.info
COMMENT=    Emulator of Elektronika RPN programmable calculator series

LICENSE=    GPLv3+
LICENSE_FILE=   ${WRKSRC}/COPYING.txt

USES=       fpc lazarus:flavors
USE_FPC=    cairo chm fcl-base fcl-image fcl-json fcl-registry fcl-xml \
        pasjpeg regexpr rtl-extra x11
USE_XORG=   x11

LAZARUS_PROJECT_FILES=  emkatic.lpi
LAZBUILD_ARGS=      -d --pcp=${WRKSRC}/tmppcp
LLD_UNSAFE= yes

PLIST_FILES=    bin/${PORTNAME}
PORTDATA=   *
PORTDOCS=   CHANGELOG.*.txt README.*.txt

gtk2_CONFLICTS_INSTALL= ru-${PORTNAME}-qt4 ru-${PORTNAME}-qt5
qt4_CONFLICTS_INSTALL=  ru-${PORTNAME}-gtk2 ru-${PORTNAME}-qt5
qt5_CONFLICTS_INSTALL=  ru-${PORTNAME}-gtk2 ru-${PORTNAME}-qt4

OPTIONS_DEFINE=     DOCS PORTAUDIO
OPTIONS_DEFAULT=    PORTAUDIO

PORTAUDIO_LIB_DEPENDS=  libportaudio.so:audio/portaudio

.if ${FLAVOR:Ugtk2:Mgtk2}
USE_GNOME+= cairo
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>