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

Collapse All | Expand All

(-)x11-clocks/mlclock/Makefile (-5 / +7 lines)
Lines 1-9 Link Here
1
# New ports collection makefile for:   mlclock
1
# Created by: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
2
# Date created:        December 05 1997
3
# Whom:                Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
4
#
5
# $FreeBSD: head/x11-clocks/mlclock/Makefile 300897 2012-07-14 14:29:18Z beat $
2
# $FreeBSD: head/x11-clocks/mlclock/Makefile 300897 2012-07-14 14:29:18Z beat $
6
#
7
3
8
PORTNAME=	mlclock
4
PORTNAME=	mlclock
9
PORTVERSION=	1.1
5
PORTVERSION=	1.1
Lines 15-25 Link Here
15
COMMENT=	Clock for mlvwm window manager
11
COMMENT=	Clock for mlvwm window manager
16
12
17
WRKSRC=		${WRKDIR}/${PORTNAME}
13
WRKSRC=		${WRKDIR}/${PORTNAME}
14
18
USE_XORG=	x11 xau xdmcp
15
USE_XORG=	x11 xau xdmcp
19
16
20
PLIST_FILES=	bin/mlclock %%DATADIR%%/mlclockrc %%DATADIR%%/mlclockrc-kanji
17
PLIST_FILES=	bin/mlclock %%DATADIR%%/mlclockrc %%DATADIR%%/mlclockrc-kanji
21
PLIST_DIRS=	%%DATADIR%%
18
PLIST_DIRS=	%%DATADIR%%
22
19
20
post-patch:
21
	@${REINPLACE_CMD} -e \
22
		's|^void main|int main| ; \
23
		 s|log|logical|' ${WRKSRC}/mlclock.c
24
23
do-build:
25
do-build:
24
	cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include \
26
	cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include \
25
		-DRCFILE=\".mlclockrc\" mlclock.c -o mlclock \
27
		-DRCFILE=\".mlclockrc\" mlclock.c -o mlclock \

Return to bug 175032