freebsd-ports/textproc/sdcv/Makefile
Koop Mast 7887c684ad * Update the glib to 2.34.3 and gtk20 to 2.24.17 and gtk30 to 3.6.4 which
are the latest stable releases.
* Update vala to the newest stable release 0.18.1, also update a few ports
  in the gtk/gnome stack.
* The c++ bindings ports for glib, atk, gconf, etc, have now USE_GNOME toggles.
* Remove pkg-config run depends from glib20 and freetype2. This doesn't
  eliminate pkg-config run dependency completely, a second phase is needed
  and is planned.
* Support for .:run. and .:build. for USE_GNOME components was added.
  Currently only libxml2 and libxslt support this mechanism.
* Updates of the telepathy stack and empathy.
* Trim makefile headers, convert ports to new options, trim off library
  versions for some ports.
* Fix other ports so they build with the new glib version.

Thanks to miwi and crees for helping out with some exp-runs.
Approved by:	portmgr (miwi & bapt)
Obtained from:	gnome team repo
2013-03-08 10:51:34 +00:00

63 lines
1.6 KiB
Makefile

# Ports collection makefile for: sdcv
# Date created: 2005/07/07
# Whom: chinsan <chinsan.tw@gmail.com>
# $FreeBSD$
#
PORTNAME= sdcv
PORTVERSION= 0.4.2
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= A text-based utility for work with dictionaries in StarDict's format
USE_BZIP2= yes
USE_ICONV= yes
GNU_CONFIGURE= yes
USE_AUTOTOOLS= libtool
USE_GNOME= glib20
USE_PKGCONFIG= build
SUB_FILES= pkg-message
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
MAN1= sdcv.1
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
${WRKSRC}/doc/sdcv.1
@${REINPLACE_CMD} -e '1425 s, install-data,,' \
${WRKSRC}/po/Makefile.in.in
@${REINPLACE_CMD} -e 's, getopt.h,,g' ${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e '146 s|()|(int, char * const [], const char *)|g' \
${WRKSRC}/src/getopt.h
.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64"
@${REINPLACE_CMD} -e '516 s|sizeof|(guint32)sizeof|g' \
${WRKSRC}/src/lib/lib.cpp
.endif
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
${WRKSRC}/src/sdcv.cpp
@${REINPLACE_CMD} -e 's,@mandir@/uk,@mandir@,' \
${WRKSRC}/doc/uk/Makefile.in
.if !defined(WITHOUT_NLS)
@${REINPLACE_CMD} -e 's,@USE_NLS@,yes,g' ${WRKSRC}/po/Makefile.in.in
@${REINPLACE_CMD} -e 's, getopt.h,,g; s,@USE_NLS@,yes,g' \
${WRKSRC}/src/Makefile.in
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>