freebsd-ports/graphics/pngwriter/Makefile
Kirill Ponomarev 9cf88e7a62 Update to version 0.5.3
PR:		ports/76766
Submitted by:	Ports Fury
2005-01-28 07:37:04 +00:00

51 lines
1.3 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: pngwriter
# Date created: Nov 7, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= pngwriter
PORTVERSION= 0.5.3
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 \
freetype.9:${PORTSDIR}/print/freetype2
BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_GNOME= pkgconfig
CXXFLAGS+= `pkg-config --cflags freetype2 libpng12` -I${LOCALBASE}/include
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 && ${FIND} . | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}/fonts
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${FIND} . | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${FIND} . | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>