diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-19 18:21:23 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-19 18:21:23 -0400 |
commit | 61d6bea8c35ef90b3155d3d289d2e9e02c289ebe (patch) | |
tree | fd59dc634f835d3f55793f0d32bf516b61b83020 /libraries | |
parent | eae1304b341852c6637773a3ce249b71e7555602 (diff) |
libraries/vdk: Fix man page.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/vdk/vdk-config-2.1 | 60 | ||||
-rw-r--r-- | libraries/vdk/vdk.SlackBuild | 31 |
2 files changed, 78 insertions, 13 deletions
diff --git a/libraries/vdk/vdk-config-2.1 b/libraries/vdk/vdk-config-2.1 new file mode 100644 index 0000000000000..5ad0b37e212cf --- /dev/null +++ b/libraries/vdk/vdk-config-2.1 @@ -0,0 +1,60 @@ +.TH VDK 1 "" 2.0.0 SlackBuild.org +.SH NAME +vdk-config - The VDK (2) C++ Library config script +.SH SYNOPSIS +.B vdk-config-2 +[\-v +\-\-version] +[\-h +\-\-help] +[\-l +\-\-libs] +[\-\-libs\-only\-L] +[\-\-libs\-only\-l] +[\-c +\-\-cflags] +[\-d +\-\-define] +.SH DESCRIPTION +.PP +\fIvdk-config-2\fP is a tool that is used to configure to determine +the compiler and linker flags that should be used to compile +and link programs that use \fIVDK(2)\fP. It is also used internally +to the .m4 macros for GNU autoconf that are included with \fIVDK(2)\fP. +. +.SH OPTIONS +.l +\fIvdk-config\fP accepts the following options: +.TP 8 +.B \-v \-\-version +Print the currently installed version of \fIVDK\fP on the standard output. +.TP 8 +.B \-h \-\-help +Print a short help on the standard output. +.TP 8 +.B \-l \-\-libs +Print the linker flags that are necessary to link a \fIVDK\fP program. +.TP 8 +.B \-\-libs\-only\-L +Print only the \-L/\-R part of the \-\-libs. +.TP 8 +.B \-\-libs\-only\-l +Print only the \-l part of the \-\-libs. +.TP 8 +.B \-c \-\-cflags +Print the compiler flags that are necessary to compile a \fIVDK(2)\fP program. +.TP 8 +.B \-d \-\-define +Add to the compiler flags a \fI-D_VDK_\fP. +.SH SEE ALSO +.BR gtk-config-2.0 (1), +.BR /usr/doc/vdk-@VERSION@/vdk-config-2.txt +.SH COPYRIGHT +Copyright \(co 2000 VDK Team +Copyright \(co 1998 Owen Taylor + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation. diff --git a/libraries/vdk/vdk.SlackBuild b/libraries/vdk/vdk.SlackBuild index 9ecc18cc19111..79a331d6447ff 100644 --- a/libraries/vdk/vdk.SlackBuild +++ b/libraries/vdk/vdk.SlackBuild @@ -22,11 +22,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220419 bkw: Modified by SlackBuilds.org, BUILD=3: +# - install an actual man page in /usr/man. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=vdk VERSION=${VERSION:-2.5.1} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +41,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -75,9 +75,9 @@ cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -89,17 +89,22 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG - -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +make install-strip DESTDIR=$PKG -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +# 20220419 bkw: the "man page" isn't actually a man page. replace it +# with the one from Debian and modified slightly. +rm -f $PKG/usr/man/man1/vdk-config-2.1 +sed "s,@VERSION@,$VERSION," < $CWD/vdk-config-2.1 | \ + gzip -9c > $PKG/usr/man/man1/vdk-config-2.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO \ +cp -a AUTHORS BUGS COPYING ChangeLog NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION + +# 20220419 bkw: include the text file that would have gotten installed +# in /usr/man/man1. +cp -a doc/vdk-config-2.1 $PKG/usr/doc/$PRGNAM-$VERSION/vdk-config-2.txt + cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild rm -f $PKG/usr/lib*/*.la |