mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
090059a210
The affected ports are the ones with gettext as a run-dependency according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT in Makefile (29 of them). PR: ports/124340 Submitted by: edwin@ Approved by: portmgr (pav)
54 lines
1.2 KiB
Makefile
54 lines
1.2 KiB
Makefile
# Ports collection makefile for: stardict2
|
|
# Date created: 13 April 2003
|
|
# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= stardict
|
|
PORTVERSION= 2.4.8
|
|
PORTREVISION= 7
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
DIST_SUBDIR= stardict
|
|
|
|
MAINTAINER= delphij@FreeBSD.org
|
|
COMMENT= A cross-platform and international dictionary written in Gtk2
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LIBS="-L${LOCALBASE}/lib"
|
|
USE_GMAKE= yes
|
|
USE_BZIP2= yes
|
|
USE_GNOME= gnomehack gnomeprefix
|
|
USE_GETTEXT= yes
|
|
|
|
OPTIONS= GNOMEUI "GNOME support" On
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_GNOMEUI)
|
|
USE_GNOME+= libgnomeui
|
|
GCONF_SCHEMAS= stardict.schemas
|
|
INSTALLS_OMF= yes
|
|
PLIST_SUB= GNOME=""
|
|
.else
|
|
USE_GNOME+= gtk20
|
|
CONFIGURE_ARGS+=--disable-gnome-support --disable-schemas-install
|
|
PLIST_SUB= GNOME="@comment not installed: "
|
|
.endif
|
|
|
|
MAN1= stardict.1
|
|
|
|
post-patch:
|
|
# gcc 2.95 does not know std::string::clear()
|
|
@${REINPLACE_CMD} -e 's|.clear()|.erase()|' \
|
|
${WRKSRC}/src/docklet.cpp ${WRKSRC}/src/floatwin.cpp \
|
|
${WRKSRC}/src/selection.cpp
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|