blob: 49d30305afc889002cccf887405a43d1945482fc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Created by: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
# $FreeBSD$
PORTNAME= mlclock
PORTVERSION= 1.1
PORTREVISION= 2
CATEGORIES= x11-clocks
MASTER_SITES= http://www2u.biglobe.ne.jp/~y-miyata/mlvwm/
MAINTAINER= ports@FreeBSD.org
COMMENT= Clock for mlvwm window manager
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_XORG= x11 xau xdmcp
PLIST_FILES= bin/mlclock %%DATADIR%%/mlclockrc %%DATADIR%%/mlclockrc-kanji
PLIST_DIRS= %%DATADIR%%
post-patch:
@${REINPLACE_CMD} -e \
's|^void main|int main| ; \
s|log|logical|' ${WRKSRC}/mlclock.c
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include \
-DRCFILE=\".mlclockrc\" mlclock.c -o mlclock \
-L${LOCALBASE}/lib -lX11
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mlclock ${PREFIX}/bin
@${MKDIR} ${DATADIR}
.for i in mlclockrc mlclockrc-kanji
${INSTALL_DATA} ${WRKSRC}/rcfile/${i} ${DATADIR}
.endfor
.include <bsd.port.mk>
|