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
This commit is contained in:
MANTANI Nobutaka 2002-03-06 14:34:49 +00:00
parent c308510803
commit bcd34f18be
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=55638
8 changed files with 136 additions and 6 deletions

View file

@ -8,7 +8,9 @@
PORTNAME= xine_d4d_plugin PORTNAME= xine_d4d_plugin
PORTVERSION= 0.3.0 PORTVERSION= 0.3.0
CATEGORIES= graphics 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 MAINTAINER= gibbon@cocoa.freemail.ne.jp
@ -16,8 +18,23 @@ LIB_DEPENDS= xine.0:${PORTSDIR}/graphics/libxine
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USE_X_PREFIX= yes USE_X_PREFIX= yes
CONFIGURE_ENV= THREAD_CFLAGS="${PTHREAD_CFLAGS}" \
THREAD_LIBS="${PTHREAD_LIBS}"
INSTALLS_SHLIB= yes 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: post-install:
@${CAT} ${PKGMESSAGE} @${CAT} ${PKGMESSAGE}

View file

@ -1 +1 @@
MD5 (xine_d4d_plugin-0.3.0.tar.gz) = 5d9d4f35571505a79b5f6dc81c03c82e MD5 (d4d030.txt) = 0bdb45fa4a7c7116b9ed1875941707e7

View file

@ -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"

View file

@ -1,3 +1,2 @@
lib/xine/plugins/xineplug_inp_d4d.la
lib/xine/plugins/xineplug_inp_d4d.so lib/xine/plugins/xineplug_inp_d4d.so
@unexec rmdir %D/lib/xine/plugins 2>/dev/null || true @unexec rmdir %D/lib/xine/plugins 2>/dev/null || true

View file

@ -8,7 +8,9 @@
PORTNAME= xine_d4d_plugin PORTNAME= xine_d4d_plugin
PORTVERSION= 0.3.0 PORTVERSION= 0.3.0
CATEGORIES= graphics 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 MAINTAINER= gibbon@cocoa.freemail.ne.jp
@ -16,8 +18,23 @@ LIB_DEPENDS= xine.0:${PORTSDIR}/graphics/libxine
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USE_X_PREFIX= yes USE_X_PREFIX= yes
CONFIGURE_ENV= THREAD_CFLAGS="${PTHREAD_CFLAGS}" \
THREAD_LIBS="${PTHREAD_LIBS}"
INSTALLS_SHLIB= yes 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: post-install:
@${CAT} ${PKGMESSAGE} @${CAT} ${PKGMESSAGE}

View file

@ -1 +1 @@
MD5 (xine_d4d_plugin-0.3.0.tar.gz) = 5d9d4f35571505a79b5f6dc81c03c82e MD5 (d4d030.txt) = 0bdb45fa4a7c7116b9ed1875941707e7

View file

@ -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"

View file

@ -1,3 +1,2 @@
lib/xine/plugins/xineplug_inp_d4d.la
lib/xine/plugins/xineplug_inp_d4d.so lib/xine/plugins/xineplug_inp_d4d.so
@unexec rmdir %D/lib/xine/plugins 2>/dev/null || true @unexec rmdir %D/lib/xine/plugins 2>/dev/null || true