mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Nuke NOPORTDOCS. Convert a couple WITH_foo's to OPTIONS.
This commit is contained in:
parent
4586d2ad5c
commit
01da1d3d6c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360464
@ -35,14 +35,12 @@ 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}
|
||||
|
||||
@ -50,12 +48,10 @@ 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>
|
||||
|
@ -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."
|
||||
@ -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>
|
||||
|
@ -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
|
||||
OPTIONS_DEFINE= DEBUG CHMLIB DOCS
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
.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
|
||||
DEBUG_CONFIGURE_ENABLE= debug-yes
|
||||
|
||||
CHMLIB_CONFIGURE_ENABLE= chmlib=yes
|
||||
CHMLIB_LIB_DEPENDS= libchm.so:${PORTSDIR}/misc/chmlib
|
||||
|
||||
INSTALLS_ICONS= yes
|
||||
|
||||
@ -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>
|
||||
|
@ -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|; \
|
||||
@ -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>
|
||||
|
@ -24,6 +24,8 @@ DESKTOP_ENTRIES= "qLabels" \
|
||||
"Office;Qt;" \
|
||||
"true"
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} 's|/usr|${PREFIX}|g' \
|
||||
${WRKSRC}/qlabels.pro \
|
||||
@ -31,10 +33,8 @@ post-patch:
|
||||
${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>
|
||||
|
Loading…
Reference in New Issue
Block a user