freebsd-ports/russian/emkatic/Makefile
2017-03-01 17:52:35 +00:00

62 lines
1.7 KiB
Makefile

# Created by: Andrey Fesenko <andrey@bsdnir.info>
# $FreeBSD$
PORTNAME= emkatic
PORTVERSION= 0.28
PORTREVISION= 2
CATEGORIES= russian emulators
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
BUILD_DEPENDS= lazbuild:editors/lazarus \
fpcres:lang/fpc-utils
USE_FPC= cairo fcl-base fcl-image fcl-json fcl-xml pasjpeg rtl-extra x11
PROJECT_FILE= emkatic.lpi
LAZARUS_VER= 1.6.4
LAZBUILD_CMD= ${LOCALBASE}/bin/lazbuild -d --pcp=${WRKSRC}/tmppcp
LAZARUS_DIR= ${LOCALBASE}/share/lazarus-${LAZARUS_VER}
LCL_UNITS_DIR= ${LAZARUS_DIR}/lcl/units/${BUILDNAME}
PLIST_FILES= bin/${PORTNAME}
PORTDATA= *
PORTDOCS= CHANGELOG.*.txt README.*.txt
OPTIONS_DEFINE= DOCS PORTAUDIO
OPTIONS_SINGLE= GUI
OPTIONS_SINGLE_GUI= GTK2 QT4
OPTIONS_DEFAULT= GTK2 PORTAUDIO
GTK2_DESC= Build with GTK+ 2 interface
QT4_DESC= Build with Qt 4 interface
GTK2_BUILD_DEPENDS= ${LCL_UNITS_DIR}/${LCL_PLATFORM}/interfaces.ppu:editors/lazarus-lcl-gtk2
GTK2_USE= GNOME=gtk20 FPC=gtk2
GTK2_VARS= LCL_PLATFORM=gtk2
QT4_BUILD_DEPENDS= ${LCL_UNITS_DIR}/${LCL_PLATFORM}/interfaces.ppu:editors/lazarus-lcl-qt
QT4_LIB_DEPENDS= libQt4Pas.so:x11-toolkits/qt4pas
QT4_VARS= LCL_PLATFORM=qt
PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
do-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${LAZBUILD_CMD} --ws="${LCL_PLATFORM}" \
--lazarusdir=${LAZARUS_DIR} ${PROJECT_FILE}
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>