aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/pngwriter/Makefile
blob: 6443e203daae873fa21b23ca377104c8aecc6a96 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ex:ts=8
# Ports collection makefile for:    pngwriter
# Date created:         Nov 7, 2003
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   pngwriter
PORTVERSION=    0.5.4
PORTREVISION=   2
CATEGORIES= graphics devel
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

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

BUILD_DEPENDS=  pkg-config>0:${PORTSDIR}/devel/pkg-config
LIB_DEPENDS=    png15:${PORTSDIR}/graphics/png \
        freetype.9:${PORTSDIR}/print/freetype2

BUILD_WRKSRC=   ${WRKDIR}/${DISTNAME}/src

CXXFLAGS+=  `pkg-config --cflags freetype2 libpng15` -I${LOCALBASE}/include

PORTDOCS=   *
PORTEXAMPLES=   *
PLIST_FILES=    include/pngwriter.h \
        lib/libpngwriter.a \
        %%DATADIR%%/fonts/FreeMonoBold.ttf \
        %%DATADIR%%/fonts/FreeSansBold.ttf
PLIST_DIRS= %%DATADIR%%/fonts \
        %%DATADIR%%

post-extract:
    @${FIND} ${WRKSRC} -name "\.*" -delete

do-build:
    cd ${BUILD_WRKSRC} \
        && ${CXX} ${CXXFLAGS} -c pngwriter.cc -o pngwriter.o \
        && ${AR} rv libpngwriter.a pngwriter.o

do-install:
    ${INSTALL_DATA} ${WRKSRC}/src/pngwriter.h ${PREFIX}/include
    ${INSTALL_DATA} ${WRKSRC}/src/libpngwriter.a ${PREFIX}/lib
    @${MKDIR} ${DATADIR}/fonts
    @(cd ${WRKSRC}/fonts && ${COPYTREE_SHARE} . ${DATADIR}/fonts)
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR})
    @${MKDIR} ${EXAMPLESDIR}
    @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif

.include <bsd.port.mk>
7513b0918565b9951f6db77e9263c'>- Update to 1.0.3sylvio2010-03-0220-434/+2008 * - Update to 2.3.4beat2010-02-263-7/+7 * - Update to 4.2.1 (unbreak, fetches correctly now)wxs2010-02-262-6/+4 * - Mark BROKEN: does not fetchpav2010-02-231-0/+2 * - Add new dependencies to portsylvio2010-02-212-2/+4 * Update to 0.9.9makc2010-02-196-48/+324 * Chase the goffice 0.8.0 update.marcus2010-02-151-2/+2 * - Update to 4.2miwi2010-02-133-33/+17 * - Update to 2.03pgollucci2010-02-102-4/+4 * - update to jpeg-8dinoex2010-02-0520-19/+20 * jGnash is a free (no strings attached!) personal finance managermiwi2010-02-036-0/+82 * - Remove unneeded dependencies which is in perl-5.8.9 distkuriyama2010-01-281-4/+3 * - Update to 7.00delphij2010-01-264-52/+30 * The Web client of OpenObject offers a high quality and ergonomy clientwen2010-01-2410-0/+1437 * - Add cpan site to WWWehaupt2010-01-233-0/+6 * - Remove unneeded dependencies which is in perl-5.8.9 dist from portskuriyama2010-01-162-2/+2 * use $SUB_FILES to dynamically adjust pkg-messagelth2010-01-122-7/+1 * Drop maintainershiplth2010-01-121-1/+1 * With portmgr hat on, reset the maintainership of skv@ for ports thatlinimon2010-01-101-1/+1 * - Update to 1.17miwi2009-12-263-5/+7 * - Remove test-only and included-in-perl-5.8 dependencies.kuriyama2009-12-221-1/+1 * For ports maintained by ports@FreeBSD.org, remove names and/ordougb2009-12-218-19/+0 * - Update to 1.51pgollucci2009-12-162-7/+4 * - Update to 3.21pgollucci2009-12-152-4/+4 * - Get rip python 2.3+miwi2009-12-141-1/+1 * - Update to 1.4.3wen2009-12-112-4/+4 * - Remove p5-HTML-Query (wrong category)miwi2009-11-283-35/+0 * - Remove p5-HTML-Querymiwi2009-11-281-1/+0 * - Update to 1.4.2wen2009-11-272-4/+4 * - Mark MAKE_JOBS_UNSAFEpav2009-11-231-0/+1 * - Mark MAKE_JOBS_UNSAFEpav2009-11-201-0/+2 * - Update to 4.1miwi2009-11-123-62/+121 * Fix an initialization bugarved2009-11-082-14/+21 * - Update to 1.6miwi2009-11-062-4/+4 * - Update BUILD_DEPENDSwen2009-10-282-2/+4 * - Update to 1.4.1wen2009-10-213-4/+5 * - Update to 0.9.0miwi2009-10-213-181/+285 * - Update to 1.22miwi2009-10-213-5/+5 * Update to 0.31.tobez2009-10-202-4/+4 * - Update to 1.4.0wen2009-10-203-6/+37 * The HTML::Query module provides jQuery-like selection queries formiwi2009-10-114-0/+36 * - add Finance::YahooQuote 0.22leeym2009-10-075-0/+44 * - Update to 5.0.6wen2009-10-024-16/+12 * - Update MASTER_SITESwen2009-09-301-2/+2 * Fix build, remove broken.kwm2009-09-212-15/+40 * - Mark BROKEN: does not compile with new gofficepav2009-09-201-0/+2 * - Update to 6.04.araujo2009-09-133-4/+6 * - Update to 3.11miwi2009-09-053-84/+237 * - Unmark BROKEN, I believe last slib-guile fixed thispav2009-09-041-2/+0 * - Update to 1.2.2miwi2009-09-032-4/+4 * - Retire MASTER_SITE_SOURCEFORGE_EXTENDED, it's no longer needed - all mirror...amdmi32009-09-022-3/+2 * Reset chinsan@FreeBSD.org due to numerous maintainer-timeouts and nolinimon2009-08-29