Changeset 5885:e1f3bdc847fa in roaraudio


Ignore:
Timestamp:
01/27/13 04:15:34 (6 years ago)
Author:
phi
Branch:
default
Message:

added support to install plugins

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • build-system/Makefile.install

    r5787 r5885  
    4141        mkdir -p '$(DESTDIR)$(PREFIX_MAN)'/man3/ 
    4242        mkdir -p '$(DESTDIR)$(PREFIX_CKPORT)' 
     43prep-install-dirs-plugin: 
     44        mkdir -p '$(DESTDIR)$(PLUGIN_PATH)' 
    4345 
    4446prep-install-bin: all prep-install-dirs-bin 
     
    4648prep-install-header: all prep-install-dirs-header 
    4749prep-install-lib: all prep-install-dirs-lib 
     50prep-install-plugin: all prep-install-dirs-plugin 
    4851 
    4952# this works for both, -bin and -tools 
     
    5962        sh -c 'set -e; for file in $(MANPAGE_3);  do cp $(cp_v) $$file '$(DESTDIR)$(PREFIX_MAN)'/man3/; done' 
    6063#       cp $(cp_v) $(CKPORTDB) 
     64install-plugin: prep-install-plugin 
     65        cp $(cp_v) $(TARGETS) '$(DESTDIR)$(PLUGIN_PATH)'/ 
    6166 
    6267semi-install-bin: prep-install-bin 
     
    7277        sh -c 'set -e; for file in $(HEADERS);    do ln -fs `pwd`/$(HEADERS_DIR)/$$file '$(DESTDIR)$(PREFIX_INC)'/'$(HEADER_PREFIX)'; done' 
    7378        sh -c 'set -e; for file in $(MANPAGE_3);  do ln -fs `pwd`/$$file '$(DESTDIR)$(PREFIX_MAN)'/man3/; done' 
     79semi-install-plugin: prep-install-plugin 
     80        sh -c 'set -e; for file in $(TARGETS);    do ln -fs `pwd`/$$file '$(DESTDIR)$(PLUGIN_PATH)/'; done' 
    7481 
    7582uninstall-bin: 
     
    8592        sh -c 'set -e; for file in $(HEADERS);    do rm -f '$(DESTDIR)$(PREFIX_INC)'/'$(HEADER_PREFIX)/'$$file; done' 
    8693        sh -c 'set -e; for file in $(MANPAGE_3);  do rm -f '$(DESTDIR)$(PREFIX_MAN)/man3/$$file'; done' 
     94uninstall-plugin: 
     95        sh -c 'set -e; for file in $(TARGETS);    do rm -f '$(DESTDIR)$(PLUGIN_PATH)/'$$file; done' 
  • build-system/Makefile.plugin

    r5775 r5885  
    2727LIBS        += $(ROAR_LIBS) 
    2828 
     29#        cp $(cp_v) ${TARGETS} '$(DESTDIR)$(PREFIX_PLUGINS)/universal/universal/$(DEV_VENDOR)-$(DEV_VENDOR_NAME)/' 
     30 
     31PLUGIN_VENDOR  ?= <$(DEV_VENDOR_STRING)> 
     32PLUGIN_PRODUCT_NAME ?= DUMMY 
     33PLUGIN_PRODUCT ?= $(PLUGIN_PRODUCT_NAME) $(PLUGIN_VENDOR) 
     34PLUGIN_PATH    := $(shell roar-config --product '$(PLUGIN_PRODUCT)' --provider '$(PLUGIN_VENDOR)' --path prefix-plugins) 
     35 
     36RABS_INSTALL_TARGETS += plugin 
     37 
    2938include $(ROAR_BUILDSYSTEM_DIR)/Makefile.common 
     39include $(ROAR_BUILDSYSTEM_DIR)/Makefile.install 
  • build-system/configure.lib

    r5878 r5885  
    3636 echo "Error: $_object is missing but required." 
    3737 exit 1 
     38} 
     39 
     40set_dev_vendor() { 
     41 if [ "$#" = '2' ] 
     42 then 
     43  DEV_VENDOR="$1" 
     44  DEV_VENDOR_NAME="$2" 
     45  DEV_VENDOR_STRING="$DEV_VENDOR/$DEV_VENDOR_NAME" 
     46 else 
     47  DEV_VENDOR='' 
     48  DEV_VENDOR_NAME="$1" 
     49  DEV_VENDOR_STRING="$DEV_VENDOR_NAME" 
     50 fi 
     51} 
     52 
     53set_std_vendor() { 
     54 if [ "$#" = '2' ] 
     55 then 
     56  STD_VENDOR="$1" 
     57  STD_VENDOR_NAME="$2" 
     58  STD_VENDOR_STRING="$STD_VENDOR/$STD_VENDOR_NAME" 
     59 else 
     60  STD_VENDOR='' 
     61  STD_VENDOR_NAME="$1" 
     62  STD_VENDOR_STRING="$STD_VENDOR_NAME" 
     63 fi 
    3864} 
    3965 
     
    441467  echo "DISTRIBUTION_VERSION_STRING=$DISTRIBUTION_VERSION_STRING" 
    442468  echo 
     469  [ "$DEV_VENDOR"        != '' ] && echo "DEV_VENDOR=$DEV_VENDOR" 
     470  [ "$DEV_VENDOR_NAME"   != '' ] && echo "DEV_VENDOR_NAME=$DEV_VENDOR_NAME" 
     471  [ "$DEV_VENDOR_STRING" != '' ] && echo "DEV_VENDOR_STRING=$DEV_VENDOR_STRING" 
     472  [ "$STD_VENDOR"        != '' ] && echo "STD_VENDOR=$STD_VENDOR" 
     473  [ "$STD_VENDOR_NAME"   != '' ] && echo "STD_VENDOR_NAME=$STD_VENDOR_NAME" 
     474  [ "$STD_VENDOR_STRING" != '' ] && echo "STD_VENDOR_STRING=$STD_VENDOR_STRING" 
     475  echo 
    443476  echo "TARGET_TYPE=$TARGET_TYPE" 
    444477  echo "SHARED=$SHARED" 
  • build-system/configure.vars

    r5869 r5885  
    3434DISTRIBUTION_VERSION_STRING='' 
    3535 
     36DEV_VENDOR='' 
     37DEV_VENDOR_NAME='' 
     38DEV_VENDOR_STRING='' 
     39STD_VENDOR='' 
     40STD_VENDOR_NAME='' 
     41STD_VENDOR_STRING='' 
    3642 
    3743TF_C=testit.c 
  • configure

    r5877 r5885  
    1313 
    1414# IDs officaly assigned 
    15 DEV_VENDOR=0 
    16 DEV_VENDOR_NAME='RoarAudio' 
     15set_dev_vendor 0 'RoarAudio' 
     16set_std_vendor 0 'RoarAudio' 
    1717#-------- 
    1818 
     
    497497write_header_makefileconf 
    498498{ 
    499  echo "DEV_VENDOR=$DEV_VENDOR" 
    500  echo "DEV_VENDOR_NAME=$DEV_VENDOR_NAME" 
    501  echo "DEV_VENDOR_STRING=$DEV_VENDOR/$DEV_VENDOR_NAME" 
    502  echo 
    503499 echo "COMPBIN_SUFFIX=$COMPBIN_SUFFIX" 
    504500 echo 
     
    532528 echo "#define ROAR_DEV_VENDOR        $DEV_VENDOR" 
    533529 echo "#define ROAR_DEV_VENDOR_NAME   \"$DEV_VENDOR_NAME\"" 
    534  echo "#define ROAR_DEV_VENDOR_STRING \"$DEV_VENDOR/$DEV_VENDOR_NAME\"" 
     530 echo "#define ROAR_DEV_VENDOR_STRING \"$DEV_VENDOR_STRING\"" 
    535531 echo 
    536532 [ "$DEFAULT_RATE"        = '' ] || echo "#define ROAR_RATE_DEFAULT     $DEFAULT_RATE" 
Note: See TracChangeset for help on using the changeset viewer.