diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-06-27 18:11:14 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-06-27 18:11:14 +0000 |
commit | af6f3eac3b31bf325e6cff4decc150f7716f3b84 (patch) | |
tree | b0c884070eabad2a51b472a20e011b57c75f0d37 /graphics/pngwriter/Makefile | |
parent | ba403ed83ff0830d65d8692130f2fd51f52b5fdd (diff) | |
download | ports-af6f3eac3b31bf325e6cff4decc150f7716f3b84.tar.gz ports-af6f3eac3b31bf325e6cff4decc150f7716f3b84.zip |
Notes
Diffstat (limited to 'graphics/pngwriter/Makefile')
-rw-r--r-- | graphics/pngwriter/Makefile | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/graphics/pngwriter/Makefile b/graphics/pngwriter/Makefile index 0580f9eb2c7d..ade722642200 100644 --- a/graphics/pngwriter/Makefile +++ b/graphics/pngwriter/Makefile @@ -7,32 +7,37 @@ # PORTNAME= pngwriter -PORTVERSION= 0.3.7 +PORTVERSION= 0.4.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 +LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ + freetype.9:${PORTSDIR}/print/freetype2 -USE_REINPLACE= yes -ALL_TARGET= libpngwriter +BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/src -post-patch: - @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ - -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/make.include.linux +CXXFLAGS+= `freetype-config --cflags` -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 .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - ${CP} -R ${WRKSRC}/doc/ ${DOCSDIR} + cd ${WRKSRC}/doc && ${FIND} . | \ + ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} + @${MKDIR} ${EXAMPLESDIR} - ${CP} -R ${WRKSRC}/examples/*.cc ${EXAMPLESDIR} + cd ${WRKSRC}/examples && ${FIND} . | \ + ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR} .endif .include <bsd.port.mk> |