diff options
author | Andrew Pantyukhin <sat@FreeBSD.org> | 2007-08-07 10:34:45 +0000 |
---|---|---|
committer | Andrew Pantyukhin <sat@FreeBSD.org> | 2007-08-07 10:34:45 +0000 |
commit | 0a6aba7ed21441dea71e6dd30f8b289774426489 (patch) | |
tree | 0fb48fdbbe6a3737bb3a4bd93626b485dd3ca6d9 /graphics/ppminfo/Makefile | |
parent | 124ba4c952a3e4423b9e969802c69bc90a68f5de (diff) |
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>
Notes
Notes:
svn path=/head/; revision=197281
Diffstat (limited to 'graphics/ppminfo/Makefile')
-rw-r--r-- | graphics/ppminfo/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/graphics/ppminfo/Makefile b/graphics/ppminfo/Makefile new file mode 100644 index 000000000000..c6036de8cb4e --- /dev/null +++ b/graphics/ppminfo/Makefile @@ -0,0 +1,32 @@ +# 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> |