2012-12-30 16:46:10 +00:00
|
|
|
# Created by: Beñat Gonzalez Etxepare <bbtruk@users.sourceforge.net>
|
2012-04-19 07:11:18 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= doublecmd
|
2013-12-29 22:58:32 +00:00
|
|
|
PORTVERSION= 0.5.8
|
2012-04-19 07:11:18 +00:00
|
|
|
CATEGORIES= x11-fm
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/Double%20Commander%20Source
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
2013-10-02 03:24:25 +00:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}-src.tar.gz ${PORTNAME}-help-${HELPVERSION}-src.tar.gz
|
2012-04-19 07:11:18 +00:00
|
|
|
|
|
|
|
MAINTAINER= bbtruk@users.sourceforge.net
|
2012-12-30 16:46:10 +00:00
|
|
|
COMMENT= Total Commander like file manager for the X Window System
|
2012-04-19 07:11:18 +00:00
|
|
|
|
2013-06-09 18:10:45 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2012-06-05 15:04:27 +00:00
|
|
|
BUILD_DEPENDS= lazbuild:${PORTSDIR}/editors/lazarus \
|
|
|
|
fpcres:${PORTSDIR}/lang/fpc-utils
|
2012-05-02 21:50:43 +00:00
|
|
|
|
2012-04-19 07:11:18 +00:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
|
2013-07-04 23:01:34 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2013-12-29 22:58:32 +00:00
|
|
|
USES= dos2unix
|
|
|
|
DOS2UNIX_FILES= src/dmhelpmanager.pas
|
2012-06-05 15:04:27 +00:00
|
|
|
USE_FPC= yes
|
2013-06-11 07:45:34 +00:00
|
|
|
WANT_GNOME= yes
|
2013-07-04 23:01:34 +00:00
|
|
|
|
2012-04-19 07:11:18 +00:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2013-07-04 23:01:34 +00:00
|
|
|
|
2012-04-19 07:11:18 +00:00
|
|
|
PROJECT_FILE= src/doublecmd.lpi
|
2012-12-12 21:15:58 +00:00
|
|
|
LAZBUILD_CMD= ${LOCALBASE}/bin/lazbuild -d
|
2012-12-12 21:25:00 +00:00
|
|
|
LAZARUS_DIR= ${LOCALBASE}/share/lazarus
|
2013-07-04 23:01:34 +00:00
|
|
|
|
2013-10-02 03:24:25 +00:00
|
|
|
HELPVERSION= 0.5.5
|
2012-04-19 07:11:18 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2013-10-02 03:24:25 +00:00
|
|
|
DOCSRC= ${WRKDIR}/${PORTNAME}-help-${HELPVERSION}
|
2012-06-05 15:04:27 +00:00
|
|
|
|
2013-07-04 23:01:34 +00:00
|
|
|
OPTIONS_DEFINE= DOCS DEBUG
|
2012-08-23 17:14:29 +00:00
|
|
|
OPTIONS_SINGLE= LCL
|
|
|
|
OPTIONS_SINGLE_LCL= GTK2 QT4
|
2013-10-02 03:24:25 +00:00
|
|
|
OPTIONS_GROUP= WCX WDX WFX WLX DSX
|
|
|
|
WCX_DESC= Packer plugins
|
|
|
|
WDX_DESC= Content plugins
|
|
|
|
WFX_DESC= File sytem plugins
|
|
|
|
WLX_DESC= Lister plugins
|
|
|
|
DSX_DESC= Search plugins
|
|
|
|
OPTIONS_GROUP_WCX= WCX_CPIO \
|
|
|
|
WCX_DEB \
|
|
|
|
WCX_LZMA \
|
|
|
|
WCX_RPM \
|
|
|
|
WCX_UNRAR \
|
|
|
|
WCX_ZIP
|
|
|
|
OPTIONS_GROUP_WDX= WDX_RPM \
|
|
|
|
WDX_DEB \
|
|
|
|
WDX_SVN \
|
|
|
|
WDX_XPI \
|
|
|
|
WDX_SCRIPTS
|
|
|
|
OPTIONS_GROUP_WFX= WFX_FTP \
|
|
|
|
WFX_SAMBA
|
|
|
|
OPTIONS_GROUP_WLX= WLX_MPLAYER
|
|
|
|
OPTIONS_GROUP_DSX= DSX_LOCATE
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT= GTK2 \
|
|
|
|
WCX_CPIO \
|
|
|
|
WCX_DEB \
|
|
|
|
WCX_LZMA \
|
|
|
|
WCX_RPM \
|
2013-12-29 22:58:32 +00:00
|
|
|
WCX_UNRAR \
|
|
|
|
WCX_ZIP \
|
2013-10-02 03:24:25 +00:00
|
|
|
WDX_RPM \
|
|
|
|
WDX_DEB \
|
|
|
|
WDX_SVN \
|
|
|
|
WDX_SCRIPTS \
|
|
|
|
WDX_XPI \
|
2013-12-29 22:58:32 +00:00
|
|
|
WFX_FTP \
|
|
|
|
WFX_SAMBA \
|
2013-10-02 03:24:25 +00:00
|
|
|
DSX_LOCATE
|
2012-08-23 17:14:29 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2012-06-05 15:04:27 +00:00
|
|
|
|
2012-08-23 17:14:29 +00:00
|
|
|
.if ${PORT_OPTIONS:MGTK2}
|
2012-06-05 15:04:27 +00:00
|
|
|
USE_FPC+= gtk2
|
2013-06-11 07:45:34 +00:00
|
|
|
USE_GNOME= gtk20 gdkpixbuf
|
2012-06-05 15:04:27 +00:00
|
|
|
LCL_PLATFORM= gtk2
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/share/lazarus/lcl/units/${BUILDNAME}/${LCL_PLATFORM}/interfaces.ppu:${PORTSDIR}/editors/lazarus-lcl-gtk2
|
|
|
|
.endif
|
|
|
|
|
2012-08-23 17:14:29 +00:00
|
|
|
.if ${PORT_OPTIONS:MQT4}
|
|
|
|
LIB_DEPENDS+= Qt4Pas:${PORTSDIR}/x11-toolkits/qt4pas
|
2012-06-05 15:04:27 +00:00
|
|
|
LCL_PLATFORM= qt
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/share/lazarus/lcl/units/${BUILDNAME}/${LCL_PLATFORM}/interfaces.ppu:${PORTSDIR}/editors/lazarus-lcl-qt
|
2012-04-19 07:11:18 +00:00
|
|
|
.endif
|
|
|
|
|
2013-10-02 03:24:25 +00:00
|
|
|
.if ${PORT_OPTIONS:MWCX_UNRAR}
|
|
|
|
LIB_DEPENDS+= unrar:${PORTSDIR}/archivers/libunrar
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MWFX_SAMBA}
|
|
|
|
LIB_DEPENDS+= smbclient:${PORTSDIR}/net/samba-libsmbclient
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MWLX_MPLAYER}
|
|
|
|
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
|
|
|
|
.endif
|
|
|
|
|
2012-08-23 17:14:29 +00:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
|
|
BUILD_MODE= Debug
|
|
|
|
.else
|
|
|
|
BUILD_MODE= NoDebug Full Optimizations
|
|
|
|
.endif
|
|
|
|
|
2013-07-04 23:01:34 +00:00
|
|
|
pre-patch:
|
|
|
|
${TR} '\r' '\n' < ${WRKSRC}/src/uGlobsPaths.pas > ${WRKSRC}/src/uGlobsPaths.pas.unix
|
|
|
|
${MV} ${WRKSRC}/src/uGlobsPaths.pas.unix ${WRKSRC}/src/uGlobsPaths.pas
|
|
|
|
|
2012-04-19 07:11:18 +00:00
|
|
|
post-patch:
|
2013-07-04 23:01:34 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|%%DOCSDIR%%|${DOCSDIR}|g' -e 's|%%DATADIR%%|${DATADIR}|g' \
|
2012-04-19 07:11:18 +00:00
|
|
|
${WRKSRC}/src/uGlobsPaths.pas
|
2013-10-02 03:24:25 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/plugins/wlx/WlxMplayer/src/wlxMplayer.lpr
|
2012-04-19 07:11:18 +00:00
|
|
|
|
|
|
|
do-build:
|
2013-07-04 23:01:34 +00:00
|
|
|
.for FILE in chsdet/chsdet.lpk CmdLine/cmdbox.lpk dcpcrypt/dcpcrypt.lpk \
|
|
|
|
doublecmd/doublecmd_common.lpk KASToolBar/kascomp.lpk \
|
|
|
|
viewer/viewerpackage.lpk gifanim/pkg_gifanim.lpk \
|
|
|
|
ZVDateTimeCtrls/zvdatetimectrls.lpk
|
2012-04-19 07:11:18 +00:00
|
|
|
@cd ${WRKSRC}/components && \
|
2013-07-04 23:01:34 +00:00
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "${FILE}"
|
|
|
|
.endfor
|
|
|
|
|
2013-10-02 03:24:25 +00:00
|
|
|
.if ${PORT_OPTIONS:MWCX_CPIO}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "wcx/cpio/src/cpio.lpi"
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_DEB}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "wcx/deb/src/deb.lpi"
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_LZMA}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "wcx/lzma/src/lzma.lpi"
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_RPM}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "wcx/rpm/src/rpm.lpi"
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_UNRAR}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "wcx/unrar/src/unrar.lpi"
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_ZIP}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "wcx/zip/src/Zip.lpi"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MWDX_RPM}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "wdx/rpm_wdx/src/rpm_wdx.lpi"
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWDX_DEB}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "wdx/deb_wdx/src/deb_wdx.lpi"
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWDX_SVN}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "wdx/svn_wdx/src/svn_wdx.lpi"
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWDX_XPI}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "wdx/xpi_wdx/src/xpi_wdx.lpi"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MWFX_FTP}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "wfx/ftp/src/ftp.lpi"
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWFX_SAMBA}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "wfx/samba/src/samba.lpi"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MWLX_MPLAYER}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "wlx/WlxMplayer/src/wlxMplayer.lpi"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDSX_LOCATE}
|
|
|
|
@cd ${WRKSRC}/plugins && \
|
|
|
|
${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "dsx/DSXLocate/src/DSXLocate.lpi"
|
|
|
|
.endif
|
|
|
|
|
2012-04-19 07:11:18 +00:00
|
|
|
@cd ${WRKSRC} && \
|
2012-12-12 21:25:00 +00:00
|
|
|
${LAZBUILD_CMD} --ws=${LCL_PLATFORM} --bm="${BUILD_MODE}" --lazarusdir=${LAZARUS_DIR} ${PROJECT_FILE}
|
2012-04-19 07:11:18 +00:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
@${RM} -rf ${DOCSRC}/*/dev-help
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${RM} -f ${PLIST}
|
|
|
|
|
2013-10-02 03:24:25 +00:00
|
|
|
.if ${PORT_OPTIONS:MWCX_CPIO}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/wcx/cpio/cpio.wcx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wcx/cpio" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_DEB}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/wcx/deb/deb.wcx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wcx/deb" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_LZMA}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/wcx/lzma/lzma.wcx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wcx/lzma" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_RPM}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/wcx/rpm/rpm.wcx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wcx/rpm" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_UNRAR}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/wcx/unrar/unrar.wcx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wcx/unrar" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_ZIP}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/wcx/zip/zip.wcx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wcx/zip" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MWDX_RPM}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/wdx/rpm_wdx/rpm_wdx.wdx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wdx/rpm_wdx" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWDX_DEB}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/wdx/deb_wdx/deb_wdx.wdx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wdx/deb_wdx" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWDX_SVN}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/wdx/svn_wdx/svn_wdx.wdx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wdx/svn_wdx" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWDX_XPI}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/wdx/xpi_wdx/xpi_wdx.wdx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wdx/xpi_wdx" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWDX_SCRIPTS}
|
|
|
|
@cd ${WRKSRC}/plugins/wdx/scripts && \
|
|
|
|
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/plugins/wdx/scripts/|' >> ${PLIST} && \
|
|
|
|
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/plugins/wdx/scripts/|' >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wdx/scripts" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MWFX_FTP}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/wfx/ftp/ftp.wfx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wfx/ftp" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWFX_SAMBA}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/wfx/samba/samba.wfx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wfx/samba" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MWLX_MPLAYER}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/wlx/wlxmplayer/wlxmplayer.wlx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wlx/wlxmplayer" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDSX_LOCATE}
|
|
|
|
@${ECHO_CMD} "%%DATADIR%%/plugins/dsx/dsxlocate/dsxlocate.dsx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/dsx/dsxlocate" >> ${PLIST}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wcx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wdx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wfx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/wlx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins/dsx" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/plugins" >> ${PLIST}
|
|
|
|
|
2013-07-04 23:01:34 +00:00
|
|
|
.for FILE in %%DATADIR%%/doublecmd.ext.example %%DATADIR%%/pixmaps.txt \
|
|
|
|
%%DATADIR%%/multiarc.ini bin/doublecmd share/applications/doublecmd.desktop \
|
2013-10-02 03:24:25 +00:00
|
|
|
share/pixmaps/doublecmd.png share/pixmaps/doublecmd.xpm \
|
|
|
|
%%DATADIR%%/doublecmd.xml
|
2012-04-19 07:11:18 +00:00
|
|
|
@${ECHO_CMD} ${FILE} >> ${PLIST}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
@cd ${WRKSRC}/language && \
|
|
|
|
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/language/|' >> ${PLIST} && \
|
|
|
|
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/language/|' >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/language" >> ${PLIST}
|
|
|
|
|
|
|
|
@cd ${WRKSRC}/pixmaps && \
|
|
|
|
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/pixmaps/|' >> ${PLIST} && \
|
|
|
|
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/pixmaps/|' >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/pixmaps" >> ${PLIST}
|
|
|
|
|
|
|
|
@cd ${WRKSRC}/sdk && \
|
|
|
|
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/sdk/|' >> ${PLIST} && \
|
|
|
|
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/sdk/|' >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%/sdk" >> ${PLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
|
|
|
|
|
2013-12-29 22:58:32 +00:00
|
|
|
@${ECHO_CMD} "man/man1/doublecmd.1.gz" >> ${PLIST}
|
|
|
|
|
2012-04-19 07:11:18 +00:00
|
|
|
do-install:
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wcx
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wdx
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wfx
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wlx
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/dsx
|
2013-10-02 03:24:25 +00:00
|
|
|
.if ${PORT_OPTIONS:MWCX_CPIO}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wcx/cpio
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/wcx/cpio/lib/cpio.wcx ${STAGEDIR}${DATADIR}/plugins/wcx/cpio/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_DEB}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wcx/deb
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/wcx/deb/lib/deb.wcx ${STAGEDIR}${DATADIR}/plugins/wcx/deb/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_LZMA}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wcx/lzma/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/wcx/lzma/lib/lzma.wcx ${STAGEDIR}${DATADIR}/plugins/wcx/lzma/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_RPM}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wcx/rpm/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/wcx/rpm/lib/rpm.wcx ${STAGEDIR}${DATADIR}/plugins/wcx/rpm/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_UNRAR}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wcx/unrar/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/wcx/unrar/lib/unrar.wcx ${STAGEDIR}${DATADIR}/plugins/wcx/unrar/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWCX_ZIP}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wcx/zip/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/wcx/zip/lib/zip.wcx ${STAGEDIR}${DATADIR}/plugins/wcx/zip/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MWDX_RPM}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wdx/rpm_wdx/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/wdx/rpm_wdx/lib/rpm_wdx.wdx ${STAGEDIR}${DATADIR}/plugins/wdx/rpm_wdx/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWDX_DEB}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wdx/deb_wdx/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/wdx/deb_wdx/lib/deb_wdx.wdx ${STAGEDIR}${DATADIR}/plugins/wdx/deb_wdx/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWDX_SVN}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wdx/svn_wdx/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/wdx/svn_wdx/lib/svn_wdx.wdx ${STAGEDIR}${DATADIR}/plugins/wdx/svn_wdx/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWDX_XPI}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wdx/xpi_wdx/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/wdx/xpi_wdx/lib/xpi_wdx.wdx ${STAGEDIR}${DATADIR}/plugins/wdx/xpi_wdx/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWDX_SCRIPTS}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wdx/scripts/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/plugins/wdx/scripts/* ${STAGEDIR}${DATADIR}/plugins/wdx/scripts/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MWFX_FTP}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wfx/ftp/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/wfx/ftp/lib/ftp.wfx ${STAGEDIR}${DATADIR}/plugins/wfx/ftp/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MWFX_SAMBA}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wfx/samba/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/wfx/samba/lib/samba.wfx ${STAGEDIR}${DATADIR}/plugins/wfx/samba/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MWLX_MPLAYER}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/wlx/wlxmplayer/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/wlx/WlxMplayer/lib/wlxmplayer.wlx ${STAGEDIR}${DATADIR}/plugins/wlx/wlxmplayer/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDSX_LOCATE}
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/plugins/dsx/dsxlocate/
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/plugins/dsx/DSXLocate/lib/dsxlocate.dsx ${STAGEDIR}${DATADIR}/plugins/dsx/dsxlocate/
|
2013-10-02 03:24:25 +00:00
|
|
|
.endif
|
|
|
|
|
2012-04-19 07:11:18 +00:00
|
|
|
.for DIRE in language pixmaps sdk
|
2013-12-29 22:58:32 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/${DIRE}
|
2012-04-19 07:11:18 +00:00
|
|
|
@cd ${WRKSRC}/${DIRE} && \
|
2013-12-29 22:58:32 +00:00
|
|
|
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/${DIRE}/{}" \; && \
|
|
|
|
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/${DIRE}/{}" \;
|
2012-04-19 07:11:18 +00:00
|
|
|
.endfor
|
|
|
|
|
2013-10-02 03:24:25 +00:00
|
|
|
.for FILE in doublecmd.ext.example pixmaps.txt multiarc.ini install/linux/doublecmd.xml
|
2013-12-29 22:58:32 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DATADIR}
|
2012-04-19 07:11:18 +00:00
|
|
|
.endfor
|
2013-07-04 23:01:34 +00:00
|
|
|
|
|
|
|
.for FILE in doublecmd.png install/linux/doublecmd.xpm
|
2013-12-29 22:58:32 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${PREFIX}/share/pixmaps/
|
2013-07-04 23:01:34 +00:00
|
|
|
.endfor
|
|
|
|
|
2013-12-29 22:58:32 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/doublecmd ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DESKTOPDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/install/linux/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/install/linux/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
|
2012-04-19 07:11:18 +00:00
|
|
|
|
|
|
|
post-install:
|
2013-07-04 23:01:34 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@cd ${DOCSRC} && \
|
2013-12-29 22:58:32 +00:00
|
|
|
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
|
|
|
|
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DOCSDIR}/{}" \;
|
2013-07-04 23:01:34 +00:00
|
|
|
.endif
|
2012-04-19 07:11:18 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|