Changeset View
Changeset View
Standalone View
Standalone View
head/comms/anyremote/Makefile
Show All 17 Lines | |||||
USE_GNOME= glib20 | USE_GNOME= glib20 | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} | LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} | ||||
OPTIONS_DEFINE= DOCS DBUS X11 | OPTIONS_DEFINE= DOCS DBUS X11 | ||||
OPTIONS_DEFAULT= DBUS X11 | OPTIONS_DEFAULT= DBUS X11 | ||||
.include <bsd.port.options.mk> | DBUS_CONFIGURE_ENABLE=dbus | ||||
DBUS_LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib | |||||
.if ! ${PORT_OPTIONS:MDBUS} | X11_CONFIGURE_ENABLE=xtest | ||||
CONFIGURE_ARGS+=--disable-dbus | X11_USE= XORG=x11,xtst | ||||
.else | |||||
LIB_DEPENDS+= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib | |||||
.endif | |||||
.if ! ${PORT_OPTIONS:MX11} | |||||
CONFIGURE_ARGS+=--disable-xtest | |||||
.else | |||||
USE_XORG= x11 xtst | |||||
.endif | |||||
MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib" | MAKE_ARGS+= LDFLAGS="-L${LOCALBASE}/lib" | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|(datadir)/man/man1|(mandir)/man1|g' ${WRKSRC}/Makefile.in | @${REINPLACE_CMD} -e 's|(datadir)/man/man1|(mandir)/man1|g' ${WRKSRC}/Makefile.in | ||||
@${REINPLACE_CMD} -e 's|xtext|xtest|g' ${WRKSRC}/configure | @${REINPLACE_CMD} -e 's|xtext|xtest|g' ${WRKSRC}/configure | ||||
.if ${PORT_OPTIONS:MDOCS} | post-patch-DOCS-on: | ||||
@${REINPLACE_CMD} -e '/doc\/${PORTNAME}/d' ${WRKSRC}/Makefile.in | @${REINPLACE_CMD} -e '/doc\/${PORTNAME}/d' ${WRKSRC}/Makefile.in | ||||
.endif | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |