PROJECT_NAME = libogg PROJECT_NAME = libogg PROJECT_VERSION = 1.3.4 THIRDPARTY_LIBRARY_TARGETS = libogg INSTALLED_TARGETS = ${THIRDPARTY_LIBRARY_TARGETS} PLATFORMS_${THIRDPARTY_LIBRARY_TARGETS} = macosx linux windows android iphonesimulator iphoneos THIRDPARTY_LIBRARY_PRISTINE_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS} = libogg-1.3.4 #Patterns: BUILT_LIBRARY_LOCATION_${target}, BUILT_LIBRARY_LOCATION_${target}_${platform}; define one or the other, not both. Can be multiple files. BUILT_LIBRARY_LOCATION_${THIRDPARTY_LIBRARY_TARGETS} = ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/src/.libs/libogg.a THIRDPARTY_LIBRARY_DEPENDENCIES = LINKFLAGS = INCLUDES = \ ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/include/ogg/config_types.h \ ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/include/ogg/ogg.h \ ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/include/ogg/os_types.h define ${THIRDPARTY_LIBRARY_TARGETS}_build_commands_macosx #(arch) #os_types.h includes instead of , which defines uint*_t as u_int_*_t, but ogg expects the stdint version; add #include to fix cp "${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/include/ogg/os_types.h" "${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/include/ogg/os_types.h_original" ruby -e "print STDIN.read.gsub(/# include /, \"#include \n#include \")" < "${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/include/ogg/os_types.h_original" > "${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/include/ogg/os_types.h" cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ export CC="${CC_macosx_$1} ${CCFLAGS_macosx} ${CCFLAGS_macosx_$1}"; \ export AR="${AR_macosx}"; \ export RANLIB="${RANLIB_macosx}"; \ ./configure && \ ${MAKE} endef define ${THIRDPARTY_LIBRARY_TARGETS}_clean_commands_macosx #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ ${MAKE} clean endef define ${THIRDPARTY_LIBRARY_TARGETS}_build_commands_windows #(arch) cp "${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/configure" "${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/configure_original" ruby -e "print STDIN.read.gsub(/am__api_version='1.16'/, \"am__api_version='1.11'\")" < "${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/configure_original" > "${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}/configure" cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ export CC="${CC_windows_$1} ${CCFLAGS_windows_$1}"; \ export AR="${AR_windows_$1}"; \ export RANLIB="${RANLIB_windows_$1}"; \ sh configure && \ ${MAKE} endef define ${THIRDPARTY_LIBRARY_TARGETS}_clean_commands_windows #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ ${MAKE} clean endef define ${THIRDPARTY_LIBRARY_TARGETS}_build_commands_linux #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ export CC="${CC_linux_$1} ${CCFLAGS_linux_$1}"; \ export LD="${CC_linux_$1} ${CCFLAGS_linux_$1}"; \ ./configure && \ ${MAKE} endef define ${THIRDPARTY_LIBRARY_TARGETS}_clean_commands_linux #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ ${MAKE} clean endef define ${THIRDPARTY_LIBRARY_TARGETS}_build_commands_iphoneos #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ export CC="${CC_macosx_$1} ${CCFLAGS_macosx} ${CCFLAGS_macosx_$1}"; \ export AR="${AR_macosx}"; \ export RANLIB="${RANLIB_macosx}"; \ ./configure --host=$1-apple-darwin9 && \ ${MAKE} endef define ${THIRDPARTY_LIBRARY_TARGETS}_clean_commands_iphoneos #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ ${MAKE} clean endef define ${THIRDPARTY_LIBRARY_TARGETS}_build_commands_iphonesimulator #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ export CC="${CC_macosx_$1} ${CCFLAGS_macosx} ${CCFLAGS_macosx_$1}"; \ export AR="${AR_macosx}"; \ export RANLIB="${RANLIB_macosx}"; \ ./configure --host=$1-apple-darwin9 && \ ${MAKE} endef define ${THIRDPARTY_LIBRARY_TARGETS}_clean_commands_iphonesimulator #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ ${MAKE} clean endef define ${THIRDPARTY_LIBRARY_TARGETS}_build_commands_android #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ export CC="${CC_macosx_$1} ${CCFLAGS_macosx} ${CCFLAGS_macosx_$1}"; \ export AR="${AR_macosx}"; \ export RANLIB="${RANLIB_macosx}"; \ ./configure --host=$1-linux-androideabi28 && \ ${MAKE} endef define ${THIRDPARTY_LIBRARY_TARGETS}_clean_commands_android #(arch) cd ${THIRDPARTY_LIBRARY_WORKING_SUBDIR_${THIRDPARTY_LIBRARY_TARGETS}}; \ ${MAKE} clean endef # Postamble to invoke stemconfig makefile. Do not modify. UNAME = ${shell uname} ifeq (${UNAME},Linux) STEM_SHARED_DIR ?= /usr/local/stem else ifeq (${UNAME},Darwin) STEM_SHARED_DIR ?= /usr/local/stem else STEM_SHARED_DIR ?= C:/stem endif include ${STEM_SHARED_DIR}/Makefile.global