aboutsummaryrefslogtreecommitdiffstats
path: root/palm/ppmtoTbmp/Makefile
blob: 841e4f9df968446401136f9d4219f6b9b58736ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Jose Marques <noway@nohow.demon.co.uk>
# $FreeBSD$

PORTNAME=   ppmtoTbmp
PORTVERSION=    1.1
PORTREVISION=   4
CATEGORIES= palm graphics
MASTER_SITES=   http://www.isaac.cs.berkeley.edu/pilot/

MAINTAINER= ports@FreeBSD.org
COMMENT=    PPM to Pilot bitmap converter

LIB_DEPENDS=    libnetpbm.so:${PORTSDIR}/graphics/netpbm

LDFLAGS+=   -L${LOCALBASE}/lib
MAKE_ARGS=  CFLAGS="${CFLAGS} -I${LOCALBASE}/include" LDLIBS=-lnetpbm

post-patch:
    @${REINPLACE_CMD} -e '/^#include "ppmcmap.h"/d' ${WRKSRC}/ppmtoTbmp.c

.include <bsd.port.options.mk>

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/ppmtoTbmp ${WRKSRC}/Tbmptopnm \
        ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
    ${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/q?.map ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>