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 327733 2013-09-20 18:35:44Z bapt $
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 NO_STAGE=       yes
19 post-patch:
20         @${REINPLACE_CMD} -e 's|^CC=|#CC=|g ; \
21                  s|-Wall -pedantic|$$(CFLAGS)|g' ${WRKSRC}/Makefile
22         @${REINPLACE_CMD} -e '/typedef unsigned char/d' ${WRKSRC}/exif.h
23         @${REINPLACE_CMD} -e '/<malloc.h>/d' ${WRKSRC}/psm*.c
24
25 .include <bsd.port.options.mk>
26
27 do-install:
28 .for file in psmdel psmdir psmget psmsho
29         ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
30 .endfor
31 .if ${PORT_OPTIONS:MDOCS}
32         @${MKDIR} ${DOCSDIR}
33         ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
34 .endif
35
36 .include <bsd.port.mk>