diff --git a/x11-wm/swm/Makefile b/x11-wm/swm/Makefile index 594b156fdee2..2fd546716a43 100644 --- a/x11-wm/swm/Makefile +++ b/x11-wm/swm/Makefile @@ -20,12 +20,14 @@ USES= gmake MAKEFILE= Makefile-xpm MAKE_ARGS= CFLAGS="${CFLAGS}" LDFLAGS="" CC="${CC}" XROOT="${LOCALBASE}" -MANLANG= "" de -MAN1= swm.1 swmbg.1 swmswitch.1 +OPTIONS_DEFINE= DOCS EXAMPLES + PORTDOCS= * PORTEXAMPLES= * .swm PLIST_FILES= ${BINS:S,^,bin/,} ${SCRIPTS:S,^,bin/,} \ - ${DATA:S,^,%%DATADIR%%/pixmaps/,} + ${DATA:S,^,%%DATADIR%%/pixmaps/,} \ + man/man1/swm.1.gz man/man1/swmbg.1.gz man/man1/swmswitch.1.gz \ + man/de/man1/swm.1.gz man/de/man1/swmbg.1.gz man/de/man1/swmswitch.1.gz PLIST_DIRS= %%DATADIR%%/pixmaps %%DATADIR%% PLIST_DIRSTRY= man/de/man1 man/de @@ -34,7 +36,6 @@ SCRIPTS= startswm DATA= background.xpm closebox.xpm maxbox.xpm stickybox.xpm \ swm.colors unstickybox.xpm -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|monotype|fixed|g ; \ s|/usr/share/swm|${DATADIR}|g' ${WRKSRC}/swm.conf @@ -47,27 +48,23 @@ post-build: do-install: .for file in ${BINS} - ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin .endfor .for file in ${SCRIPTS} - ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin .endfor - ${INSTALL_MAN} ${WRKSRC}/swm.1x ${MANPREFIX}/man/man1/swm.1 - ${INSTALL_MAN} ${WRKSRC}/../swmbg/swmbg.1x ${MANPREFIX}/man/man1/swmbg.1 - ${INSTALL_MAN} ${WRKSRC}/../swmswitch/swmswitch.1x ${MANPREFIX}/man/man1/swmswitch.1 - @${MKDIR} ${MANPREFIX}/man/de/man1 - ${INSTALL_MAN} ${WRKSRC}/swm-de.1x ${MANPREFIX}/man/de/man1/swm.1 - ${INSTALL_MAN} ${WRKSRC}/../swmbg/swmbg-de.1x ${MANPREFIX}/man/de/man1/swmbg.1 - ${INSTALL_MAN} ${WRKSRC}/../swmswitch/swmswitch-de.1x ${MANPREFIX}/man/de/man1/swmswitch.1 - @${MKDIR} ${DATADIR} - @cd ${WRKSRC}/../share/swm && ${COPYTREE_SHARE} pixmaps ${DATADIR} -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} . ${DOCSDIR} -.endif -.if !defined(NOPORTEXAMPLES) - @${MKDIR} ${EXAMPLESDIR} - @cd ${WRKSRC}/../examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR} -.endif + ${INSTALL_MAN} ${WRKSRC}/swm.1x ${STAGEDIR}${MANPREFIX}/man/man1/swm.1 + ${INSTALL_MAN} ${WRKSRC}/../swmbg/swmbg.1x ${STAGEDIR}${MANPREFIX}/man/man1/swmbg.1 + ${INSTALL_MAN} ${WRKSRC}/../swmswitch/swmswitch.1x ${STAGEDIR}${MANPREFIX}/man/man1/swmswitch.1 + @${MKDIR} ${STAGEDIR}${MANPREFIX}/man/de/man1 + ${INSTALL_MAN} ${WRKSRC}/swm-de.1x ${STAGEDIR}${MANPREFIX}/man/de/man1/swm.1 + ${INSTALL_MAN} ${WRKSRC}/../swmbg/swmbg-de.1x ${STAGEDIR}${MANPREFIX}/man/de/man1/swmbg.1 + ${INSTALL_MAN} ${WRKSRC}/../swmswitch/swmswitch-de.1x ${STAGEDIR}${MANPREFIX}/man/de/man1/swmswitch.1 + @${MKDIR} ${STAGEDIR}${DATADIR} + cd ${WRKSRC}/../share/swm && ${COPYTREE_SHARE} pixmaps ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}/../examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} .include