head	1.8;
access;
symbols;
locks; strict;
comment	@# @;


1.8
date	2012.12.31.01.27.48;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2012.12.12.21.31.13;	author svnexp;	state Exp;
branches;
next	1.6;

1.6
date	2012.12.12.21.19.13;	author svnexp;	state Exp;
branches;
next	1.5;

1.5
date	2012.11.17.06.03.26;	author svnexp;	state Exp;
branches;
next	1.4;

1.4
date	2012.08.23.17.14.29;	author madpilot;	state Exp;
branches;
next	1.3;

1.3
date	2012.06.05.15.04.26;	author dhn;	state Exp;
branches;
next	1.2;

1.2
date	2012.05.02.21.50.43;	author pav;	state Exp;
branches;
next	1.1;

1.1
date	2012.04.19.07.11.18;	author acm;	state Exp;
branches;
next	;


desc
@@


1.8
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309679
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309679 | pawel | 2012-12-30 16:46:10 +0000 (Sun, 30 Dec 2012) | 6 lines
## SVN ##
## SVN ## - Fix build [1]
## SVN ## - Remove leading article from COMMENT
## SVN ##
## SVN ## PR:		ports/174554 [1]
## SVN ## Submitted by:	Gonzalez Etxepare <bbtruk@@users.sourceforge.net> (maintainer)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Created by: Beñat Gonzalez Etxepare <bbtruk@@users.sourceforge.net>
# $FreeBSD: head/x11-fm/doublecmd/Makefile 309679 2012-12-30 16:46:10Z pawel $

PORTNAME=	doublecmd
PORTVERSION=	0.5.4
PORTREVISION=	1
CATEGORIES=	x11-fm
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}/Double%20Commander%20Source
DISTNAME=	${PORTNAME}-${PORTVERSION}-src
DISTFILES=	${PORTNAME}-${PORTVERSION}-src.tar.gz ${PORTNAME}-help-0.5.1-src.tar.gz

MAINTAINER=	bbtruk@@users.sourceforge.net
COMMENT=	Total Commander like file manager for the X Window System

BUILD_DEPENDS=	lazbuild:${PORTSDIR}/editors/lazarus \
		fpcres:${PORTSDIR}/lang/fpc-utils

ONLY_FOR_ARCHS=	i386 amd64

MAN1=		${PORTNAME}.1
USE_DOS2UNIX=	yes
DOS2UNIX_REGEX=	.*\.(pas)
USE_FPC=	yes
USE_GNOME=	desktopfileutils
PLIST=		${WRKDIR}/pkg-plist
SUB_FILES=	pkg-message
PROJECT_FILE=	src/doublecmd.lpi
LAZBUILD_CMD=	${LOCALBASE}/bin/lazbuild -d
LAZARUS_DIR=	${LOCALBASE}/share/lazarus
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
DOCSRC=		${WRKDIR}/${PORTNAME}-help-0.5.1

OPTIONS_DEFINE=		DEBUG
OPTIONS_SINGLE=		LCL
OPTIONS_SINGLE_LCL=	GTK2 QT4

GTK2_DESC=		Use gtk20 interface
QT4_DESC=		Use qt4 interface
DEBUG_DESC=		Build with complete symbolic debug information

OPTIONS_DEFAULT=	GTK2

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MGTK2}
USE_FPC+=	gtk2
USE_GNOME=	gtk20 gdkpixbuf
LCL_PLATFORM=	gtk2
BUILD_DEPENDS+=	${LOCALBASE}/share/lazarus/lcl/units/${BUILDNAME}/${LCL_PLATFORM}/interfaces.ppu:${PORTSDIR}/editors/lazarus-lcl-gtk2
.endif

.if ${PORT_OPTIONS:MQT4}
LIB_DEPENDS+=	Qt4Pas:${PORTSDIR}/x11-toolkits/qt4pas
LCL_PLATFORM=	qt
BUILD_DEPENDS+=	${LOCALBASE}/share/lazarus/lcl/units/${BUILDNAME}/${LCL_PLATFORM}/interfaces.ppu:${PORTSDIR}/editors/lazarus-lcl-qt
.endif

.if ${PORT_OPTIONS:MDEBUG}
BUILD_MODE=	Debug
.else
BUILD_MODE=	NoDebug Full Optimizations
.endif

post-patch:
	@@${REINPLACE_CMD} -e 's|%%DOCSDIR%%|${DOCSDIR}|g' ${WRKSRC}/src/dmhelpmanager.pas
	@@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%DATADIR%%|${DATADIR}|g' \
		${WRKSRC}/src/uGlobsPaths.pas
	@@${REINPLACE_CMD} -e 's|.GetSize|.Size|g' ${WRKSRC}/src/platform/uClipboard.pas

do-build:
	@@cd ${WRKSRC}/components && \
		${FIND} * -name *.lpk -exec ${LAZBUILD_CMD} --lazarusdir=${LAZARUS_DIR} --ws=${LCL_PLATFORM} "{}" \;
	@@cd ${WRKSRC} && \
		${LAZBUILD_CMD} --ws=${LCL_PLATFORM} --bm="${BUILD_MODE}" --lazarusdir=${LAZARUS_DIR} ${PROJECT_FILE}

post-build:
	@@${RM} -rf ${DOCSRC}/*/dev-help

pre-install:
	@@${RM} -f ${PLIST}

.for FILE in %%DATADIR%%/doublecmd.ext.example \
	%%DATADIR%%/editor.col %%DATADIR%%/twilight.col %%DATADIR%%/pixmaps.txt \
	%%DATADIR%%/default.bar %%DATADIR%%/multiarc.ini bin/doublecmd \
	share/applications/doublecmd.desktop
	@@${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}

.if ${PORT_OPTIONS:MDOCS}
	@@cd ${DOCSRC} && \
		${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DOCSDIR%%/|' >> ${PLIST} && \
			${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@@dirrm %%DOCSDIR%%/|' >> ${PLIST}
	@@${ECHO} "@@dirrm %%DOCSDIR%%" >> ${PLIST}
.endif

	@@${ECHO_CMD} "@@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true" >> ${PLIST}
	@@${ECHO_CMD} "@@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true" >> ${PLIST}
	@@${ECHO_CMD} "@@dirrmtry share/applications" >> ${PLIST}

do-install:
.for DIRE in language pixmaps sdk
	@@${MKDIR} ${DATADIR}/${DIRE}
	@@cd ${WRKSRC}/${DIRE} && \
		${FIND} * -type d -exec ${MKDIR} "${DATADIR}/${DIRE}/{}" \; && \
			${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/${DIRE}/{}" \;
.endfor

.if ${PORT_OPTIONS:MDOCS}
	@@cd ${DOCSRC} && \
		${FIND} * -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
			${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
.endif

.for FILE in doublecmd.ext.example editor.col twilight.col pixmaps.txt default.bar multiarc.ini
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DATADIR}
.endfor
	${INSTALL_PROGRAM} ${WRKSRC}/doublecmd ${PREFIX}/bin/${PORTNAME}
	@@${MKDIR} ${DESKTOPDIR}
	${INSTALL_DATA} ${WRKSRC}/install/linux/${PORTNAME}.desktop ${DESKTOPDIR}/

post-install:
	-@@update-desktop-database
	${INSTALL_MAN} ${WRKSRC}/install/linux/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.7
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308801
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308801 | acm | 2012-12-12 21:25:00 +0000 (Wed, 12 Dec 2012) | 3 lines
## SVN ##
## SVN ## - Fix build with new version of lazarus. I forgotten add some lines on my previous
## SVN ##   commit
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 2
a2 2
# Created by:	Beñat Gonzalez Etxepare <bbtruk@@users.sourceforge.net>
# $FreeBSD: head/x11-fm/doublecmd/Makefile 308801 2012-12-12 21:25:00Z acm $
d14 1
a14 1
COMMENT=	A Total Commander like file manager for the X Window System
d73 1
a73 2
		${FIND} * -name *.lpk -exec ${LAZBUILD_CMD} --ws=${LCL_PLATFORM} "{}" \;
			--lazarusdir=${LAZARUS_DIR}
@


1.6
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308797
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308797 | acm | 2012-12-12 21:15:58 +0000 (Wed, 12 Dec 2012) | 2 lines
## SVN ##
## SVN ## - Bump PORTREVISION. New lazarus version has been committed
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/x11-fm/doublecmd/Makefile 308797 2012-12-12 21:15:58Z acm $
d30 1
d74 1
d76 1
a76 1
		${LAZBUILD_CMD} --ws=${LCL_PLATFORM} --bm="${BUILD_MODE}" ${PROJECT_FILE}
@


1.5
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:   doublecmd
# Date created:                01 Oct 2011
# Whom:                        Beñat Gonzalez Etxepare <bbtruk@@users.sourceforge.net>
#
# $FreeBSD: head/x11-fm/doublecmd/Makefile 303032 2012-08-23 17:14:29Z madpilot $
#
d6 1
d29 1
a29 1
LAZBUILD_CMD=	${LOCALBASE}/bin/lazbuild
@


1.4
log
@SVN rev 303032 on 2012-08-23 17:14:29Z by madpilot

- Convert to OptionsNG
- Remove ABI version from LIB_DEPENDS
- Add option to compile with debug symbols

PR:		ports/170813
Submitted by:	bbtruk@@users.sourceforge.net (maintainer)
Approved by:	crees, tabthorpe (mentors, implicit)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.3
log
@- Update to 0.5.4

PR:		ports/167278
Submitted by:	Beat Gonzalez Etxepare <bbtruk@@users.sourceforge.net> (maintainer)
@
text
@d36 9
a44 2
OPTIONS=	GTK2	"Use gtk20 interface" on \
		QT4	"Use qt4 interface" off
d48 1
a48 5
.if (defined(WITH_GTK2) && defined(WITH_QT4)) || (!defined(WITH_GTK2) && !defined(WITH_QT4))
IGNORE=		please select one option: QT4 or GTK2
.endif

.if defined(WITH_GTK2)
d55 2
a56 2
.if defined(WITH_QT4)
LIB_DEPENDS+=	Qt4Pas.5:${PORTSDIR}/x11-toolkits/qt4pas
d61 6
d77 1
a77 1
		${LAZBUILD_CMD} --ws=${LCL_PLATFORM} ${PROJECT_FILE}
d108 1
a108 1
.if !defined(NOPORTDOCS)
d127 1
a127 1
.if !defined(NOPORTDOCS)
@


1.2
log
@- Mark BROKEN: does not build

Reported by:	pointyhat
@
text
@d9 1
a9 1
PORTVERSION=	0.5.1
d14 1
a14 1
DISTFILES=	${PORTNAME}-${PORTVERSION}-src.tar.gz ${PORTNAME}-help-${PORTVERSION}-src.tar.gz
d19 2
a20 3
BUILD_DEPENDS=	lazbuild:${PORTSDIR}/editors/lazarus

BROKEN=		does not build
d24 1
d27 1
d34 4
a37 1
DOCSRC=		${WRKDIR}/${PORTNAME}-help-${PORTVERSION}
d41 15
a55 2
.if exists(${LOCALBASE}/bin/lazbuild) && exists(${LOCALBASE}/etc/lazbuild.cfg)
.include "${LOCALBASE}/etc/lazbuild.cfg"
d108 1
d128 2
a129 1
	${INSTALL_DATA} ${WRKSRC}/install/linux/doublecmd.desktop ${PREFIX}/share/applications/doublecmd.desktop
d133 1
@


1.1
log
@- New port: x11-fm/doublecmd

Double Commander is a cross platform open source file manager with two panels
side by side. It is inspired by Total Commander and features some new ideas.

WWW: http://doublecmd.sourceforge.net/

PR:		ports/161459
Submitted by:	Beat Gonzalez Etxepare <bbtruk _ a t _ users.sourceforge.net>
@
text
@d21 2
@

