diff options
author | Hunter Sezen <ovariegata@yahoo.com> | 2017-12-19 21:33:18 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-12-21 08:19:23 +0700 |
commit | 50a8776beddf80255d19c07b7a9fbda1f13f9d95 (patch) | |
tree | b2d6bd64bc51508b94b54ad427dd19543596a598 /libraries/libcdr/libcdr.SlackBuild | |
parent | 9aac61f4af166620e0b428d0a4507eb68ffba47e (diff) | |
download | slackbuilds-50a8776beddf80255d19c07b7a9fbda1f13f9d95.tar.gz |
libraries/libcdr: Updated for version 0.1.4.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/libcdr/libcdr.SlackBuild')
-rw-r--r-- | libraries/libcdr/libcdr.SlackBuild | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/libraries/libcdr/libcdr.SlackBuild b/libraries/libcdr/libcdr.SlackBuild index 845275c243..0a70ecaaed 100644 --- a/libraries/libcdr/libcdr.SlackBuild +++ b/libraries/libcdr/libcdr.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libcdr -VERSION=${VERSION:-0.1.3} +VERSION=${VERSION:-0.1.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -54,7 +54,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -69,11 +69,15 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -DOC=${DOC:-no} -if [ ! "$DOC" = "yes" ]; then - doc="--without-docs" +case "${DOC:-0}" in + 0) doc='--without-docs' ;; + *) doc='--with-docs' ;; +esac + +if pkg-config --exists cppunit; then + cppunit='--enable-tests' else - doc="" + cppunit='--disable-tests' fi CFLAGS="$SLKCFLAGS" \ @@ -82,8 +86,9 @@ CXXFLAGS="$SLKCFLAGS" \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-werror \ --build=$ARCH-slackware-linux \ - $doc + $cppunit $doc make make install DESTDIR=$PKG |