aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ppminfo
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2007-08-07 18:34:45 +0800
committersat <sat@FreeBSD.org>2007-08-07 18:34:45 +0800
commitf379f04389e539ee274efd23ba0f4c195b123215 (patch)
tree928a9bc364725d9309fed499c5faff636cf0ebde /graphics/ppminfo
parent1b7635c0523d2ea1376ab72981ab7becfc762127 (diff)
downloadfreebsd-ports-gnome-f379f04389e539ee274efd23ba0f4c195b123215.tar.gz
freebsd-ports-gnome-f379f04389e539ee274efd23ba0f4c195b123215.tar.zst
freebsd-ports-gnome-f379f04389e539ee274efd23ba0f4c195b123215.zip
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>
Diffstat (limited to 'graphics/ppminfo')
-rw-r--r--graphics/ppminfo/Makefile32
-rw-r--r--graphics/ppminfo/distinfo3
-rw-r--r--graphics/ppminfo/pkg-descr5
3 files changed, 40 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>
diff --git a/graphics/ppminfo/distinfo b/graphics/ppminfo/distinfo
new file mode 100644
index 000000000000..e9140b3a9a10
--- /dev/null
+++ b/graphics/ppminfo/distinfo
@@ -0,0 +1,3 @@
+MD5 (ppminfo-0.1.tgz) = e5d612f6315ca8dc8a8d37c49c07c341
+SHA256 (ppminfo-0.1.tgz) = fba42574a88b6198697d14ab71720580795c0dabe39fa98354f771e313619258
+SIZE (ppminfo-0.1.tgz) = 7724
diff --git a/graphics/ppminfo/pkg-descr b/graphics/ppminfo/pkg-descr
new file mode 100644
index 000000000000..ae3c8011c2e3
--- /dev/null
+++ b/graphics/ppminfo/pkg-descr
@@ -0,0 +1,5 @@
+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>