1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/graphics/pngwriter/Makefile
Cheng-Lung Sung c7af34f103 - update to 0.5.0
PR:		ports/73079
Submitted by:	KATO Tsuguru <tkato432 AT yahoo dot com>
Approved by:	co-mentor (vanilla)
2004-10-25 05:15:37 +00:00

48 lines
1.2 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: pngwriter
# Date created: Nov 7, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= pngwriter
PORTVERSION= 0.5.0
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
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>