View | Details | Raw Unified | Return to bug 170755 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-9 / +11 lines)
Lines 5-16 Link Here
5
# $FreeBSD: ports/misc/xdg-menu/Makefile,v 1.1 2012/05/18 04:40:24 miwi Exp $
5
# $FreeBSD: ports/misc/xdg-menu/Makefile,v 1.1 2012/05/18 04:40:24 miwi Exp $
6
#
6
#
7
7
8
PORTNAME=	menu
8
PORTNAME=	xdg-menu
9
PORTVERSION=	1.5
9
PORTVERSION=	1.5
10
PORTREVISION=	1
10
CATEGORIES=	misc
11
CATEGORIES=	misc
11
MASTER_SITES=	SF/xdg-menu/xdg-menu/${PORTVERSION}
12
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
12
PKGNAMEPREFIX=	xdg-
13
DISTNAME=	XDG-Menu-${DISTVERSION}
13
DISTNAME=	XDG-Menu-${PORTVERSION}
14
EXTRACT_SUFX=	.tgz
14
EXTRACT_SUFX=	.tgz
15
15
16
MAINTAINER=	nemysis@gmx.ch
16
MAINTAINER=	nemysis@gmx.ch
Lines 30-40 Link Here
30
ALL_TARGET=
30
ALL_TARGET=
31
NO_BUILD=	yes
31
NO_BUILD=	yes
32
32
33
OPTIONS=	ROX	"Enable ROX panel applet support" no
33
OPTIONS_DEFINE=	ROX
34
ROX_DESC=	Enable ROX panel applet support
35
36
SUB_FILES=	${PORTNAME}
34
37
35
.include <bsd.port.options.mk>
38
.include <bsd.port.options.mk>
36
39
37
.if defined(WITHOUT_ROX)
40
.if !${PORT_OPTIONS:MROX}
38
post-patch:
41
post-patch:
39
	@${REINPLACE_CMD} -i '' '/if not rox.confirm/,/sys.exit/s/^/#/' ${WRKSRC}/AppRun
42
	@${REINPLACE_CMD} -i '' '/if not rox.confirm/,/sys.exit/s/^/#/' ${WRKSRC}/AppRun
40
	@${ECHO_MSG}
43
	@${ECHO_MSG}
Lines 45-53 Link Here
45
48
46
do-install:
49
do-install:
47
# Scripts
50
# Scripts
48
	@${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\
51
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
49
		./AppRun\n" > ${WRKDIR}/xdg-menu.sh
52
50
	@${INSTALL_SCRIPT} ${WRKDIR}/xdg-menu.sh ${PREFIX}/bin/xdg-menu
51
# Executable and Data
53
# Executable and Data
52
	${MKDIR} ${DATADIR}
54
	${MKDIR} ${DATADIR}
53
	@cd ${WRKSRC} && ${FIND} . | ${CPIO} -pdmu ${DATADIR}
55
	@cd ${WRKSRC} && ${FIND} . | ${CPIO} -pdmu ${DATADIR}
(-)./files/xdg-menu.in (+7 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
5
echo "XDG-Menu: Starting up..."
6
cd "%%DATADIR%%"
7
./AppRun

Return to bug 170755