freebsd-ports/graphics/zgv/Makefile

57 lines
1.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: zgv
# Date created: 2004-04-15
# Whom: Radim Kolar
#
# $FreeBSD$
#
PORTNAME= zgv
PORTVERSION= 5.9
2012-06-01 07:26:28 +02:00
PORTREVISION= 5
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= apps/graphics/viewers/svga
MAINTAINER= ports@FreeBSD.org
COMMENT= Graphics viewer for SVGAlib
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
vga.1:${PORTSDIR}/graphics/svgalib \
2010-02-05 12:46:55 +01:00
jpeg.11:${PORTSDIR}/graphics/jpeg \
2012-06-01 07:26:28 +02:00
png15:${PORTSDIR}/graphics/png
ONLY_FOR_ARCHS= i386
USE_GMAKE= yes
ALL_TARGET= zgv info
MAKE_ENV= ZGV_LIBS="${LDFLAGS}"
BINMODE= 4755
PLIST_FILES= bin/zgv etc/zgvrc.sample
.if !defined(NO_INSTALL_MANPAGES)
MAN1= zgv.1
.endif
.if !defined(NOPORTDOCS)
INFO= zgv
PORTDOCS= NEWS README SECURITY TODO INSTALL
.endif
post-patch:
${RM} ${WRKSRC}/doc/zgv
@${REINPLACE_CMD} -e 's|ZGV_LIBS=|ZGV_LIBS+=|' ${WRKSRC}/src/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/zgv ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/doc/sample.zgvrc ${PREFIX}/etc/zgvrc.sample
.if !defined(NOPORTDOCS)
${INSTALL_DATA} ${WRKSRC}/doc/zgv ${PREFIX}/${INFO_PATH}/zgv.info
${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.if !defined(NO_INSTALL_MANPAGES)
${INSTALL_MAN} ${WRKSRC}/doc/zgv.1 ${MAN1PREFIX}/man/man1
.endif
.include <bsd.port.mk>