freebsd-ports/graphics/ppminfo/Makefile
Andrew Pantyukhin 0a6aba7ed2 Add port graphics/ppminfo:
ppminfo shows details of an ppm-file on the console. It seems this is
the only utility missing from netpbm.

WWW: http://www.vanheusden.com/ppminfo/
Author: Folkert van Heusden <folkert@vanheusden.com>
2007-08-07 10:34:45 +00:00

32 lines
775 B
Makefile

# New ports collection makefile for: ppminfo
# Date created: 7 August 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ppminfo
PORTVERSION= 0.1
CATEGORIES= graphics
MASTER_SITES= http://www.vanheusden.com/ppminfo/ CENKES
EXTRACT_SUFX= .tgz
MAINTAINER= infofarmer@FreeBSD.org
COMMENT= Shows details of a ppm file
LIB_DEPENDS= netpbm.1:${PORTSDIR}/graphics/netpbm
PLIST_FILES= bin/${PORTNAME}
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
MAKE_ENV+= LDFLAGS="${LDFLAGS}"
post-patch:
@${REINPLACE_CMD} 's|min(|MIN(|;s|max(|MAX(|' ${WRKSRC}/pi.c
@${REINPLACE_CMD} 's|-O2||;/^LDFLAGS=/s|=|+=|;\
/^DEBUG=/d' ${WRKSRC}/Makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
.include <bsd.port.mk>