aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xanim
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2002-06-02 06:03:31 +0800
committergallatin <gallatin@FreeBSD.org>2002-06-02 06:03:31 +0800
commit539a4c5a68b70ed723e3379dbe974a6c9399ff7d (patch)
treef4155e9f28e779e2b91c9ccc627606be7edf69f9 /graphics/xanim
parent7a409e66c6f3fdca17a4be71f44ad81f54bc2bc2 (diff)
downloadfreebsd-ports-gnome-539a4c5a68b70ed723e3379dbe974a6c9399ff7d.tar.gz
freebsd-ports-gnome-539a4c5a68b70ed723e3379dbe974a6c9399ff7d.tar.zst
freebsd-ports-gnome-539a4c5a68b70ed723e3379dbe974a6c9399ff7d.zip
Make this build and install cleanly on alpha so as to unblock the kde
build. Approved by: kris
Diffstat (limited to 'graphics/xanim')
-rw-r--r--graphics/xanim/Makefile16
-rw-r--r--graphics/xanim/files/patch-ab12
-rw-r--r--graphics/xanim/pkg-plist30
3 files changed, 35 insertions, 23 deletions
diff --git a/graphics/xanim/Makefile b/graphics/xanim/Makefile
index 29266b79fe43..0b829719d1dd 100644
--- a/graphics/xanim/Makefile
+++ b/graphics/xanim/Makefile
@@ -18,6 +18,7 @@ PATCHFILES= xanim-2801-to-2802-patch.gz
MAINTAINER= ports@FreeBSD.org
+.if (${MACHINE_ARCH} == "i386")
EXTRA_FILES= vid_cvid_2.1_freebsdELFx86.tgz \
vid_cyuv_1.0_freebsdELFx86.tgz \
vid_h261_1.0_freebsdELFx86.tgz \
@@ -25,19 +26,32 @@ EXTRA_FILES= vid_cvid_2.1_freebsdELFx86.tgz \
vid_iv32_2.1_freebsdELFx86.tgz \
vid_iv41_1.1_freebsdELFx86.tgz \
vid_iv50_1.0_freebsdELFx86.tgz
+
+DLLDIR= ${PREFIX}/lib/X11/xanim
+
+PLIST_SUB+= CODECS=""
+
+.else
+
+PLIST_SUB+= CODECS="@comment "
+
+.endif
+
USE_IMAKE= yes
MAN1= xanim.1
-DLLDIR= ${PREFIX}/lib/X11/xanim
MAKE_ARGS+= -j 2 # safe and helps even the single-CPU machines
post-extract:
${CP} ${WRKSRC}/docs/xanim.man ${WRKSRC}
+.if (${MACHINE_ARCH} == "i386")
post-install:
@${MKDIR} ${DLLDIR}
${INSTALL_DATA} ${WRKDIR}/*.readme ${DLLDIR}
${INSTALL_DATA} ${WRKDIR}/*.xa ${DLLDIR}
+.endif
+
.include <bsd.port.mk>
diff --git a/graphics/xanim/files/patch-ab b/graphics/xanim/files/patch-ab
index 48a6abd19637..8e3d9076c495 100644
--- a/graphics/xanim/files/patch-ab
+++ b/graphics/xanim/files/patch-ab
@@ -1,5 +1,5 @@
---- Imakefile.orig Sun Mar 21 16:36:26 1999
-+++ Imakefile Sat Jun 19 19:23:26 1999
+--- Imakefile.orig Sun Mar 21 17:36:26 1999
++++ Imakefile Thu Aug 2 14:48:37 2001
@@ -116,12 +116,12 @@
XCOMM XA_DLL_DEF = -DXA_DLL
XCOMM
@@ -35,20 +35,18 @@
XCOMM
XCOMM -- Linux PC's with OLD Rev sound drivers -------------------------------
XCOMM XA_AUDIO_DEFS = -DXA_LINUX_AUDIO -DXA_LINUX_OLDER_SND
-@@ -314,8 +314,10 @@
+@@ -314,8 +314,8 @@
XCOMM XA_AUDIO_LIBS = -lc
XCOMM
XCOMM -- Also FreeBSD, and BSDI with SBlast-BSD-1.5 (development stages)------
-XCOMM XA_AUDIO_DEFS = -DXA_LINUX_AUDIO
-XCOMM XA_AUDIO_LIBS = -lc
-+#ifdef i386Architecture
+XA_AUDIO_DEFS = -DXA_LINUX_AUDIO
+XA_AUDIO_LIBS = -lc
-+#endif
XCOMM
XCOMM -- TOWNS Linux 16 bit PCM ----------------------------------------------
XCOMM XA_AUDIO_DEFS = -DXA_TOWNS_AUDIO
-@@ -442,7 +444,7 @@
+@@ -442,7 +442,7 @@
XCOMM -- following symbols(XmbufDisplayBuffers, XmbufQueryExtension,
XCOMM -- XmbufCreateBuffers).
XCOMM -- NOTE_8: HP-UX machines need to comment this out.
@@ -57,7 +55,7 @@
XCOMM
XCOMM ###########
XCOMM
-@@ -465,7 +467,7 @@
+@@ -465,7 +465,7 @@
PROGRAMS = $(XANIM)
diff --git a/graphics/xanim/pkg-plist b/graphics/xanim/pkg-plist
index cf26d8c7ab7e..20542ee19e24 100644
--- a/graphics/xanim/pkg-plist
+++ b/graphics/xanim/pkg-plist
@@ -1,16 +1,16 @@
bin/xanim
-lib/X11/xanim/cvid.readme
-lib/X11/xanim/cyuv.readme
-lib/X11/xanim/h261.readme
-lib/X11/xanim/h263.readme
-lib/X11/xanim/iv32.readme
-lib/X11/xanim/iv41.readme
-lib/X11/xanim/iv50.readme
-lib/X11/xanim/vid_cvid_2.1_freebsdELFx86.xa
-lib/X11/xanim/vid_cyuv_1.0_freebsdELFx86.xa
-lib/X11/xanim/vid_h261_1.0_freebsdELFx86.xa
-lib/X11/xanim/vid_h263_1.0_freebsdELFx86.xa
-lib/X11/xanim/vid_iv32_2.1_freebsdELFx86.xa
-lib/X11/xanim/vid_iv41_1.1_freebsdELFx86.xa
-lib/X11/xanim/vid_iv50_1.0_freebsdELFx86.xa
-@dirrm lib/X11/xanim
+%%CODECS%%lib/X11/xanim/cvid.readme
+%%CODECS%%lib/X11/xanim/cyuv.readme
+%%CODECS%%lib/X11/xanim/h261.readme
+%%CODECS%%lib/X11/xanim/h263.readme
+%%CODECS%%lib/X11/xanim/iv32.readme
+%%CODECS%%lib/X11/xanim/iv41.readme
+%%CODECS%%lib/X11/xanim/iv50.readme
+%%CODECS%%lib/X11/xanim/vid_cvid_2.1_freebsdELFx86.xa
+%%CODECS%%lib/X11/xanim/vid_cyuv_1.0_freebsdELFx86.xa
+%%CODECS%%lib/X11/xanim/vid_h261_1.0_freebsdELFx86.xa
+%%CODECS%%lib/X11/xanim/vid_h263_1.0_freebsdELFx86.xa
+%%CODECS%%lib/X11/xanim/vid_iv32_2.1_freebsdELFx86.xa
+%%CODECS%%lib/X11/xanim/vid_iv41_1.1_freebsdELFx86.xa
+%%CODECS%%lib/X11/xanim/vid_iv50_1.0_freebsdELFx86.xa
+%%CODECS%%@dirrm lib/X11/xanim