aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/pngwriter/Makefile
blob: 0580f9eb2c7d38e37fced806c307af4216d86d83 (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
34
35
36
37
38
# ex:ts=8
# Ports collection makefile for:    pngwriter
# Date created:         Nov 7, 2003
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   pngwriter
PORTVERSION=    0.3.7
CATEGORIES= graphics devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    A C++ library for creating PNG images

LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png

USE_REINPLACE=  yes
ALL_TARGET= libpngwriter

post-patch:
    @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
        -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/make.include.linux

do-install:
    ${INSTALL_DATA} ${WRKSRC}/src/pngwriter.h ${PREFIX}/include
    ${INSTALL_DATA} ${WRKSRC}/src/libpngwriter.a ${PREFIX}/lib
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
    @${MKDIR} ${EXAMPLESDIR}
    ${CP} -R ${WRKSRC}/examples/*.cc ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>