1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/comms/cqrlog/Makefile
Stephen Hurd 7aafab50b7 Fix LoTW export and Preferences
We can't directly patch .lrs files since they use length/value strings.
Instead, patch the form and regenerate the resource file.
2016-04-25 11:08:12 +00:00

73 lines
2.3 KiB
Makefile

# Created by: Stephen Hurd <shurd@FreeBSD.org>
# $FreeBSD$
PORTNAME= cqrlog
PORTVERSION= 2.0.0
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= comms hamradio
MAINTAINER= hamradio@FreeBSD.org
COMMENT= Amateur Radio logging application
LICENSE= GPLv2
BUILD_DEPENDS= lazbuild:editors/lazarus
LIB_DEPENDS= libhamlib.so:comms/hamlib
USE_GITHUB= yes
GH_ACCOUNT= ok2cqr
USES= shebangfix
SHEBANG_FILES= tools/cqrlog-apparmor-fix \
voice_keyer/voice_keyer.sh
USE_FPC= cairo fcl-base fcl-db fcl-image fcl-json fcl-net fcl-web \
fcl-registry rtl-extra fcl-xml mysql numlib openssl pasjpeg x11
WANT_GNOME= yes
ALL_TARGET= ${PORTNAME}
LAZARUS_VER= 1.6.0
LAZARUS_DIR= ${LOCALBASE}/share/lazarus-${LAZARUS_VER}
OPTIONS_SINGLE= LCL
OPTIONS_SINGLE_LCL= GTK2 QT4
OPTIONS_DEFAULT= GTK2
GTK2_USE= fpc=gtk2 gnome=gtk20
GTK2_BUILD_DEPENDS= ${LAZARUS_DIR}/lcl/units/${BUILDNAME}/gtk2/interfaces.ppu:editors/lazarus-lcl-gtk2
GTK2_MAKE_ARGS= PLATFORM=gtk2
QT4_LIB_DEPENDS= libQt4Pas.so:x11-toolkits/qt4pas
QT4_BUILD_DEPENDS= ${LAZARUS_DIR}/lcl/units/${BUILDNAME}/qt/interfaces.ppu:editors/lazarus-lcl-qt
QT4_MAKE_ARGS= PLATFORM=qt
post-extract:
@${RM} -rf ${WRKSRC}/src/lnet/lib/openssl.pas
post-patch:
@${SED} -e s!%%LOCALBASE%%!${LOCALBASE}!g \
-e s!%%MAKE_CMD%%!${MAKE_CMD}!g \
-e s!%%LAZARUSDIR%%!${LAZARUS_DIR}!g \
${FILESDIR}/environmentoptions.xml.in \
> ${WRKSRC}/environmentoptions.xml
${REINPLACE_CMD} -e s!%%LOCALBASE%%!${LOCALBASE}!g \
${WRKSRC}/src/dData.pas ${WRKSRC}/src/dUtils.pas \
${WRKSRC}/src/fLoTWExport.pas ${WRKSRC}/src/fPreferences.pas \
${WRKSRC}/src/fRotControl.pas ${WRKSRC}/src/fTRXControl.pas \
${WRKSRC}/src/fGrayline.pas ${WRKSRC}/help/cwd.html \
${WRKSRC}/help/h1.html ${WRKSRC}/src/fPreferences.pas \
${WRKSRC}/src/fLoTWExport.lrs ${WRKSRC}/src/fPreferences.lfm \
${WRKSRC}/src/fPreferences.lrs ${WRKSRC}/src/fLoTWExport.lfm \
${WRKSRC}/src/cqrlog.lpi
${REINPLACE_CMD} -e s!%%PREFIX%%!${PREFIX}!g \
${WRKSRC}/src/dData.pas ${WRKSRC}/src/fGrayline.pas
${REINPLACE_CMD} -e s!%%LAZARUSDIR%%!${LAZARUS_DIR}!g \
${WRKSRC}/Makefile
${RM} -rf ${WRKSRC}/src/mysql
${LAZARUS_DIR}/tools/lazres ${WRKSRC}/src/fLoTWExport.lrs ${WRKSRC}/src/fLoTWExport.lfm
${LAZARUS_DIR}/tools/lazres ${WRKSRC}/src/fPreferences.lrs ${WRKSRC}/src/fPreferences.lfm
.include <bsd.port.mk>