Support stage
Use plist instead of evil automatic plist
This commit is contained in:
parent
86d803358a
commit
bf9ccedc7a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345841
2 changed files with 33 additions and 17 deletions
|
@ -8,34 +8,26 @@ CATEGORIES= x11-toolkits windowmaker
|
|||
MASTER_SITES= http://starplot.org/wmapp/downloads/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A DockApp Graphics Library
|
||||
COMMENT= DockApp Graphics Library
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
USES= gmake
|
||||
USE_XORG= x11 xpm
|
||||
USE_GMAKE= yes
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
ALL_TARGET= # empty
|
||||
PLIST_FILES= lib/libwmapp.a
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s|export |#export |g" ${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -e "s|malloc\.h|stdlib.h|g" ${WRKSRC}/xwrapper.h
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/include/wmapp
|
||||
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/wmapp
|
||||
@${FIND} ${PREFIX}/include/wmapp -type f | \
|
||||
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
||||
@${ECHO_CMD} "@dirrm include/wmapp" >> ${TMPPLIST}
|
||||
${INSTALL_DATA} ${WRKSRC}/libwmapp.a ${PREFIX}/lib
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/include/wmapp
|
||||
${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/wmapp
|
||||
${INSTALL_DATA} ${WRKSRC}/libwmapp.a ${STAGEDIR}${PREFIX}/lib
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for file in FAQ.txt README Widgets.txt
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
||||
.endfor
|
||||
@${FIND} ${DOCSDIR} -type f | \
|
||||
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
|
||||
@${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" >> ${TMPPLIST}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
24
x11-toolkits/wmapp/pkg-plist
Normal file
24
x11-toolkits/wmapp/pkg-plist
Normal file
|
@ -0,0 +1,24 @@
|
|||
include/wmapp/colors.h
|
||||
include/wmapp/wmapp.h
|
||||
include/wmapp/wmbutton.h
|
||||
include/wmapp/wmcallback.h
|
||||
include/wmapp/wmcanvas.h
|
||||
include/wmapp/wmclickable.h
|
||||
include/wmapp/wmellipse.h
|
||||
include/wmapp/wmframe.h
|
||||
include/wmapp/wmhistory.h
|
||||
include/wmapp/wmimage.h
|
||||
include/wmapp/wmled.h
|
||||
include/wmapp/wmmeter.h
|
||||
include/wmapp/wmmeterbar.h
|
||||
include/wmapp/wmslider.h
|
||||
include/wmapp/wmtextbar.h
|
||||
include/wmapp/wmwidget.h
|
||||
include/wmapp/wmwindow.h
|
||||
include/wmapp/xwrapper.h
|
||||
lib/libwmapp.a
|
||||
%%PORTDOCS%%%%DOCSDIR%%/FAQ.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/Widgets.txt
|
||||
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
|
||||
@dirrmtry include/wmapp
|
Loading…
Reference in a new issue