aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2002-03-06 22:34:49 +0800
committernobutaka <nobutaka@FreeBSD.org>2002-03-06 22:34:49 +0800
commit9fd76d06c7e1f51e3bfd36af2e62d7957facfc55 (patch)
treec7f0ecb5bbcf117402a1ceebe4d52db031912062 /graphics
parentf9569aedb1d4d8678feec0d20235bc24b4178b7a (diff)
downloadfreebsd-ports-gnome-9fd76d06c7e1f51e3bfd36af2e62d7957facfc55.tar.gz
freebsd-ports-gnome-9fd76d06c7e1f51e3bfd36af2e62d7957facfc55.tar.zst
freebsd-ports-gnome-9fd76d06c7e1f51e3bfd36af2e62d7957facfc55.zip
Support PTHREAD_CFLAGS/PTHREAD_LIBS properly. [*]
Avoid installing useless .la files. [*] Update MASTER_SITES and DISTFILES. PR: 34384 Submitted by: KATO Tsuguru <tkato@prontomail.com> [*] Approved by: maintainer
Diffstat (limited to 'graphics')
-rw-r--r--graphics/xine_d4d_plugin/Makefile19
-rw-r--r--graphics/xine_d4d_plugin/distinfo2
-rw-r--r--graphics/xine_d4d_plugin/files/patch-ltmain.sh49
-rw-r--r--graphics/xine_d4d_plugin/pkg-plist1
4 files changed, 68 insertions, 3 deletions
diff --git a/graphics/xine_d4d_plugin/Makefile b/graphics/xine_d4d_plugin/Makefile
index f9cb59938c5d..1b4cb5b2ae86 100644
--- a/graphics/xine_d4d_plugin/Makefile
+++ b/graphics/xine_d4d_plugin/Makefile
@@ -8,7 +8,9 @@
PORTNAME= xine_d4d_plugin
PORTVERSION= 0.3.0
CATEGORIES= graphics
-MASTER_SITES= http://www.geocities.com/captain_css/
+MASTER_SITES= http://worldzone.net/technology/captaincss/ \
+ http://debianlinux.net/
+DISTFILES= d4d030.txt
MAINTAINER= gibbon@cocoa.freemail.ne.jp
@@ -16,8 +18,23 @@ LIB_DEPENDS= xine.0:${PORTSDIR}/graphics/libxine
GNU_CONFIGURE= yes
USE_X_PREFIX= yes
+CONFIGURE_ENV= THREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ THREAD_LIBS="${PTHREAD_LIBS}"
INSTALLS_SHLIB= yes
+do-extract:
+ (${MKDIR} ${WRKDIR}; \
+ cd ${WRKDIR}; \
+ ${SH} ${DISTDIR}/${DISTFILES}; \
+ ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS})
+
+post-patch:
+ @${PERL} -pi -e \
+ 's|THREAD_LIBS=.*$$|THREAD_LIBS="\$$THREAD_LIBS"|g ; \
+ s|THREAD_CFLAGS=.*$$|THREAD_CFLAGS="\$$THREAD_CFLAGS"|g ; \
+ s|-L/usr/local/lib||g ; \
+ s|-I/usr/local/include||g' ${WRKSRC}/configure
+
post-install:
@${CAT} ${PKGMESSAGE}
diff --git a/graphics/xine_d4d_plugin/distinfo b/graphics/xine_d4d_plugin/distinfo
index 00e57d8df6b7..727f8050af62 100644
--- a/graphics/xine_d4d_plugin/distinfo
+++ b/graphics/xine_d4d_plugin/distinfo
@@ -1 +1 @@
-MD5 (xine_d4d_plugin-0.3.0.tar.gz) = 5d9d4f35571505a79b5f6dc81c03c82e
+MD5 (d4d030.txt) = 0bdb45fa4a7c7116b9ed1875941707e7
diff --git a/graphics/xine_d4d_plugin/files/patch-ltmain.sh b/graphics/xine_d4d_plugin/files/patch-ltmain.sh
new file mode 100644
index 000000000000..c77cdbdf23c4
--- /dev/null
+++ b/graphics/xine_d4d_plugin/files/patch-ltmain.sh
@@ -0,0 +1,49 @@
+--- ltmain.sh.orig Mon Nov 12 16:27:33 2001
++++ ltmain.sh Fri Jan 25 23:31:44 2002
+@@ -956,6 +956,7 @@
+ ;;
+
+ -avoid-version)
++ build_old_libs=no
+ avoid_version=yes
+ continue
+ ;;
+@@ -1043,14 +1044,14 @@
+ # These systems don't actually have a C library (as such)
+ test "X$arg" = "X-lc" && continue
+ ;;
+- *-*-openbsd*)
++ *-*-openbsd* | *-*-freebsd*)
+ # Do not include libc due to us having libc/libc_r.
+ test "X$arg" = "X-lc" && continue
+ ;;
+ esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+- *-*-openbsd*)
++ *-*-openbsd* | *-*-freebsd*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
+@@ -2446,7 +2447,7 @@
+ *-*-netbsd*)
+ # Don't link with libc until the a.out ld.so is fixed.
+ ;;
+- *-*-openbsd*)
++ *-*-openbsd* | *-*-freebsd*)
+ # Do not include libc due to us having libc/libc_r.
+ ;;
+ *)
+@@ -4215,10 +4216,12 @@
+ fi
+
+ # Install the pseudo-library for information purposes.
++ if /usr/bin/false; then
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ instname="$dir/$name"i
+ $show "$install_prog $instname $destdir/$name"
+ $run eval "$install_prog $instname $destdir/$name" || exit $?
++ fi
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
diff --git a/graphics/xine_d4d_plugin/pkg-plist b/graphics/xine_d4d_plugin/pkg-plist
index 6ff9851fb2c5..166c6bd880a2 100644
--- a/graphics/xine_d4d_plugin/pkg-plist
+++ b/graphics/xine_d4d_plugin/pkg-plist
@@ -1,3 +1,2 @@
-lib/xine/plugins/xineplug_inp_d4d.la
lib/xine/plugins/xineplug_inp_d4d.so
@unexec rmdir %D/lib/xine/plugins 2>/dev/null || true