Changeset View
Changeset View
Standalone View
Standalone View
databases/dbh/Makefile
Show All 22 Lines | |||||
OPTIONS_DEFINE= GTKDOC | OPTIONS_DEFINE= GTKDOC | ||||
GTKDOC_DESC= Enable GTK html documentation | GTKDOC_DESC= Enable GTK html documentation | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${PORT_OPTIONS:MGTKDOC} | .if ${PORT_OPTIONS:MGTKDOC} | ||||
CONFIGURE_ARGS+= --enable-gtk-doc-html | CONFIGURE_ARGS+= --enable-gtk-doc-html | ||||
PLIST_SUB= GTKDOC="" | PLIST_SUB+= GTKDOC="" | ||||
.else | .else | ||||
CONFIGURE_ARGS+= --disable-gtk-doc-html | CONFIGURE_ARGS+= --disable-gtk-doc-html | ||||
PLIST_SUB= GTKDOC="@comment " | PLIST_SUB+= GTKDOC="@comment " | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
# Fix the build on big-endian architectures. | # Fix the build on big-endian architectures. | ||||
@${REINPLACE_CMD} -e '/fractalidad/d' ${WRKSRC}/src/dbh_static.i | @${REINPLACE_CMD} -e '/fractalidad/d' ${WRKSRC}/src/dbh_static.i | ||||
# Needed to remove gtk-doc installation. | # Needed to remove gtk-doc installation. | ||||
.if empty(PORT_OPTIONS:MGTKDOC) | .if empty(PORT_OPTIONS:MGTKDOC) | ||||
@${REINPLACE_CMD} -e 's|^\(SUBDIRS = src man\).*|\1|' \ | @${REINPLACE_CMD} -e 's|^\(SUBDIRS = src man\).*|\1|' \ | ||||
${WRKSRC}/Makefile.in | ${WRKSRC}/Makefile.in | ||||
.endif | .endif | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |