pkgsrc/graphics/aview/Makefile
jlam d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00

53 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2003/01/28 22:03:22 jlam Exp $
#
DISTNAME= aview-1.3.0rc1
PKGNAME= aview-1.3.0.1
PKGREVISION= 2
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]*
WRKSRC= ${WRKDIR}/aview-1.3.0
PLIST_SRC= ${WRKDIR}/PLIST
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_BUILDLINK2= yes
USE_PKGINSTALL= 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/buildlink2.mk"
.include "../../graphics/netpbm/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"