wok-next annotate audacious/receipt @ rev 20486
outguess: fix install path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 12 10:46:52 2018 +0100 (2018-03-12) |
parents | d0bc8a3d010a |
children | 757d032c55c7 |
rev | line source |
---|---|
al@20415 | 1 # SliTaz package receipt v2. |
mimas@2030 | 2 |
mimas@2030 | 3 PACKAGE="audacious" |
al@20415 | 4 VERSION="3.9" |
mimas@2030 | 5 CATEGORY="multimedia" |
al@20415 | 6 SHORT_DESC="A lightweight and versatile audio player" |
al@20415 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@20415 | 8 LICENSE="BSD" |
al@19275 | 9 WEB_SITE="http://audacious-media-player.org/" |
al@20415 | 10 |
pascal@15861 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@12322 | 12 WGET_URL="http://distfiles.audacious-media-player.org/$TARBALL" |
mimas@2030 | 13 |
al@20415 | 14 BUILD_DEPENDS="glib-dev qt5-dev gettext gtk+-dev" |
al@20415 | 15 SPLIT="audacious audacious-qt:qt audacious-common \ |
al@20415 | 16 audacious-dev audacious-qt-dev:qt" |
al@20416 | 17 COOKOPTS="!menus" |
pascal@15023 | 18 |
al@20415 | 19 compile_rules() { |
al@20415 | 20 case $SET in |
al@20415 | 21 '') SET_ARGS='';; |
al@20415 | 22 qt) SET_ARGS='--disable-gtk --enable-qt';; |
al@20415 | 23 esac |
al@19275 | 24 |
al@20415 | 25 fix ld |
mimas@2030 | 26 ./configure \ |
al@20415 | 27 --with-buildstamp='SliTaz GNU/Linux' \ |
al@20415 | 28 $SET_ARGS \ |
slaxemulator@5364 | 29 $CONFIGURE_ARGS && |
al@20415 | 30 sed -i 's|-shared|& -Wl,-Os,--as-needed|g' buildsys.mk m4/buildsys.m4 && |
slaxemulator@5364 | 31 make && |
al@20415 | 32 make install || return 1 |
al@20415 | 33 |
al@20415 | 34 chown -R root:root $install |
mimas@2030 | 35 } |
mimas@2030 | 36 |
al@20415 | 37 genpkg_rules() { |
al@20415 | 38 case $PACKAGE in |
al@20415 | 39 audacious) |
al@20415 | 40 copy audacious libaudcore.so* libaudgui.so* |
al@20415 | 41 DEPENDS="audacious-common cairo gdk-pixbuf gtk+ pango" |
al@20415 | 42 CAT="multimedia|GTK+2 GUI" |
al@20415 | 43 TAGS="music audio player" |
al@20415 | 44 ;; |
al@20415 | 45 audacious-qt) |
al@20415 | 46 copy audacious libaudcore.so* libaudqt.so* |
al@20415 | 47 DEPENDS="audacious-common qt5-base" |
al@20415 | 48 CAT="multimedia|Qt5 GUI" |
al@20415 | 49 TAGS="music audio player" |
al@20415 | 50 ;; |
al@20415 | 51 audacious-common) |
al@20415 | 52 copy @std @rm |
al@20415 | 53 DEPENDS="glib" |
al@20415 | 54 ;; |
al@20415 | 55 |
al@20415 | 56 audacious-dev) |
al@20415 | 57 copy @dev |
al@20415 | 58 DEPENDS="audacious" |
al@20415 | 59 ;; |
al@20415 | 60 audacious-qt-dev) |
al@20415 | 61 copy libaudqt/ # all the rest found in audacious-dev |
al@20415 | 62 DEPENDS="audacious-qt audacious-dev" |
al@20415 | 63 ;; |
al@20415 | 64 esac |
mimas@2030 | 65 } |