blob: 9cf0ab53a4d808abedb51fe8fde977c78055fe09 (
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
55
56
|
# $NetBSD: Makefile,v 1.17 2006/03/09 14:50:31 ghen Exp $
#
DISTNAME= aview-1.3.0rc1
PKGNAME= aview-1.3.0.1
PKGREVISION= 6
CATEGORIES= graphics converters
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aa-project/}
MAINTAINER= salo@Xtrmntr.org
HOMEPAGE= http://aa-project.sourceforge.net/aview/
COMMENT= ASCII Art image viewer
CONFLICTS+= aview-x11-[0-9]*
PLIST_SRC= ${WRKDIR}/PLIST
WRKSRC= ${WRKDIR}/aview-1.3.0
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
.include "../../mk/bsd.prefs.mk"
SUBST_CLASSES+= programs
SUBST_FILES.programs= Makefile.in
SUBST_STAGE.programs= post-patch
.if (${MACHINE_ARCH} == "i386")
SUBST_SED.programs+= -e 's,@BIN_PROGRAMS@,aview aaflip,g'
.else
SUBST_SED.programs+= -e 's,@BIN_PROGRAMS@,aview,g'
.endif
REPLACE_INTERPRETER+= bash
_REPLACE.bash.old= /bin/bash
_REPLACE.bash.new+= ${SH:Q}
_REPLACE_FILES.bash= asciiview
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/buildlink3.mk"
.include "../../graphics/netpbm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|