diff options
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 845275c243f63..0a70ecaaed026 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 |