PORTNAME= png2ico PORTVERSION= 2002.12.08 PORTREVISION= 6 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 WWW= https://www.winterdrache.de/freeware/png2ico/index.html 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 share/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}${PREFIX}/share/man/man1 do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR} .include