Import graphics/hppsmtools version 1.1,1
[dports.git] / graphics / hppsmtools / Makefile
1 # New ports collection makefile for:    hppsmtools
2 # Date created:         2 September 1999
3 # Whom:                 Anders Nordby <anders@fix.no>
4 #
5 # $FreeBSD: ports/graphics/hppsmtools/Makefile,v 1.15 2012/11/17 05:58:09 svnexp Exp $
6 #
7
8 PORTNAME=       hppsmtools
9 PORTVERSION=    1.1
10 PORTEPOCH=      1
11 CATEGORIES=     graphics
12 MASTER_SITES=   http://unimut.fsk.uni-heidelberg.de/demi/photosmart/
13
14 MAINTAINER=     ports@FreeBSD.org
15 COMMENT=        Tool for HP PhotoSmart C5340A & Konica Q-EZ digital cameras
16
17 PORTDOCS=       README
18 PLIST_FILES=    bin/psmdel bin/psmdir bin/psmget bin/psmsho
19
20 post-patch:
21         @${REINPLACE_CMD} -e 's|^CC=|#CC=|g ; \
22                  s|-Wall -pedantic|$$(CFLAGS)|g' ${WRKSRC}/Makefile
23         @${REINPLACE_CMD} -e '/typedef unsigned char/d' ${WRKSRC}/exif.h
24         @${REINPLACE_CMD} -e '/<malloc.h>/d' ${WRKSRC}/psm*.c
25
26 do-install:
27 .for file in psmdel psmdir psmget psmsho
28         ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
29 .endfor
30 .if !defined(NOPORTDOCS)
31         @${MKDIR} ${DOCSDIR}
32         ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
33 .endif
34
35 .include <bsd.port.mk>