1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/textproc/stardict3/Makefile
Tijl Coosemans 5d63e0f747 - Add missing libgmodule-2.0
- Patch configure instead of configure.ac to avoid USE_AUTOTOOLS
- Use default *_WRKSRC
2014-09-03 13:16:18 +00:00

58 lines
1.4 KiB
Makefile

# Created by: eric
# $FreeBSD$
PORTNAME= stardict
PORTVERSION= 3.0.4
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= GOOGLE_CODE
DIST_SUBDIR= stardict
MAINTAINER= makc@FreeBSD.org
COMMENT= Dictionary lookup program written in Gtk2
LIB_DEPENDS= libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20 \
libenchant.so:${PORTSDIR}/textproc/enchant
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-festival \
--disable-gucharmap \
--disable-espeak \
--disable-tools \
--disable-updateinfo
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
USES= gettext gmake libtool pathfix pkgconfig tar:bzip2
PROJECTHOST= stardict-3
OPTIONS_DEFINE= GNOME
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGNOME}
USE_GNOME+= gnomeprefix gnomedocutils libgnomeui
GCONF_SCHEMAS= stardict.schemas
INSTALLS_OMF= yes
PLIST_SUB= GNOME=""
.else
USE_GNOME+= gtk20
CONFIGURE_ARGS+=--disable-gnome-support --disable-schemas-install \
--disable-scrollkeeper
PLIST_SUB= GNOME="@comment "
.endif
post-patch:
.if !${PORT_OPTIONS:MGNOME}
@${REINPLACE_CMD} -e '/^SUBDIRS/s,help,,' ${WRKSRC}/dict/Makefile.in
.endif
@${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,g' \
${WRKSRC}/dict/src/conf.cpp
@${REINPLACE_CMD} \
-e '/as_fn_error.*gnome-doc-utils/d' \
-e '/DEP_MODULES=/s/"$$/ gmodule-2.0"/' \
${WRKSRC}/dict/configure
.include <bsd.port.mk>