aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/wmapp
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-02-24 21:38:57 +0800
committerbapt <bapt@FreeBSD.org>2014-02-24 21:38:57 +0800
commit4763b31a05125f9805661078b83bc6a60ce217e5 (patch)
tree71874a7a2421e033e74a2eeceef15162228ef0ba /x11-toolkits/wmapp
parentbba92b6b9a2a8018fce3774aeb917a0a575caf8a (diff)
downloadfreebsd-ports-gnome-4763b31a05125f9805661078b83bc6a60ce217e5.tar.gz
freebsd-ports-gnome-4763b31a05125f9805661078b83bc6a60ce217e5.tar.zst
freebsd-ports-gnome-4763b31a05125f9805661078b83bc6a60ce217e5.zip
Support stage
Use plist instead of evil automatic plist
Diffstat (limited to 'x11-toolkits/wmapp')
-rw-r--r--x11-toolkits/wmapp/Makefile26
-rw-r--r--x11-toolkits/wmapp/pkg-plist24
2 files changed, 33 insertions, 17 deletions
diff --git a/x11-toolkits/wmapp/Makefile b/x11-toolkits/wmapp/Makefile
index e2968e3172af..d2eeddf16f93 100644
--- a/x11-toolkits/wmapp/Makefile
+++ b/x11-toolkits/wmapp/Makefile
@@ -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>
diff --git a/x11-toolkits/wmapp/pkg-plist b/x11-toolkits/wmapp/pkg-plist
new file mode 100644
index 000000000000..dd9ebb3565ec
--- /dev/null
+++ b/x11-toolkits/wmapp/pkg-plist
@@ -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