freebsd-ports/graphics/scr2png/Makefile
Norikatsu Shigemura 2d12ee7f26 Adaptive dependency on graphics/gd, graphics/gd-nox11.
Requested by:	ceri
2003-07-16 04:32:01 +00:00

40 lines
829 B
Makefile

# New ports collection makefile for: scr2png
# Date created: 18 May 2001
# Whom: nik
#
# $FreeBSD$
#
PORTNAME= scr2png
PORTVERSION= 1.1
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= nik
NO_WRKSUBDIR= yes
MAINTAINER= nik@freebsd.org
COMMENT= Converts the output of "vidcontrol -p" to PNG
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_X11)
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd2
.else
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd-nox11
.else
.endif
USE_REINPLACE= yes
MAN1= scr2png.1
MANCOMPRESSED= yes
post-extract:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|<gd/gd\.h>|<gd.h>|' ${WRKSRC}/scr2png.c
do-install:
@cd ${WRKSRC}; ${MAKE} BINDIR=${PREFIX}/bin SHAREDIR=${PREFIX} install
.include <bsd.port.post.mk>