aboutsummaryrefslogtreecommitdiffstats
path: root/palm/ppmtoTbmp/Makefile
blob: 7cc225d621bb9e306a3ea42e918c7ea4814893d2 (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
# New ports collection makefile for:    ppmtoTbmp
# Date created:         30th May 2001
# Whom:                 Jose Marques <noway@nohow.demon.co.uk>
#
# $FreeBSD$
#

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

MAINTAINER= noway@nohow.demon.co.uk

LIB_DEPENDS=    netpbm.1:${PORTSDIR}/graphics/netpbm

post-patch:
    ${PERL} -pi -e "s|^CFLAGS.+|CFLAGS += -I${LOCALBASE}/include|g; \
        s|^LDLIBS =|LDLIBS = -L${LOCALBASE}/lib|g" ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/ppmtoTbmp ${WRKSRC}/Tbmptopnm \
        ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/ppmtoTbmp
    ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ppmtoTbmp
.endif
    ${MKDIR} ${PREFIX}/share/ppmtoTbmp
    ${INSTALL_DATA} ${WRKSRC}/q?.map ${PREFIX}/share/${PORTNAME}

.include <bsd.port.mk>