Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 May 2014 15:23:45 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r355992 - in head/audio/xmcd: . files
Message-ID:  <201405311523.s4VFNjiO072322@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sat May 31 15:23:44 2014
New Revision: 355992
URL: http://svnweb.freebsd.org/changeset/ports/355992
QAT: https://qat.redports.org/buildarchive/r355992/

Log:
  audio/xmcd: Unbreak on !amd64, support DragonFly
  
  The staging attempted didn't go quite right as it was hardcoded for
  FreeBSD 9 AMD.  Since I'm fixing this anyway, bring in dports patches
  to support DragonFly.

Added:
  head/audio/xmcd/files/patch-install.sh   (contents, props changed)
Deleted:
  head/audio/xmcd/files/patch-ag
Modified:
  head/audio/xmcd/Makefile
  head/audio/xmcd/pkg-plist

Modified: head/audio/xmcd/Makefile
==============================================================================
--- head/audio/xmcd/Makefile	Sat May 31 15:21:36 2014	(r355991)
+++ head/audio/xmcd/Makefile	Sat May 31 15:23:44 2014	(r355992)
@@ -3,7 +3,7 @@
 
 PORTNAME=	xmcd
 PORTVERSION=	3.3.2
-PORTREVISION=	16
+PORTREVISION=	17
 CATEGORIES=	audio
 MASTER_SITES=	http://www.ibiblio.org/tkan/download/xmcd/3.3.2/src/
 
@@ -16,11 +16,11 @@ RUN_DEPENDS+=	lame:${PORTSDIR}/audio/lam
 
 USES=		imake motif
 USE_XORG=	x11 xext xaw xmu xp xpm xt sm ice
-PLIST_SUB+=	RELEASE=${OSREL:R:R} ARCH=${ARCH}
+PLIST_SUB+=	RELEASE=${OSREL:R:R} ARCH=${ARCH} OPSYS=${OPSYS}
 SUB_FILES=	pkg-message
 PKGMESSAGE=	${WRKDIR}/pkg-message
 
-LIBBINDIR=	${STAGEDIR}${PREFIX}/lib/X11/xmcd/bin-FreeBSD_${OSREL:R:R}-${ARCH}
+LIBBINDIR=	${STAGEDIR}${PREFIX}/lib/X11/xmcd/bin-${OPSYS}_${OSREL:R:R}-${ARCH}
 
 post-extract:
 	@${CHMOD} -R u+w ${WRKSRC}
@@ -70,7 +70,7 @@ post-install:
 		-e 's:${STAGEDIR}::' \
 		${STAGEDIR}${PREFIX}/lib/X11/xmcd/discog/discog.html \
 		${STAGEDIR}${PREFIX}/lib/X11/xmcd/config/config.sh \
-		${STAGEDIR}${PREFIX}/lib/X11/xmcd/bin-FreeBSD_9-amd64/README
+		${STAGEDIR}${PREFIX}/lib/X11/xmcd/bin-${OPSYS}_${OSREL:R:R}-${ARCH}/README
 	@${FIND} ${STAGEDIR} -name \*.bak -delete
 
 .include <bsd.port.mk>

Added: head/audio/xmcd/files/patch-install.sh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/xmcd/files/patch-install.sh	Sat May 31 15:23:44 2014	(r355992)
@@ -0,0 +1,20 @@
+--- install.sh.orig	2004-04-21 19:27:01.000000000 +0000
++++ install.sh
+@@ -625,7 +625,7 @@ if [ "$OS_SYS" = A/UX ]
+ then
+ 	# Apple A/UX
+ 	SHELL=/bin/ksh
+-elif [ "$OS_SYS" = FreeBSD ]
++elif [ "$OS_SYS" = FreeBSD -o "$OS_SYS" = DragonFly ]
+ then
+ 	# FreeBSD
+ 	OS_REL_T=`echo "$OS_REL_T" | sed 's/\..*$//'`
+@@ -1170,7 +1170,7 @@ make_dir $ARCHBIN $DIRPERM $OWNER $GROUP
+ make_dir $ARCHLIB $DIRPERM $OWNER $GROUP
+ make_dir $DISCOGDIR $GDIRPERM $OWNER $GROUP
+ 
+-if [ -n "$MANDIR" ]
++if [ -n "$MANDIR" -a ! -d "$MANDIR" ]
+ then
+ 	make_dir $MANDIR $DIRPERM $OWNER $GROUP
+ fi

Modified: head/audio/xmcd/pkg-plist
==============================================================================
--- head/audio/xmcd/pkg-plist	Sat May 31 15:21:36 2014	(r355991)
+++ head/audio/xmcd/pkg-plist	Sat May 31 15:23:44 2014	(r355992)
@@ -5,11 +5,11 @@ lib/X11/app-defaults/XMcd
 lib/X11/xmcd/app-defaults/XKeysymDB
 lib/X11/xmcd/app-defaults/XMcd
 lib/X11/xmcd/app-defaults/XMcd.sgi
-lib/X11/xmcd/bin-FreeBSD_%%RELEASE%%-%%ARCH%%/README
-lib/X11/xmcd/bin-FreeBSD_%%RELEASE%%-%%ARCH%%/cda
-lib/X11/xmcd/bin-FreeBSD_%%RELEASE%%-%%ARCH%%/gobrowser
-lib/X11/xmcd/bin-FreeBSD_%%RELEASE%%-%%ARCH%%/has_alsa
-lib/X11/xmcd/bin-FreeBSD_%%RELEASE%%-%%ARCH%%/xmcd
+lib/X11/xmcd/bin-%%OPSYS%%_%%RELEASE%%-%%ARCH%%/README
+lib/X11/xmcd/bin-%%OPSYS%%_%%RELEASE%%-%%ARCH%%/cda
+lib/X11/xmcd/bin-%%OPSYS%%_%%RELEASE%%-%%ARCH%%/gobrowser
+lib/X11/xmcd/bin-%%OPSYS%%_%%RELEASE%%-%%ARCH%%/has_alsa
+lib/X11/xmcd/bin-%%OPSYS%%_%%RELEASE%%-%%ARCH%%/xmcd
 lib/X11/xmcd/config/.tbl/Acer
 lib/X11/xmcd/config/.tbl/Apple
 lib/X11/xmcd/config/.tbl/Aztech
@@ -290,8 +290,8 @@ lib/X11/xmcd/scripts/genidx
 man/man1/cda.1.gz
 man/man1/xmcd.1.gz
 @dirrm lib/X11/xmcd/app-defaults
-@dirrm lib/X11/xmcd/bin-FreeBSD_%%RELEASE%%-%%ARCH%%
-@dirrmtry lib/X11/xmcd/lib-FreeBSD_%%RELEASE%%-%%ARCH%%
+@dirrm lib/X11/xmcd/bin-%%OPSYS%%_%%RELEASE%%-%%ARCH%%
+@dirrmtry lib/X11/xmcd/lib-%%OPSYS%%_%%RELEASE%%-%%ARCH%%
 @dirrm lib/X11/xmcd/config/.tbl
 @dirrm lib/X11/xmcd/config
 @dirrm lib/X11/xmcd/discog/Blues/General_Blues



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405311523.s4VFNjiO072322>