1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/graphics/png2ico/Makefile
2014-12-25 20:54:41 +00:00

37 lines
964 B
Makefile

# 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
LIB_DEPENDS= libpng.so:${PORTSDIR}/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
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
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>