freebsd-ports/x11/xmangekyou/Makefile
2013-03-25 19:14:43 +00:00

41 lines
1.1 KiB
Makefile

# 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= A kaleidoscope on X
USE_XORG= x11 xpm xaw
ALL_TARGET= xmangekyou
MANCOMPRESSED= yes
MAN1= xmangekyou.1
PORTDOCS= COPYRIGHT.euc HISTORY.euc README.euc
PLIST_FILES= bin/xmangekyou lib/X11/XMangekyou/animation.dat
PLIST_DIRS= lib/X11/XMangekyou
.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 ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/xmangekyou.1.gz ${MANPREFIX}/man/man1
@${MKDIR} ${PREFIX}/lib/X11/XMangekyou
${INSTALL_DATA} ${WRKSRC}/animation.dat ${PREFIX}/lib/X11/XMangekyou
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.euc ${DOCSDIR}
.endif
.include <bsd.port.mk>