1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/multimedia/vdr/Makefile.plugins
Juergen Lock a37a080307 - Update multimedia/vdr to 1.7.19 (with parts of the update reverted
to avoid a known bug.)
- Fix build with clang for vdr and plugins, and also fix a few bugs it
  uncovered.
- Bump PORTREVISION for all plugins.
2011-06-25 19:02:08 +00:00

55 lines
1.8 KiB
Makefile

# this is to be included by vdr plugin ports
#
# $FreeBSD: /tmp/pcvs/ports/multimedia/vdr/Makefile.plugins,v 1.2 2011-06-25 19:02:04 nox Exp $
BUILD_DEPENDS+= ${LOCALBASE}/include/linux/dvb/frontend.h:${PORTSDIR}/multimedia/v4l_compat
BUILD_DEPENDS+= vdr:${PORTSDIR}/multimedia/vdr
RUN_DEPENDS+= vdr:${PORTSDIR}/multimedia/vdr
DIST_SUBDIR= vdr
PATCH_SUBDIR= vdr
USE_GMAKE= yes
USE_GETTEXT= yes
VDRDIR= ${LOCALBASE}/include/vdr
VDRINCDIR= ${LOCALBASE}/include
USE_CSTD?= gnu89
MAKE_ARGS+= CC=${CC}
MAKE_ARGS+= CXX=${CXX}
MAKE_ARGS+= DVBDIR=${LOCALBASE}/include
MAKE_ARGS+= VDRDIR=${VDRDIR}
MAKE_ARGS+= VDR_USER=${VDR_USER}
MAKE_ARGS+= INSTALL_PROGRAM="${INSTALL_PROGRAM}"
MAKE_ARGS+= OSTYPE=FreeBSD
PLUGIN?= ${PORTNAME:S/^vdr-plugin-//}
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
MAKE_ENV+= LOCALBASE=${LOCALBASE}
VDR_USER= vdr
VDR_GROUP= vdr
PLIST_SUB= VDR_USER=${VDR_USER}
PLIST_SUB+= VDR_GROUP=${VDR_GROUP}
.if !defined(WITHOUT_NLS)
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
localeplist:
@${FIND} ${WRKDIR}/locale -type f -print |${SED} 's|^.*locale/|%%NLS%%share/locale/|'
post-patch-plugin:
@${MKDIR} ${WRKDIR}/lib ${WRKDIR}/locale
@${REINPLACE_CMD} 's/^\(LIBDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2..\/lib/;'\\
's/^\(LOCALEDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2..\/locale/;'\\
's/^\(VDRDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2'"${VDRDIR:S-/-\\\\/-g}/;"\\
's/^\(VDRINCDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2'"${VDRINCDIR:S-/-\\\\/-g}/;"\\
's/^\(BINDIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*/\1\2'"${PREFIX:S-/-\\\\/-g}\/bin/;"\\
'/^MAKEDEP.*-MM/s/-MG[[:space:]]*$$/# -MG/' \
${WRKSRC}/Makefile ${VDR_PLUGIN_MAKEFILES}
post-install-pluginlocales:
.if !defined(WITHOUT_NLS)
@(cd ${WRKDIR} && ${COPYTREE_SHARE} locale ${PREFIX}/share/)
.endif