- Remove conditional on ${PORT_OPTIONS:MDOCS} and simplify the Makefile

- Offload documentation from pkg-plist into PORTDOCS variable, tighten
  sed(1) regexp, mute MKDIR's; fix spelling and EOL spaces in pkg-descr
This commit is contained in:
Alexey Dokuchaev 2014-06-26 12:38:57 +00:00
parent d55d5c7e95
commit fda46f9f9a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359348
3 changed files with 6 additions and 10 deletions

View file

@ -15,19 +15,17 @@ LIB_DEPENDS= libnetpbm.so:${PORTSDIR}/graphics/netpbm
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" LDLIBS=-lnetpbm
post-patch:
@${REINPLACE_CMD} -e '/^#include "ppmcmap.h"/d' ${WRKSRC}/ppmtoTbmp.c
PORTDOCS= README
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e '/^#include "ppmcmap\.h"/d' ${WRKSRC}/ppmtoTbmp.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ppmtoTbmp ${WRKSRC}/Tbmptopnm \
${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
${MKDIR} ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/q?.map ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>

View file

@ -1,4 +1,4 @@
The ppmtoTbmp and Tbmptopnm programs convert between ppm and Pilot bitmap
The ppmtoTbmp and Tbmptopnm programs convert between PPM and Pilot bitmap
formats.
WWW: http://www.isaac.cs.berkeley.edu/pilot/

View file

@ -3,5 +3,3 @@ bin/Tbmptopnm
%%DATADIR%%/q2.map
%%DATADIR%%/q4.map
@dirrm %%DATADIR%%
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%