aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/png2ico/Makefile
blob: 095011cdaff9e36f1f351e219b5275df0e07bb12 (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
# Created by: Franz Klammer <klammer@webonaut.com>
# $FreeBSD$

PORTNAME=   png2ico
PORTVERSION=    2002.12.08
PORTREVISION=   5
CATEGORIES= graphics
MASTER_SITES=   http://www.winterdrache.de/freeware/png2ico/data/
DISTNAME=   ${PORTNAME}-src-${PORTVERSION:S/./-/g}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Converts PNG files to Windows icon resource files

LICENSE=    GPLv2 # only
LICENSE_FILE=   ${WRKSRC}/LICENSE

LIB_DEPENDS=    libpng.so:graphics/png

WRKSRC=     ${WRKDIR}/${PORTNAME}

CPPFLAGS+=  $$(libpng-config --cflags)
LDFLAGS+=   $$(libpng-config --ldflags)

PORTDOCS=   bmp.txt
PLIST_FILES=    bin/png2ico man/man1/png2ico.1.gz

OPTIONS_DEFINE= DOCS

do-build:
    (cd ${WRKSRC} && ${CXX} ${CXXFLAGS} ${CPPFLAGS} -o png2ico \
        png2ico.cpp ${LDFLAGS})

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/png2ico ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/doc/png2ico.1 ${STAGEDIR}${MAN1PREFIX}/man/man1

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>