freebsd-ports/multimedia/gxine/Makefile
Florent Thoumie d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00

89 lines
2.3 KiB
Makefile

# New ports collection makefile for: gxine
# Date created: Sa 19 Apr 2003 01:34:06 CEST
# Whom: Grigori Goronzy <greg@chown.ath.cx>
#
# $FreeBSD$
#
PORTNAME= gxine
PORTVERSION= 0.5.11
PORTREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= xine
MAINTAINER= makc@issp.ac.ru
COMMENT= An alternative GUI for the Xine media player
LIB_DEPENDS= xine.1:${PORTSDIR}/multimedia/libxine
USE_BZIP2= yes
USE_AUTOTOOLS= libtool:15
USE_GNOME= gtk20 gnomehier
USE_GMAKE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -I${X11BASE}/lib"
CONFIGURE_ARGS+=--mandir=${PREFIX}/man --x-includes=${X11BASE}/include \
--x-libraries=${X11BASE}/lib
CFLAGS= -O2 -fno-strict-aliasing -pipe
INSTALLS_ICONS= yes
MANLANG= "" de
MAN1= gxine.1 gxine_client.1
MANCOMPRESSED= no
OPTIONS= MOZILLA_PLUGIN "Install Mozilla plugin" on \
DBUS "Enable dbus support" on \
LIRC "Enable lirc support" off
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_DBUS)
CONFIGURE_ARGS+=--with-dbus
LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
.else
CONFIGURE_ARGS+=--without-dbus
.endif
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
.if defined(WITH_LIRC)
LIB_DEPENDS+= lirc_client.1:${PORTSDIR}/comms/lirc
CONFIGURE_ARGS+= --enable-lirc
.else
CONFIGURE_ARGS+= --disable-lirc
.endif
.if defined(WITHOUT_MOZILLA_PLUGIN)
LIB_DEPENDS+= js.1:${PORTSDIR}/lang/spidermonkey
CONFIGURE_ARGS+=--without-browser-plugin
PLIST_SUB+= MOZILLA_PLUGIN="@comment "
.else
USE_GECKO= firefox mozilla seamonkey xulrunner firefox15
.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk"
LIB_DEPENDS+= nspr4.1:${PORTSDIR}/devel/nspr
CONFIGURE_ENV+= NSPR_CFLAGS="-I${LOCALBASE}/include/nspr" \
NSPR_LIBS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+=--disable-libjs
PLIST_SUB+= MOZILLA_PLUGIN=""
.endif
pre-configure:
@${REINPLACE_CMD} -e "/^mkdir_p/s:@mkdir_p@:/bin/sh @install_sh@ -d:" \
${WRKSRC}/po/Makefile.in.in
@${REINPLACE_CMD} -e "/^mkdir_p/s:@mkdir_p@:/bin/sh @install_sh@ -d:" \
${WRKSRC}/misc/po/Makefile.in.in
post-install:
.if !defined(WITHOUT_MOZILLA_PLUGIN)
@${MKDIR} ${PREFIX}/lib/browser_plugins
@${LN} -sf ${PREFIX}/lib/gxine/gxineplugin.so ${PREFIX}/lib/browser_plugins
.endif
.include <bsd.port.post.mk>