Index: head/comms/cqrlog/Makefile =================================================================== --- head/comms/cqrlog/Makefile (revision 414930) +++ head/comms/cqrlog/Makefile (revision 414931) @@ -1,72 +1,73 @@ # Created by: Stephen Hurd # $FreeBSD$ PORTNAME= cqrlog -PORTVERSION= 2.0.0 +PORTVERSION= 2.0.1 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}/help/cwd.html ${WRKSRC}/help/h1.html \ + ${WRKSRC}/src/cqrlog.lpi ${WRKSRC}/src/dData.pas \ + ${WRKSRC}/src/dUtils.pas ${WRKSRC}/src/fLoTWExport.lrs \ + ${WRKSRC}/src/fLoTWExport.pas ${WRKSRC}/src/fLoTWExport.lfm \ + ${WRKSRC}/src/fPreferences.pas ${WRKSRC}/src/fRotControl.pas \ + ${WRKSRC}/src/fTRXControl.pas ${WRKSRC}/src/fGrayline.pas \ + ${WRKSRC}/src/fPreferences.lfm ${WRKSRC}/src/fPreferences.pas \ + ${WRKSRC}/src/fPreferences.lrs + ${REINPLACE_CMD} -e s!%%DATADIR%%!${DATADIR}!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 + ${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 Index: head/comms/cqrlog/distinfo =================================================================== --- head/comms/cqrlog/distinfo (revision 414930) +++ head/comms/cqrlog/distinfo (revision 414931) @@ -1,2 +1,2 @@ -SHA256 (ok2cqr-cqrlog-v2.0.0_GH0.tar.gz) = f3c324b3cdb9f0c7a8e9efea05a1776854a0ca4707da52a2dfe99fce251bf860 -SIZE (ok2cqr-cqrlog-v2.0.0_GH0.tar.gz) = 7894125 +SHA256 (ok2cqr-cqrlog-v2.0.1_GH0.tar.gz) = 17eaa17820e668eb21bc8ac75199aac5aa7ab0725b58b77ad3a86e09145d7977 +SIZE (ok2cqr-cqrlog-v2.0.1_GH0.tar.gz) = 7899762 Index: head/comms/cqrlog/files/patch-src_dData.pas =================================================================== --- head/comms/cqrlog/files/patch-src_dData.pas (revision 414930) +++ head/comms/cqrlog/files/patch-src_dData.pas (revision 414931) @@ -1,40 +1,94 @@ ---- src/dData.pas.orig 2016-04-20 16:06:15 UTC +--- src/dData.pas.orig 2016-05-07 08:21:24 UTC +++ src/dData.pas -@@ -1278,12 +1278,12 @@ begin +@@ -910,22 +910,22 @@ begin + if DirectoryExistsUTF8(fHomeDir+'members') then + fMembersDir := fHomeDir+'members'+PathDelim + else +- fMembersDir := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+ ++ fMembersDir := ExpandFileNameUTF8('%%DATADIR%%'+ + PathDelim+'members'+PathDelim); + if DirectoryExistsUTF8(fHomeDir+'zipcodes') then + fZipCodeDir := fHomeDir+'zipcodes'+PathDelim + else +- fZipCodeDir := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog')+ ++ fZipCodeDir := ExpandFileNameUTF8('%%DATADIR%%')+ + PathDelim+'zipcodes'+PathDelim; + + if not DirectoryExistsUTF8(fHomeDir+'images') then + CreateDirUTF8(fHomeDir+'images'); + +- fHelpDir := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+ ++ fHelpDir := ExpandFileNameUTF8('%%DATADIR%%'+ + PathDelim+'help'+PathDelim); + +- fShareDir := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+ ++ fShareDir := ExpandFileNameUTF8('%%DATADIR%%'+ + PathDelim); + + if not DirectoryExistsUTF8(fHomeDir + 'lotw') then +@@ -948,7 +948,7 @@ procedure TdmData.PrepareCtyData; + var + s,d : String; + begin +- s := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+PathDelim+'ctyfiles'+PathDelim); ++ s := ExpandFileNameUTF8('%%DATADIR%%'+PathDelim+'ctyfiles'+PathDelim); + d := fHomeDir+'ctyfiles'+PathDelim; + + if not FileExistsUTF8(fHomeDir+'ctyfiles'+PathDelim+'AreaOK1RR.tbl') then +@@ -1016,7 +1016,7 @@ procedure TdmData.PrepareXplanetDir; + var + s,d : String; + begin +- s := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+PathDelim+'xplanet'+PathDelim); ++ s := ExpandFileNameUTF8('%%DATADIR%%'+PathDelim+'xplanet'+PathDelim); + d := fHomeDir+'xplanet'+PathDelim; + if not FileExistsUTF8(d+'geoconfig') then + CopyFile(s+'geoconfig',d+'geoconfig') +@@ -1026,7 +1026,7 @@ procedure TdmData.PrepareVoice_keyerDir; + var + s,d : String; + begin +- s := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+PathDelim+'voice_keyer'+PathDelim); ++ s := ExpandFileNameUTF8('%%DATADIR%%'+PathDelim+'voice_keyer'+PathDelim); + d := fHomeDir+'voice_keyer'+PathDelim; + if not FileExistsUTF8(d+'voice_keyer.sh') then + CopyFile(s+'voice_keyer.sh',d+'voice_keyer.sh') +@@ -1288,12 +1288,12 @@ begin + { - if FileExistsUTF8('/usr/bin/mysqld') then - mysqld := '/usr/bin/mysqld'; - if FileExistsUTF8('/usr/bin/mysqld_safe') then //Fedora - mysqld := '/usr/bin/mysqld_safe'; - if FileExistsUTF8('/usr/sbin/mysqld') then //openSUSE - mysqld := '/usr/sbin/mysqld'; + if FileExistsUTF8('%%LOCALBASE%%/bin/mysqld') then + mysqld := '%%LOCALBASE%%/bin/mysqld'; + if FileExistsUTF8('%%LOCALBASE%%/bin/mysqld_safe') then //Fedora + mysqld := '%%LOCALBASE%%/bin/mysqld_safe'; + if FileExistsUTF8('%%LOCALBASE%%/sbin/mysqld') then //openSUSE + mysqld := '%%LOCALBASE%%/sbin/mysqld'; if mysqld = '' then //don't know where mysqld is, so hopefully will be in $PATH mysqld := 'mysqld'; -@@ -3452,12 +3452,12 @@ var +@@ -3462,12 +3462,12 @@ var l : TStringList; info : String; begin - if FileExistsUTF8('/usr/bin/mysqld') then - Result := '/usr/bin/mysqld'; - if FileExistsUTF8('/usr/bin/mysqld_safe') then //Fedora - Result := '/usr/bin/mysqld_safe'; - if FileExistsUTF8('/usr/sbin/mysqld') then //openSUSE - Result := '/usr/sbin/mysqld'; + if FileExistsUTF8('%%LOCALBASE%%/bin/mysqld') then + Result := '%%LOCALBASE%%/bin/mysqld'; + if FileExistsUTF8('%%LOCALBASE%%/bin/mysqld_safe') then //Fedora + Result := '%%LOCALBASE%%/bin/mysqld_safe'; + if FileExistsUTF8('%%LOCALBASE%%/sbin/mysqld') then //openSUSE + Result := '%%LOCALBASE%%/sbin/mysqld'; if Result = '' then //don't know where mysqld is, so hopefully will be in $PATH Result := 'mysqld' end; Index: head/comms/cqrlog/files/patch-src_fGrayline.pas =================================================================== --- head/comms/cqrlog/files/patch-src_fGrayline.pas (revision 414930) +++ head/comms/cqrlog/files/patch-src_fGrayline.pas (revision 414931) @@ -1,11 +1,11 @@ ---- src/fGrayline.pas.orig 2016-04-20 16:06:15 UTC +--- src/fGrayline.pas.orig 2016-05-07 08:21:24 UTC +++ src/fGrayline.pas @@ -383,7 +383,7 @@ begin RBNSpotList[i].band := ''; ImageFile := dmData.HomeDir+'images'+PathDelim+'grayline.bmp'; if not FileExists(ImageFile) then - ImageFile := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+ -+ ImageFile := ExpandFileNameUTF8('%%PREFIX%%'+PathDelim+'share'+PathDelim+'cqrlog'+ ++ ImageFile := ExpandFileNameUTF8('%%DATADIR%%'+ PathDelim+'images'+PathDelim+'grayline.bmp'); ob:=new(Pgrayline,init(ImageFile)) end;