aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-08-24 17:07:34 +0800
committerdanfe <danfe@FreeBSD.org>2013-08-24 17:07:34 +0800
commitf50573458108501ed359d6bde8f94231b9c36747 (patch)
tree79e1250d6693ebbebfd79e45ea1f4c9d6226e031 /multimedia
parent403f0fbec0f8d3786348186656c3093a8500786a (diff)
downloadfreebsd-ports-gnome-f50573458108501ed359d6bde8f94231b9c36747.tar.gz
freebsd-ports-gnome-f50573458108501ed359d6bde8f94231b9c36747.tar.zst
freebsd-ports-gnome-f50573458108501ed359d6bde8f94231b9c36747.zip
- Unbreak parallel (-jX) builds: fix targets dependencies
- Tighten Makefile header and COMMENT (drop an article) - Define LICENSE (GPLv2), install README file, modernize LIB_DEPENDS - Generally cleanup Makefile: trim redundant and obvious comments, superfluous global modifiers from regex', shorten overly long lines - Terminate WWW line in pkg-descr with a slash (per PH, sect. 3.2.1) Reported by: marino Approved by: miwi, bapt (portmgr, implicit)
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/kissdx/Makefile60
-rw-r--r--multimedia/kissdx/pkg-descr2
2 files changed, 32 insertions, 30 deletions
diff --git a/multimedia/kissdx/Makefile b/multimedia/kissdx/Makefile
index cea096d068ac..677af27aba44 100644
--- a/multimedia/kissdx/Makefile
+++ b/multimedia/kissdx/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: kissdx
-# Date created: 20. November 2007
-# Whom: Simon I. Rigét
-#
+# Created by: Simon Riget <freebsd@paragi.dk>
# $FreeBSD$
-#
PORTNAME= kissdx
PORTVERSION= 0.13.10a
@@ -12,45 +8,51 @@ CATEGORIES= multimedia net
MASTER_SITES= http://paragi.dk/kiss/
MAINTAINER= freebsd@paragi.dk
-COMMENT= A multimedia streaming server for KiSS/Linksys player
+COMMENT= Multimedia streaming server for KiSS/Linksys player
-# Dependencies of other packeges
-LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd \
- jpeg:${PORTSDIR}/graphics/jpeg \
- dvdread:${PORTSDIR}/multimedia/libdvdread
+LICENSE= GPLv2
+
+LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd \
+ libjpeg.so:${PORTSDIR}/graphics/jpeg \
+ libdvdread.so:${PORTSDIR}/multimedia/libdvdread
USES= iconv
+USE_DOS2UNIX= yes
+MAKE_ENV= FreeBSD=defined
-# Man pages
MAN1= kissdx.1
-
-# RC start and stop service
USE_RC_SUBR= kissdx
-
-# set enviroment variables for port makefile
-MAKE_ENV= FreeBSD=defined
-
-# Convert CR/LF to LF in source files
-USE_DOS2UNIX= yes
-
SUB_FILES= pkg-message
-# Remove files at uninstall (like pkg-plist)
-PLIST_FILES= etc/kissdx.conf sbin/kissdx sbin/kissd-pretrigger sbin/kissd-posttrigger
+PLIST_FILES= etc/kissdx.conf sbin/kissdx sbin/kissd-pretrigger \
+ sbin/kissd-posttrigger
+PORTDOCS= README
+
+.include <bsd.port.options.mk>
post-patch:
- @${REINPLACE_CMD} -e 's|Linux|Unix|g ; s|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/kissdx.1
- @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/config.c
+ @${REINPLACE_CMD} -e 's|Linux|Unix| ; s|/etc/|${PREFIX}&|' \
+ ${WRKSRC}/kissdx.1
+ @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|' ${WRKSRC}/config.c
@${RM} ${WRKSRC}/kissdx.o
+# Fix parallel (-jX) builds: sanitize dependencies
+ @${REINPLACE_CMD} -e 's|^\.o :|kissdx: $$(OBJS)| ; \
+ /^all:/s| $$(OBJS)||' ${WRKSRC}/Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/kissdx ${PREFIX}/sbin/kissdx
- ${INSTALL_SCRIPT} ${WRKSRC}/kissd-pretrigger ${PREFIX}/sbin/kissd-pretrigger
- ${INSTALL_SCRIPT} ${WRKSRC}/kissd-posttrigger ${PREFIX}/sbin/kissd-posttrigger
- ${INSTALL_DATA} ${WRKSRC}/kissdx.conf ${PREFIX}/etc/kissdx.conf
- ${INSTALL_MAN} ${WRKSRC}/kissdx.1 ${MANPREFIX}/man/man1/kissdx.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/kissdx ${PREFIX}/sbin
+ ${INSTALL_SCRIPT} ${WRKSRC}/kissd-pretrigger ${PREFIX}/sbin
+ ${INSTALL_SCRIPT} ${WRKSRC}/kissd-posttrigger ${PREFIX}/sbin
+ ${INSTALL_DATA} ${WRKSRC}/kissdx.conf ${PREFIX}/etc
+ ${INSTALL_MAN} ${WRKSRC}/kissdx.1 ${MANPREFIX}/man/man1
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
post-install:
+ @${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
.include <bsd.port.mk>
diff --git a/multimedia/kissdx/pkg-descr b/multimedia/kissdx/pkg-descr
index 7c23d6f6ceb3..e07373bd539b 100644
--- a/multimedia/kissdx/pkg-descr
+++ b/multimedia/kissdx/pkg-descr
@@ -6,4 +6,4 @@ kissdx is a PC-Link clone based for the most part on kissd (which it now
replaces), with added features for media playback, management, flexibility and
more.
-WWW: http://kissdx.vidartysse.net
+WWW: http://kissdx.vidartysse.net/