freebsd-ports/x11-toolkits/wxgtk28/Makefile
Tijl Coosemans edb7229dd4 Split devel/gettext in devel/gettext-runtime and devel/gettext-tools. The
first contains runtime libraries such as libintl and the latter contains
developer tools such as msgfmt.  Ports that use gettext will usually need
a LIB_DEPENDS on gettext-runtime and a BUILD_DEPENDS on gettext-tools.

USES=gettext-runtime can be used to set a LIB/BUILD/RUN_DEPENDS on
devel/gettext-runtime and USES=gettext-tools can be used to set a
BUILD/RUN_DEPENDS on devel/gettext-tools.  USES=gettext is now the same
as "USES=gettext-runtime gettext-tools" meaning a LIB_DEPENDS on
devel/gettext-runtime and a BUILD_DEPENDS on devel/gettext-tools.

Update gettext to 0.19.3.

Remove :oldver from converters/libiconv and devel/gettext-runtime.  Leave
symlinks with the old library versions to avoid the need to bump
PORTREVISION on a large number of dependent ports.  When most of the
dependent ports have had normal version updates, PORTREVISION can be
bumped on the remaining ones (low number) and the links can be removed.

Fix some ports that installed files in lib/locale instead of share/locale.

PR:		194038
Reviewed by:	bapt
Exp-run:	antoine
Approved by:	portmgr (antoine)
2014-11-29 18:22:32 +00:00

110 lines
2.7 KiB
Makefile

# Created by: fjoe@FreeBSD.org
# $FreeBSD$
PORTNAME= wx
PORTVERSION= 2.8.12
PORTREVISION?= 4
CATEGORIES= x11-toolkits
MASTER_SITES= SF/wxwindows/${PORTVERSION}
PKGNAMESUFFIX= 28-${WXGTK_FLAVOR}
DISTNAME= wxGTK-${PORTVERSION}
MAINTAINER?= fjoe@FreeBSD.org
COMMENT?= The wxWidgets GUI toolkit with GTK+ bindings
LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png\
libjpeg.so:${PORTSDIR}/graphics/jpeg\
libtiff.so:${PORTSDIR}/graphics/tiff\
libexpat.so:${PORTSDIR}/textproc/expat2
USES= iconv gmake pkgconfig tar:bzip2
USE_XORG= x11 sm xxf86vm xinerama
USE_GL= glu
USE_GNOME= gtk20 pangox-compat
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libpng=sys\
--with-libjpeg=sys\
--with-libtiff=sys\
--with-zlib=sys\
--with-expat=sys\
--with-opengl\
--with-mspack\
--with-gtk\
--enable-mediactrl\
--disable-backtrace\
--enable-graphics_ctx
CONFIGURE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"\
X11BASE="${LOCALBASE}"
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
PLIST= ${.CURDIR}/pkg-plist
WXGTK_FLAVOR?= gtk2
OPTIONS_DEFINE= GSTREAMER MSPACK
OPTIONS_DEFAULT= GSTREAMER MSPACK
MSPACK_DESC= MS archives support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGSTREAMER}
CONFIGURE_ARGS+=--enable-mediactrl
USE_GNOME+= gconf2
USE_GSTREAMER= yes
PLIST_SUB+= GSTREAMER=""
.else
CONFIGURE_ARGS+=--disable-mediactrl
PLIST_SUB+= GSTREAMER="@comment "
.endif
.if ${PORT_OPTIONS:MMSPACK}
CONFIGURE_ARGS+=--with-libmspack
LIB_DEPENDS+= libmspack.so:${PORTSDIR}/archivers/libmspack
.else
CONFIGURE_ARGS+=--without-libmspack
.endif
.if ${WXGTK_FLAVOR} != "gtk2-common"
RUN_DEPENDS= ${LOCALBASE}/include/wx-2.8/wx/wx.h:${PORTSDIR}/x11-toolkits/wxgtk28-common
.endif
.if ${WXGTK_FLAVOR:M*-common} != ""
NO_BUILD= yes
INSTALL_TARGET= install-common
USES+= gettext-tools
.else
USE_LDCONFIG= yes
.endif # *-common
.if ${WXGTK_FLAVOR:M*-contrib*} != ""
BUILD_WRKSRC= ${WRKSRC}/contrib
INSTALL_WRKSRC= ${BUILD_WRKSRC}
.if ${WXGTK_FLAVOR} != "gtk2-contrib-common"
USE_WX= 2.8
RUN_DEPENDS= ${LOCALBASE}/include/wx-2.8/wx/stc/stc.h:${PORTSDIR}/x11-toolkits/wxgtk28-contrib-common
.if ${WXGTK_FLAVOR:M*-unicode*} != ""
WX_UNICODE= yes
.endif
pre-configure:
@${FIND} ${BUILD_WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 ${REINPLACE_CMD} \
-e "s|@CXXFLAGS@|${CFLAGS} `${WX_CONFIG} --cxxflags`|" \
-e "s|@CFLAGS@|${CFLAGS} `${WX_CONFIG} --cflags`|" \
-e "s|@CPPFLAGS@||"
.endif # !gtk2-contrib-common
.endif # *-contrib*
.if ${WXGTK_FLAVOR:M*-unicode*} != ""
CONFIGURE_ARGS+=--enable-unicode
.endif
post-patch:
@${REINPLACE_CMD} -e 's|pkg_config_args --cflags|pkg_config_args pangox --cflags|g ; \
s|pkg_config_args --libs|pkg_config_args pangox --libs|g' \
-e 's|png_check_sig|png_sig_cmp|g' \
${WRKSRC}/configure
.include <bsd.port.mk>