1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/graphics/pngwriter/Makefile
Rusmir Dusko 0e4fa138e2 - Use the new format for LIB_DEPENDS
- Disable all warnings with -w
- Support STAGEDIR
- Add DOCS and EXAMPLES Options
- Recreate patches with make makepatch
2014-01-17 00:33:46 +00:00

51 lines
1.3 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= pngwriter
PORTVERSION= 0.5.4
PORTREVISION= 2
CATEGORIES= graphics devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= C++ library for creating PNG images
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \
libfreetype.so:${PORTSDIR}/print/freetype2
USES= pkgconfig
WRKSRC= ${WRKDIR}/${DISTNAME}
CXXFLAGS+= `pkg-config --cflags freetype2 libpng15` -I${LOCALBASE}/include -w
PLIST_FILES= include/pngwriter.h \
lib/libpngwriter.a \
%%DATADIR%%/fonts/FreeMonoBold.ttf \
%%DATADIR%%/fonts/FreeSansBold.ttf
PLIST_DIRS= %%DATADIR%%/fonts \
%%DATADIR%%
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
post-extract:
@${FIND} ${WRKSRC} -name "\.*" -delete
do-build:
cd ${WRKSRC}/src \
&& ${CXX} ${CXXFLAGS} -c pngwriter.cc -o pngwriter.o \
&& ${AR} rv libpngwriter.a pngwriter.o
do-install:
${INSTALL_DATA} ${WRKSRC}/src/pngwriter.h ${STAGEDIR}${PREFIX}/include/
${INSTALL_DATA} ${WRKSRC}/src/libpngwriter.a ${STAGEDIR}${PREFIX}/lib/
@(cd ${WRKSRC} && ${COPYTREE_SHARE} fonts ${STAGEDIR}${DATADIR})
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>