Tweak graphics/hppsmtools version 1.1,1
[dports.git] / graphics / hppsmtools / Makefile
1 # Created by: Anders Nordby <anders@fix.no>
2 # $FreeBSD: graphics/hppsmtools/Makefile 315177 2013-03-24 22:51:18Z beech $
3
4 PORTNAME=       hppsmtools
5 PORTVERSION=    1.1
6 PORTEPOCH=      1
7 CATEGORIES=     graphics
8 MASTER_SITES=   http://unimut.fsk.uni-heidelberg.de/demi/photosmart/
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        Tool for HP PhotoSmart C5340A & Konica Q-EZ digital cameras
12
13 LICENSE=        GPLv2
14
15 PORTDOCS=       README changes.txt
16 PLIST_FILES=    bin/psmdel bin/psmdir bin/psmget bin/psmsho
17
18 post-patch:
19         @${REINPLACE_CMD} -e 's|^CC=|#CC=|g ; \
20                  s|-Wall -pedantic|$$(CFLAGS)|g' ${WRKSRC}/Makefile
21         @${REINPLACE_CMD} -e '/typedef unsigned char/d' ${WRKSRC}/exif.h
22         @${REINPLACE_CMD} -e '/<malloc.h>/d' ${WRKSRC}/psm*.c
23
24 .include <bsd.port.options.mk>
25
26 do-install:
27 .for file in psmdel psmdir psmget psmsho
28         ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
29 .endfor
30 .if ${PORT_OPTIONS:MDOCS}
31         @${MKDIR} ${DOCSDIR}
32         ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
33 .endif
34
35 .include <bsd.port.mk>