From cc2ab76018b80288e53c8ff74c1ada7e5f6a2dc7 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Sat, 8 Dec 2001 20:30:53 +0000 Subject: fix pkg-plist PR: 32623 Submitted by: Ports Fury --- math/GiNaC/Makefile | 32 ++++++++++++++++++-------------- math/GiNaC/files/patch-ltmain.sh | 32 ++++++++++++++++++++++++++++++++ math/GiNaC/pkg-plist | 11 +++-------- 3 files changed, 53 insertions(+), 22 deletions(-) create mode 100644 math/GiNaC/files/patch-ltmain.sh (limited to 'math') diff --git a/math/GiNaC/Makefile b/math/GiNaC/Makefile index b207b3657ac9..4745cb4f9e23 100644 --- a/math/GiNaC/Makefile +++ b/math/GiNaC/Makefile @@ -8,32 +8,36 @@ PORTNAME= GiNaC PORTVERSION= 1.0.1 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/ \ http://www.ginac.de/ MAINTAINER= ports@FreeBSD.org -USE_BZIP2= yes -LIB_DEPENDS= cln:${PORTSDIR}/math/cln +LIB_DEPENDS= cln.2:${PORTSDIR}/math/cln -USE_LIBTOOL= yes -USE_GMAKE= yes +USE_BZIP2= yes USE_NEWGCC= yes - +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + MAKEINFO="makeinfo --no-split" INSTALLS_SHLIB= yes -MAN1= ginsh.1 viewgar.1 ginac-config.1 +MAN1= ginac-config.1 ginsh.1 viewgar.1 + +post-extract: + @${RM} -f ${WRKSRC}/doc/tutorial/ginac.info* post-patch: - @${PERL} -pi -e "s,sstream,strstream,g" ${WRKSRC}/configure -.for file in numeric.cpp tostring.h - @${PERL} -pi -e "s,sstream,strstream,g ; \ - s,stringstream,strstream,g" ${WRKSRC}/ginac/${file} +.for file in configure ginac/numeric.cpp ginac/tostring.h + @${PERL} -pi -e 's|sstream|strstream|g ; \ + s|stringstream|strstream|g' ${WRKSRC}/${file} .endfor - -pre-build: - @(cd ${WRKSRC} ; \ - ${LN} -sf ${PREFIX}/bin/libtool) + @${PERL} -pi -e 's|-release \$$\(LT_RELEASE\)||g' \ + ${WRKSRC}/ginac/Makefile.in .include diff --git a/math/GiNaC/files/patch-ltmain.sh b/math/GiNaC/files/patch-ltmain.sh new file mode 100644 index 000000000000..a912d5a25e74 --- /dev/null +++ b/math/GiNaC/files/patch-ltmain.sh @@ -0,0 +1,32 @@ +--- ltmain.sh.orig Thu Nov 22 23:00:08 2001 ++++ ltmain.sh Fri Dec 7 23:34:47 2001 +@@ -1043,14 +1043,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 + ;; +@@ -4210,10 +4210,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/math/GiNaC/pkg-plist b/math/GiNaC/pkg-plist index 0f6604efc74c..10217b6060fa 100644 --- a/math/GiNaC/pkg-plist +++ b/math/GiNaC/pkg-plist @@ -5,9 +5,9 @@ include/ginac/add.h include/ginac/archive.h include/ginac/assertion.h include/ginac/basic.h -include/ginac/constant.h include/ginac/clifford.h include/ginac/color.h +include/ginac/constant.h include/ginac/ex.h include/ginac/expair.h include/ginac/expairseq.h @@ -39,16 +39,11 @@ include/ginac/tensor.h include/ginac/tinfos.h include/ginac/version.h include/ginac/wildcard.h -@dirrm include/ginac @unexec install-info --delete %D/info/ginac.info %D/info/dir info/ginac.info -info/ginac.info-1 -info/ginac.info-2 -info/ginac.info-3 -info/ginac.info-4 -info/ginac.info-5 @exec install-info %D/info/ginac.info %D/info/dir lib/libginac.a lib/libginac.so -lib/libginac-1.0.so.0 +lib/libginac.so.0 share/aclocal/ginac.m4 +@dirrm include/ginac -- cgit v1.2.3