Skip to content

Commit

Permalink
Nuke NOPORTDOCS. Convert a couple WITH_foo's to OPTIONS.
Browse files Browse the repository at this point in the history
  • Loading branch information
assistcontrol committed Jul 3, 2014
1 parent a4b7935 commit 0e01bb7
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 30 deletions.
16 changes: 6 additions & 10 deletions deskutils/gnote/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,23 @@ CONFIGURE_ARGS= --disable-dbus
DOCS= AUTHORS ChangeLog NEWS README TODO
MAN1= gnote.1

.if !defined(WITHOUT_APPLET)
LIB_DEPENDS+= libpanelappletmm-2.6.so:${PORTSDIR}/x11-toolkits/libpanelappletmm
CONFIGURE_ARGS+=--enable-applet
PLIST_SUB+= APPLET=""
.else
CONFIGURE_ARGS+=--disable-applet
PLIST_SUB+= APPLET="@comment "
.endif
OPTIONS_DEFINE= DOCS APPLET
OPTIONS_DEFAULT=APPLET
OPTIONS_SUB= yes

APPLET_LIB_DEPENDS= libpanelappletmm-2.6.so:${PORTSDIR}/x11-toolkits/libpanelappletmm
APPLET_CONFIGURE_ENABLE=applet

PLIST_SUB+= VERSION=${PORTVERSION}

post-patch:
@${REINPLACE_CMD} -e 's|/usr/include/boost|${LOCALBASE}/include/boost|g' \
${WRKSRC}/configure

.ifndef (NOPORTDOCS)
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
4 changes: 2 additions & 2 deletions deskutils/hot-babe/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ USE_GNOME= gtk20

PORTDOCS= ChangeLog NEWS TODO LICENSE CONTRIBUTORS copyright config.example

OPTIONS_DEFINE= DOCS

pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} "Warning! This port contains some adults only content."
Expand All @@ -26,11 +28,9 @@ pre-everything::

post-install:
${INSTALL_MAN} ${WRKSRC}/hot-babe.1 ${STAGEDIR}${PREFIX}/man/man1
.ifndef (NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
21 changes: 7 additions & 14 deletions deskutils/pinot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,13 @@ USE_LDCONFIG= ${PREFIX}/lib/pinot/backends ${PREFIX}/lib/pinot/filters
SHEBANG_LANG= bash
SHEBANG_FILES= scripts/bash/*.sh

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug=yes
.endif

.if defined(WITH_CHMLIB)
CONFIGURE_ARGS+= --enable-chmlib=yes
LIB_DEPENDS+= libchm.so:${PORTSDIR}/misc/chmlib
PLIST_SUB+= CHMLIB=""
.else
CONFIGURE_ARGS+= --disable-chmlib
PLIST_SUB+= CHMLIB="@comment "
.endif
OPTIONS_DEFINE= DEBUG CHMLIB DOCS
OPTIONS_SUB= yes

DEBUG_CONFIGURE_ENABLE= debug-yes

CHMLIB_CONFIGURE_ENABLE= chmlib=yes
CHMLIB_LIB_DEPENDS= libchm.so:${PORTSDIR}/misc/chmlib

INSTALLS_ICONS= yes

Expand Down Expand Up @@ -99,9 +94,7 @@ pre-configure:

post-install:
${TOUCH} ${STAGEDIR}${DATADIR}/stopwords/.empty_file
.if !defined(NOPORTDOCS)
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.mk>
4 changes: 2 additions & 2 deletions deskutils/pypanel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ PYDISTUTILS_PKGNAME= PyPanel

PORTDOCS= *

OPTIONS_DEFINE= DOCS

post-patch:
@${REINPLACE_CMD} -e \
's|/usr/bin/freetype-config|${LOCALBASE}/bin/freetype-config|; \
Expand All @@ -40,9 +42,7 @@ post-patch:
${WRKSRC}/pypanelrc

post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.mk>
4 changes: 2 additions & 2 deletions deskutils/qlabels/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ DESKTOP_ENTRIES= "qLabels" \
"Office;Qt;" \
"true"

OPTIONS_DEFINE= DOCS

post-patch:
@${REINPLACE_CMD} 's|/usr|${PREFIX}|g' \
${WRKSRC}/qlabels.pro \
${WRKSRC}/lib/templates.cpp \
${WRKSRC}/lib/papers.cpp

post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Changelog ${WRKSRC}/LICENSE \
${STAGEDIR}${DOCSDIR}
.endif

.include <bsd.port.mk>

0 comments on commit 0e01bb7

Please sign in to comment.