diff options
author | wxs <wxs@FreeBSD.org> | 2012-11-25 04:50:04 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2012-11-25 04:50:04 +0800 |
commit | a421d2206419dcd3cca901c8cf26379e0dc18750 (patch) | |
tree | 76444ca7d82551bb1e3ec44002061464f66f7552 /graphics | |
parent | ba5de9886238c0670f4accea84f4f33fe43bae0f (diff) | |
download | freebsd-ports-gnome-a421d2206419dcd3cca901c8cf26379e0dc18750.tar.gz freebsd-ports-gnome-a421d2206419dcd3cca901c8cf26379e0dc18750.tar.zst freebsd-ports-gnome-a421d2206419dcd3cca901c8cf26379e0dc18750.zip |
Convert to new options.
Fix comment and cleanup dependencies.
Assign maintainer to submitter.
PR: ports/173588
Submitted by: nemysis <nemysis@gmx.ch>
Feature safe: yes
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/pngwriter/Makefile | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/graphics/pngwriter/Makefile b/graphics/pngwriter/Makefile index ae630d2e4344..5db6e4e79fc2 100644 --- a/graphics/pngwriter/Makefile +++ b/graphics/pngwriter/Makefile @@ -12,20 +12,18 @@ PORTREVISION= 2 CATEGORIES= graphics devel MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org -COMMENT= A C++ library for creating PNG images +MAINTAINER= nemysis@gmx.ch +COMMENT= C++ library for creating PNG images LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \ - freetype.9:${PORTSDIR}/print/freetype2 + freetype:${PORTSDIR}/print/freetype2 USE_PKGCONFIG= yes -BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/src +WRKSRC= ${WRKDIR}/${DISTNAME} CXXFLAGS+= `pkg-config --cflags freetype2 libpng15` -I${LOCALBASE}/include -PORTDOCS= * -PORTEXAMPLES= * PLIST_FILES= include/pngwriter.h \ lib/libpngwriter.a \ %%DATADIR%%/fonts/FreeMonoBold.ttf \ @@ -33,24 +31,32 @@ PLIST_FILES= include/pngwriter.h \ PLIST_DIRS= %%DATADIR%%/fonts \ %%DATADIR%% +PORTDOCS= * +PORTEXAMPLES= * + +.include <bsd.port.options.mk> + post-extract: @${FIND} ${WRKSRC} -name "\.*" -delete do-build: - cd ${BUILD_WRKSRC} \ + 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 ${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/src/libpngwriter.a ${PREFIX}/lib - @${MKDIR} ${DATADIR}/fonts - @(cd ${WRKSRC}/fonts && ${COPYTREE_SHARE} . ${DATADIR}/fonts) -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}) - @${MKDIR} ${EXAMPLESDIR} - @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) + @(cd ${WRKSRC} && ${COPYTREE_SHARE} fonts ${DATADIR}) + +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR} + @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR}) +.endif + +.if ${PORT_OPTIONS:MEXAMPLES} + ${MKDIR} ${EXAMPLESDIR} + @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}) .endif .include <bsd.port.mk> |