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

Collapse All | Expand All

(-)./Makefile (-6 / +9 lines)
Lines 7-16 Link Here
7
7
8
PORTNAME=	menu
8
PORTNAME=	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/xdg-menu/xdg-menu/${PORTVERSION}
12
PKGNAMEPREFIX=	xdg-
13
PKGNAMEPREFIX=	xdg-
13
DISTNAME=	XDG-Menu-${PORTVERSION}
14
DISTNAME=	XDG-Menu-${DISTVERSION}
14
EXTRACT_SUFX=	.tgz
15
EXTRACT_SUFX=	.tgz
15
16
16
MAINTAINER=	nemysis@gmx.ch
17
MAINTAINER=	nemysis@gmx.ch
Lines 30-40 Link Here
30
ALL_TARGET=
31
ALL_TARGET=
31
NO_BUILD=	yes
32
NO_BUILD=	yes
32
33
33
OPTIONS=	ROX	"Enable ROX panel applet support" no
34
OPTIONS_DEFINE=	ROX
35
ROX_DESC=	Enable ROX panel applet support
36
37
SUB_FILES=	xdg-menu
34
38
35
.include <bsd.port.options.mk>
39
.include <bsd.port.options.mk>
36
40
37
.if defined(WITHOUT_ROX)
41
.if !${PORT_OPTIONS:MROX}
38
post-patch:
42
post-patch:
39
	@${REINPLACE_CMD} -i '' '/if not rox.confirm/,/sys.exit/s/^/#/' ${WRKSRC}/AppRun
43
	@${REINPLACE_CMD} -i '' '/if not rox.confirm/,/sys.exit/s/^/#/' ${WRKSRC}/AppRun
40
	@${ECHO_MSG}
44
	@${ECHO_MSG}
Lines 45-53 Link Here
45
49
46
do-install:
50
do-install:
47
# Scripts
51
# Scripts
48
	@${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\
52
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
49
		./AppRun\n" > ${WRKDIR}/xdg-menu.sh
53
50
	@${INSTALL_SCRIPT} ${WRKDIR}/xdg-menu.sh ${PREFIX}/bin/xdg-menu
51
# Executable and Data
54
# Executable and Data
52
	${MKDIR} ${DATADIR}
55
	${MKDIR} ${DATADIR}
53
	@cd ${WRKSRC} && ${FIND} . | ${CPIO} -pdmu ${DATADIR}
56
	@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