aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2014-03-02 07:15:14 +0800
committernox <nox@FreeBSD.org>2014-03-02 07:15:14 +0800
commitc22367cedfb3e3dbf29762852ab9f66c3f0a2ab9 (patch)
treec03bf4663c864cd8614a8f069bf0cc730c9f8e6f
parent42b27f41ecf4e9147b82b7ccddc436bf1458c396 (diff)
downloadfreebsd-ports-gnome-c22367cedfb3e3dbf29762852ab9f66c3f0a2ab9.tar.gz
freebsd-ports-gnome-c22367cedfb3e3dbf29762852ab9f66c3f0a2ab9.tar.zst
freebsd-ports-gnome-c22367cedfb3e3dbf29762852ab9f66c3f0a2ab9.zip
Somehow multimedia/vdr itself was list in the previous commit. Sorry... :(
-rw-r--r--multimedia/vdr/Makefile33
-rw-r--r--multimedia/vdr/Makefile.plugins3
-rw-r--r--multimedia/vdr/pkg-plist2
3 files changed, 16 insertions, 22 deletions
diff --git a/multimedia/vdr/Makefile b/multimedia/vdr/Makefile
index f38beacd371b..e57aa2eaf271 100644
--- a/multimedia/vdr/Makefile
+++ b/multimedia/vdr/Makefile
@@ -11,7 +11,7 @@ MAINTAINER= nox@FreeBSD.org
COMMENT= Video Disk Recorder - development version
BUILD_DEPENDS= v4l_compat>=1.0.20120501:${PORTSDIR}/multimedia/v4l_compat
-LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg
+LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDIR}/x11-fonts/fontconfig
RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDIR}/x11-fonts/fontconfig
@@ -26,9 +26,6 @@ USES= pkgconfig gettext iconv gmake
DIST_SUBDIR= vdr
USE_BZIP2= yes
PORTDOCS= COPYING INSTALL MANUAL README HISTORY
-MAN1= vdr.1
-MAN5= vdr.5
-MANCOMPRESSED= yes
CONFDIR= $(ETCDIR)
USE_CSTD= gnu89
MAKE_ARGS+= CC=${CC}
@@ -40,6 +37,7 @@ MAKE_ARGS+= LIRC_DEVICE=/var/run/lirc/lircd
MAKE_ARGS+= LIBDIR=../../lib
MAKE_ARGS+= VDRDIR=${WRKSRC}
MAKE_ARGS+= TMPDIR=/tmp
+MAKE_ARGS+= PREFIX=${PREFIX}
ALL_TARGET= all plugins
VIDEODIR= /video
@@ -53,7 +51,6 @@ GROUPS= ${VDR_GROUP}
PLIST_SUB= VDR_USER=${VDR_USER}
PLIST_SUB+= VDR_GROUP=${VDR_GROUP}
-NO_STAGE= yes
.include <bsd.port.options.mk>
EXTRA_PATCHES+= ${FILESDIR}/vdr-1.7.15-disable_ca_updates.patch
@@ -80,7 +77,6 @@ ALL_TARGET= vdr plugins
post-patch:
# clang doesn't know -MG:
@${REINPLACE_CMD} -e '/^MAKEDEP.*-MM/s/-MG[[:space:]]*$$/# -MG/' \
- -e '/^LIBS/s/-liconv/${ICONVLIB}/' \
${WRKSRC}/Makefile ${WRKSRC}/libsi/Makefile \
${WRKSRC}/PLUGINS/src/*/Makefile
@[ ! -f ${WRKSRC}/s2apiwrapper.c ] || \
@@ -94,7 +90,9 @@ post-patch:
# (like TT S2-36?0.)
@${PATCH} -d ${WRKSRC} --quiet -p1 <${FILESDIR}/stb0899-signalstrength.patch
.endif
- @${SED} 's|^\(VIDEODIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*|\1\2${VIDEODIR}|' \
+ @${SED} \
+ -e '/^PREFIX/d' \
+ -e 's|^\(VIDEODIR[[:space:]]*\)[?]*\(=[[:space:]]*\).*|\1\2${VIDEODIR}|' \
${WRKSRC}/Make.config.template >${WRKSRC}/Make.config
@${REINPLACE_CMD} -e 's|%%CONFDIR%%|${CONFDIR}|' ${WRKSRC}/vdr.1
# We don't support this yet:
@@ -102,24 +100,17 @@ post-patch:
post-install:
.if ${PORT_OPTIONS:MNLS}
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} locale ${PREFIX}/share/)
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} locale ${STAGEDIR}${PREFIX}/share/)
.endif
- ${MKDIR} ${CONFDIR}/plugins
- ${CHOWN} ${VDR_USER}:${VDR_GROUP} ${CONFDIR} ${CONFDIR}/plugins
- ${INSTALL_DATA} ${FILESDIR}/remote.conf ${CONFDIR}/remote.conf.sample
- @if [ ! -f ${CONFDIR}/remote.conf ]; then \
- ${INSTALL_DATA} -o ${VDR_USER} -g ${VDR_GROUP} ${FILESDIR}/remote.conf ${CONFDIR}; \
- fi
+ ${MKDIR} ${STAGEDIR}${CONFDIR}/plugins
+ ${INSTALL_DATA} ${FILESDIR}/remote.conf ${STAGEDIR}${CONFDIR}/remote.conf.sample
for i in $$(cd ${WRKSRC} && ls *.conf); do \
- ${INSTALL_DATA} ${WRKSRC}/$$i ${CONFDIR}/$$i.sample; \
- if [ ! -f ${CONFDIR}/$$i ]; then \
- ${INSTALL_DATA} -o ${VDR_USER} -g ${VDR_GROUP} ${WRKSRC}/$$i ${CONFDIR}/$$i; \
- fi; \
+ ${INSTALL_DATA} ${WRKSRC}/$$i ${STAGEDIR}${CONFDIR}/$$i.sample; \
done
- ${INSTALL_SCRIPT} ${WRKDIR}/vdr-waitdvb ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKDIR}/vdr-waitdvb ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.endif
.include <bsd.port.mk>
diff --git a/multimedia/vdr/Makefile.plugins b/multimedia/vdr/Makefile.plugins
index da68d1719612..fd315a8527a6 100644
--- a/multimedia/vdr/Makefile.plugins
+++ b/multimedia/vdr/Makefile.plugins
@@ -21,6 +21,7 @@ MAKE_ARGS+= VDRDIR=${VDRDIR}
MAKE_ARGS+= VDR_USER=${VDR_USER}
MAKE_ARGS+= INSTALL_PROGRAM="${INSTALL_PROGRAM}"
MAKE_ARGS+= OSTYPE=FreeBSD
+MAKE_ARGS+= PREFIX=${PREFIX}
PLUGIN?= ${PORTNAME:S/^vdr-plugin-//}
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
MAKE_ENV+= LOCALBASE=${LOCALBASE}
@@ -53,5 +54,5 @@ post-patch-plugin:
post-install-pluginlocales:
.if ${PORT_OPTIONS:MNLS}
- @(cd ${WRKDIR} && ${COPYTREE_SHARE} locale ${PREFIX}/share/)
+ @(cd ${WRKDIR} && ${COPYTREE_SHARE} locale ${STAGEDIR}${PREFIX}/share/)
.endif
diff --git a/multimedia/vdr/pkg-plist b/multimedia/vdr/pkg-plist
index ef179bc13529..20c5ff28ba4a 100644
--- a/multimedia/vdr/pkg-plist
+++ b/multimedia/vdr/pkg-plist
@@ -13,6 +13,8 @@ lib/vdr/libvdr-svdrpdemo.so.1.7.29
lib/vdr/libvdr-epgtableid0.so.1.7.29
lib/vdr/libvdr-rcu.so.1.7.29
libdata/pkgconfig/vdr.pc
+man/man1/vdr.1.gz
+man/man5/vdr.5.gz
%%NLS%%share/locale/ar/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/es_ES/LC_MESSAGES/vdr.mo
%%NLS%%share/locale/es_ES/LC_MESSAGES/vdr-hello.mo