summaryrefslogtreecommitdiff
path: root/graphics/aview-x11/Makefile
blob: a0b190358fb32c09d45fc9ab9b71e7c3e0168799 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $NetBSD: Makefile,v 1.7 2004/01/03 18:49:42 reed Exp $
#

DISTNAME=	aview-1.3.0rc1
PKGNAME=	aview-x11-1.3.0.1
PKGREVISION=	2
WRKSRC=		${WRKDIR}/aview-1.3.0
CATEGORIES=	graphics converters x11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=aa-project/}

MAINTAINER=	salo@Xtrmntr.org
HOMEPAGE=	http://aa-project.sourceforge.net/aview/
COMMENT=	ASCII Art image viewer with X11 support

CONFLICTS+=	aview-[0-9]*

PLIST_SRC=	${WRKDIR}/PLIST

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
USE_BUILDLINK2=	yes
USE_PKGINSTALL=	yes
USE_X11=	yes

.include "../../mk/bsd.prefs.mk"

.if (${MACHINE_ARCH} == "i386")
FILES_SUBST+= BIN_PROGRAMS="aview aaflip"
.else
FILES_SUBST+= BIN_PROGRAMS="aview"
.endif

pre-configure:
	@${SED} ${FILES_SUBST_SED} ${WRKSRC}/Makefile.in > ${WRKDIR}/Makefile.in
	@${MV} ${WRKDIR}/Makefile.in ${WRKSRC}/

post-install:
	@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/aview/
	${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/aview/
	${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/aview/
	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/doc/aview/
	${INSTALL_DATA} ${WRKSRC}/NEWS ${PREFIX}/share/doc/aview/
	${INSTALL_DATA} ${WRKSRC}/README* ${PREFIX}/share/doc/aview/
	${INSTALL_DATA} ${WRKSRC}/TODO ${PREFIX}/share/doc/aview/
.if (${MACHINE_ARCH} == "i386")
	${INSTALL_PROGRAM} ${WRKSRC}/aaflip ${PREFIX}/bin/
	@${ECHO} bin/aaflip >>${PLIST_SRC}
.endif

.include "../../graphics/aalib-x11/buildlink2.mk"
.include "../../graphics/netpbm/buildlink2.mk"

.include "../../mk/bsd.pkg.mk"