aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xmangekyou/Makefile
blob: 7d656b699edc94948e69889d9ae7839f797d5223 (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
38
39
40
41
42
# Created by: Sakai Hiroaki <sakai@miya.ee.kagu.sut.ac.jp>
# $FreeBSD$

PORTNAME=   xmangekyou
PORTVERSION=    2.0.1
PORTREVISION=   3
CATEGORIES= x11
MASTER_SITES=   http://ftp.vector.co.jp/pack/unix/art/anime/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Kaleidoscope on X

USE_XORG=   x11 xpm xaw
ALL_TARGET= xmangekyou

PORTDOCS=   COPYRIGHT.euc HISTORY.euc README.euc
PLIST_FILES=    bin/xmangekyou lib/X11/XMangekyou/animation.dat \
        man/man1/xmangekyou.1.gz
PLIST_DIRS= lib/X11/XMangekyou

OPTIONS_DEFINE= DOCS

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|= /usr/X11R6|= $${PREFIX}|g ; \
         s|gcc |$${CC} |g ; \
         s|-O |$${CFLAGS} |g ; \
         s|-I/usr/X11R6/|-I$${LOCALBASE}/|g ; \
         s|-L/usr/X11R6/|-L$${LOCALBASE}/|g' ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/xmangekyou ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/xmangekyou.1.gz ${STAGEDIR}${MANPREFIX}/man/man1
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/XMangekyou
    ${INSTALL_DATA} ${WRKSRC}/animation.dat ${STAGEDIR}${PREFIX}/lib/X11/XMangekyou
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/*.euc ${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.mk>