summaryrefslogtreecommitdiffstats
path: root/graphics/xpx/Makefile
blob: 9a59ff8fcfbd781f051b57d981993b0c80a8f0fe (plain)
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
# Created by: Seiichirou Hiraoka
# $FreeBSD$

PORTNAME=	xpx
PORTVERSION=	1.41
PORTREVISION=	2
CATEGORIES=	graphics
MASTER_SITES=	http://www2s.biglobe.ne.jp/~yav/soft/xpx/
DISTNAME=	${PORTNAME}${PORTVERSION:S/.//}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple pixel editing tool to generate data for KISS

WRKSRC=		${WRKDIR}/${PORTNAME}

USES=		imake
USE_XORG=	x11 xext
XMKMF=		xmkmf

DOCSDIR=	${PREFIX}/share/doc/ja/${PORTNAME}
PORTDOCS=	xpx.doc xpxrc.eg
PLIST_FILES=	bin/xpx

post-patch:
	@${REINPLACE_CMD} -e 's|myname|my_name|g' ${WRKSRC}/magtoppm.c
	@${REINPLACE_CMD} -e '/edit_mode/d' ${WRKSRC}/work.h

pre-configure:
	@(cd ${CONFIGURE_WRKSRC}; ${SH} configure)

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud