Update distdir generation
The list of files to include was out of date and only included files for dependencies which were actually enabled, and the script was FreeBSD-specific. Originally committed to SVN as r6298.
This commit is contained in:
parent
a586e7e58f
commit
3ed84ba70d
9 changed files with 81 additions and 49 deletions
|
@ -39,6 +39,8 @@ EXTRA_DIST = \
|
||||||
configure \
|
configure \
|
||||||
svn_revision \
|
svn_revision \
|
||||||
config.log \
|
config.log \
|
||||||
|
config.sub \
|
||||||
|
config.guess \
|
||||||
install-sh \
|
install-sh \
|
||||||
Makefile.inc.in \
|
Makefile.inc.in \
|
||||||
Makefile.target
|
Makefile.target
|
||||||
|
@ -46,13 +48,14 @@ EXTRA_DIST = \
|
||||||
|
|
||||||
# m4macros/
|
# m4macros/
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
m4macros/check_gnu_make.m4 \
|
|
||||||
m4macros/acx_pthread.m4 \
|
|
||||||
m4macros/ac_agi.m4 \
|
m4macros/ac_agi.m4 \
|
||||||
m4macros/ax_lang_compiler_ms.m4 \
|
|
||||||
m4macros/ac_agi_mdcpucfg.m4 \
|
m4macros/ac_agi_mdcpucfg.m4 \
|
||||||
|
m4macros/ac_flag.m4 \
|
||||||
|
m4macros/agi_find_libheader.m4 \
|
||||||
m4macros/ax_check_gl.m4 \
|
m4macros/ax_check_gl.m4 \
|
||||||
m4macros/ac_flag.m4
|
m4macros/ax_lang_compiler_ms.m4 \
|
||||||
|
m4macros/ax_pthread.m4 \
|
||||||
|
m4macros/check_gnu_make.m4
|
||||||
|
|
||||||
# packages/osx_bundle/
|
# packages/osx_bundle/
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
|
|
|
@ -113,10 +113,10 @@ distdir:
|
||||||
echo "Please run this from the parent directory."; \
|
echo "Please run this from the parent directory."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
${SHELL} packages/distfile/distfile.sh
|
${SHELL} packages/distfile/distfile.sh $(MAKE) aegisub-pkg
|
||||||
|
|
||||||
distfiles: $(SUBDIRS)
|
distfiles: $(SUBDIRS)
|
||||||
@for i in $(SRC) $(HEADER) $(EXTRA_DIST); do \
|
@for i in $(SRC) $(HEADER) $(PO) $(EXTRA_DIST); do \
|
||||||
echo $(CURDIR)/$$i; \
|
echo $(CURDIR)/$$i; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@ DATA_AUTOMATION += \
|
||||||
autoload/karaoke-auto-leadin.lua \
|
autoload/karaoke-auto-leadin.lua \
|
||||||
autoload/macro-1-edgeblur.lua \
|
autoload/macro-1-edgeblur.lua \
|
||||||
autoload/macro-2-mkfullwitdh.lua \
|
autoload/macro-2-mkfullwitdh.lua \
|
||||||
|
autoload/select-overlaps.lua \
|
||||||
|
autoload/strip-tags.lua \
|
||||||
include/cleantags.lua \
|
include/cleantags.lua \
|
||||||
include/karaskel-auto4.lua \
|
include/karaskel-auto4.lua \
|
||||||
include/karaskel.lua \
|
include/karaskel.lua \
|
||||||
|
|
|
@ -19,7 +19,7 @@ endif
|
||||||
common/charset_conv.o: CXXFLAGS += $(CFLAGS_ICONV)
|
common/charset_conv.o: CXXFLAGS += $(CFLAGS_ICONV)
|
||||||
unix/path.o: CXXFLAGS += -DP_DATA=\"$(P_DATA)\" -DP_DOC=\"$(P_DOC)\" -DP_LOCALE=\"$(P_LOCALE)\"
|
unix/path.o: CXXFLAGS += -DP_DATA=\"$(P_DATA)\" -DP_DOC=\"$(P_DOC)\" -DP_LOCALE=\"$(P_LOCALE)\"
|
||||||
|
|
||||||
SRC = \
|
SRC += \
|
||||||
common/cajun/elements.cpp \
|
common/cajun/elements.cpp \
|
||||||
common/cajun/reader.cpp \
|
common/cajun/reader.cpp \
|
||||||
common/cajun/writer.cpp \
|
common/cajun/writer.cpp \
|
||||||
|
@ -49,10 +49,14 @@ SRC += \
|
||||||
osx/util.cpp
|
osx/util.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
HEADERS = \
|
HEADER += \
|
||||||
|
*.h \
|
||||||
*/*.h \
|
*/*.h \
|
||||||
include/aegisub/*.h \
|
include/libaegisub/*.h \
|
||||||
include/aegisub/cajun/*.h
|
include/libaegisub/charsets.def \
|
||||||
|
include/libaegisub/cajun/*.h
|
||||||
|
|
||||||
|
EXTRA_DIST += osx/util.cpp
|
||||||
|
|
||||||
|
|
||||||
include ../Makefile.target
|
include ../Makefile.target
|
||||||
|
|
|
@ -1,26 +1,22 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
SRCDIR=`pwd`
|
SRCDIR=`pwd`
|
||||||
TMPFILE=`mktemp /tmp/aegisub_dist.XXXXXX`
|
MAKE=$1
|
||||||
EXTRA=`find . -name Makefile -or -name wscript`
|
DISTDIR=$2
|
||||||
distdir?=aegisub-pkg
|
|
||||||
|
|
||||||
rm -rf aegisub-pkg
|
rm -rf $DISTDIR
|
||||||
|
|
||||||
if ! test -d src; then
|
if ! test -d src; then
|
||||||
echo "Please run this from the parent directory.";
|
echo "Please run this from the parent directory.";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gmake distfiles \
|
$MAKE distfiles \
|
||||||
|egrep ^/ |sed "s|${SRCDIR}/||" \
|
| grep -E ^/ \
|
||||||
|awk '{print "echo \"aegisub-pkg/"$0"\"\n./install-sh -m 0644 \""$0"\" \"aegisub-pkg/"$0"\""}' \
|
| sed "s|${SRCDIR}/||" \
|
||||||
> ${TMPFILE}
|
| xargs -I {} ./install-sh -m 0644 "{}" "$DISTDIR/{}"
|
||||||
|
|
||||||
for i in ${EXTRA}; do
|
for i in `find . -name Makefile -or -name wscript`; do
|
||||||
echo "aegisub-pkg/$i";
|
./install-sh -m 0644 "$i" "${DISTDIR}/$i"
|
||||||
./install-sh -m 0644 $i ${distdir}/$i;
|
|
||||||
done
|
done
|
||||||
|
|
||||||
sh ${TMPFILE}
|
chmod +x ${DISTDIR}/configure
|
||||||
|
|
||||||
#rm ${TMPFILE}
|
|
||||||
|
|
|
@ -25,17 +25,22 @@ SRC = \
|
||||||
|
|
||||||
ifeq (yes, $(BUILD_BSD))
|
ifeq (yes, $(BUILD_BSD))
|
||||||
SRC += platform_unix_bsd.cpp
|
SRC += platform_unix_bsd.cpp
|
||||||
|
else
|
||||||
|
EXTRA_DIST += platform_unix_bsd.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (yes, $(BUILD_LINUX))
|
ifeq (yes, $(BUILD_LINUX))
|
||||||
SRC += platform_unix_linux.cpp
|
SRC += platform_unix_linux.cpp
|
||||||
|
else
|
||||||
|
EXTRA_DIST += platform_unix_linux.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (yes, $(BUILD_DARWIN))
|
ifeq (yes, $(BUILD_DARWIN))
|
||||||
SRC += platform_unix_osx.cpp
|
SRC += platform_unix_osx.cpp
|
||||||
|
else
|
||||||
|
EXTRA_DIST += platform_unix_osx.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
HEADER = \
|
HEADER = \
|
||||||
*.h \
|
*.h \
|
||||||
include/*.h
|
include/*.h
|
||||||
|
|
|
@ -26,69 +26,87 @@ endif
|
||||||
# AUDIO PLAYERS
|
# AUDIO PLAYERS
|
||||||
###############
|
###############
|
||||||
ifeq (yes, $(HAVE_ALSA))
|
ifeq (yes, $(HAVE_ALSA))
|
||||||
SRC_OPT += audio_player_alsa.cpp
|
|
||||||
audio_player_alsa.o: CXXFLAGS += $(CFLAGS_ALSA)
|
audio_player_alsa.o: CXXFLAGS += $(CFLAGS_ALSA)
|
||||||
LIBS += $(LIBS_ALSA)
|
LIBS += $(LIBS_ALSA)
|
||||||
|
SRC += audio_player_alsa.cpp
|
||||||
|
else
|
||||||
|
EXTRA_DIST += audio_player_alsa.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (yes, $(HAVE_PORTAUDIO))
|
ifeq (yes, $(HAVE_PORTAUDIO))
|
||||||
SRC_OPT += audio_player_portaudio.cpp
|
|
||||||
audio_player_portaudio.o: CXXFLAGS += $(CFLAGS_PORTAUDIO)
|
audio_player_portaudio.o: CXXFLAGS += $(CFLAGS_PORTAUDIO)
|
||||||
LIBS += $(LIBS_PORTAUDIO)
|
LIBS += $(LIBS_PORTAUDIO)
|
||||||
|
SRC += audio_player_portaudio.cpp
|
||||||
|
else
|
||||||
|
EXTRA_DIST += audio_player_portaudio.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (yes, $(HAVE_LIBPULSE))
|
ifeq (yes, $(HAVE_LIBPULSE))
|
||||||
SRC_OPT += audio_player_pulse.cpp
|
|
||||||
audio_player_pulse.o: CXXFLAGS += $(CFLAGS_LIBPULSE)
|
audio_player_pulse.o: CXXFLAGS += $(CFLAGS_LIBPULSE)
|
||||||
LIBS += $(LIBS_LIBPULSE)
|
LIBS += $(LIBS_LIBPULSE)
|
||||||
|
SRC += audio_player_pulse.cpp
|
||||||
|
else
|
||||||
|
EXTRA_DIST += audio_player_pulse.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (yes, $(HAVE_OPENAL))
|
ifeq (yes, $(HAVE_OPENAL))
|
||||||
SRC_OPT += audio_player_openal.cpp
|
|
||||||
audio_player_openal.o: CXXFLAGS += $(CFLAGS_OPENAL)
|
audio_player_openal.o: CXXFLAGS += $(CFLAGS_OPENAL)
|
||||||
LIBS += $(LIBS_OPENAL)
|
LIBS += $(LIBS_OPENAL)
|
||||||
|
SRC += audio_player_openal.cpp
|
||||||
|
else
|
||||||
|
EXTRA_DIST += audio_player_openal.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (yes, $(HAVE_OSS))
|
ifeq (yes, $(HAVE_OSS))
|
||||||
SRC_OPT += audio_player_oss.cpp
|
|
||||||
audio_player_oss.o: CXXFLAGS += $(CFLAGS_OSS)
|
audio_player_oss.o: CXXFLAGS += $(CFLAGS_OSS)
|
||||||
|
SRC += audio_player_oss.cpp
|
||||||
|
else
|
||||||
|
EXTRA_DIST += audio_player_oss.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# AUDIO / VIDEO SUPPORT
|
# AUDIO / VIDEO SUPPORT
|
||||||
#######################
|
#######################
|
||||||
ifeq (yes, $(HAVE_FFMS2))
|
ifeq (yes, $(HAVE_FFMS2))
|
||||||
SRC_OPT += audio_provider_ffmpegsource.cpp video_provider_ffmpegsource.cpp ffmpegsource_common.cpp
|
|
||||||
audio_provider_ffmpegsource.o video_provider_ffmpegsource.o ffmpegsource_common.o: \
|
audio_provider_ffmpegsource.o video_provider_ffmpegsource.o ffmpegsource_common.o: \
|
||||||
CXXFLAGS += $(CFLAGS_FFMS2)
|
CXXFLAGS += $(CFLAGS_FFMS2)
|
||||||
LIBS += $(LIBS_FFMS2)
|
LIBS += $(LIBS_FFMS2)
|
||||||
|
SRC += audio_provider_ffmpegsource.cpp video_provider_ffmpegsource.cpp ffmpegsource_common.cpp
|
||||||
|
else
|
||||||
|
EXTRA_DIST += audio_provider_ffmpegsource.cpp video_provider_ffmpegsource.cpp ffmpegsource_common.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
###########
|
###########
|
||||||
# SUBTITLES
|
# SUBTITLES
|
||||||
###########
|
###########
|
||||||
ifeq (yes, $(HAVE_LIBASS))
|
ifeq (yes, $(HAVE_LIBASS))
|
||||||
SRC_OPT += subtitles_provider_libass.cpp
|
|
||||||
subtitles_provider_libass.o: CXXFLAGS += $(CFLAGS_LIBASS)
|
subtitles_provider_libass.o: CXXFLAGS += $(CFLAGS_LIBASS)
|
||||||
LIBS += $(LIBS_LIBASS)
|
LIBS += $(LIBS_LIBASS)
|
||||||
|
SRC += subtitles_provider_libass.cpp
|
||||||
|
else
|
||||||
|
EXTRA_DIST += subtitles_provider_libass.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
############
|
############
|
||||||
# AUTOMATION
|
# AUTOMATION
|
||||||
############
|
############
|
||||||
ifeq (yes, $(HAVE_AUTO4_LUA))
|
ifeq (yes, $(HAVE_AUTO4_LUA))
|
||||||
SRC_OPT += auto4_lua.cpp auto4_lua_assfile.cpp auto4_lua_dialog.cpp auto4_lua_progresssink.cpp auto4_lua_scriptreader.cpp
|
|
||||||
auto4_lua.o auto4_lua_assfile.o auto4_lua_dialog.o auto4_lua_progresssink.o auto4_lua_scriptreader.o: CXXFLAGS += $(CFLAGS_LUA)
|
auto4_lua.o auto4_lua_assfile.o auto4_lua_dialog.o auto4_lua_progresssink.o auto4_lua_scriptreader.o: CXXFLAGS += $(CFLAGS_LUA)
|
||||||
LIBS += $(LIBS_LUA)
|
LIBS += $(LIBS_LUA)
|
||||||
|
SRC += auto4_lua.cpp auto4_lua_assfile.cpp auto4_lua_dialog.cpp auto4_lua_progresssink.cpp auto4_lua_scriptreader.cpp
|
||||||
|
else
|
||||||
|
EXTRA_DIST += auto4_lua.cpp auto4_lua_assfile.cpp auto4_lua_dialog.cpp auto4_lua_progresssink.cpp auto4_lua_scriptreader.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
##############
|
##############
|
||||||
# MISCELLANOUS
|
# MISCELLANOUS
|
||||||
##############
|
##############
|
||||||
ifeq (yes, $(HAVE_HUNSPELL))
|
ifeq (yes, $(HAVE_HUNSPELL))
|
||||||
SRC_OPT += spellchecker_hunspell.cpp
|
|
||||||
spellchecker_hunspell.o: CXXFLAGS += $(CFLAGS_HUNSPELL)
|
spellchecker_hunspell.o: CXXFLAGS += $(CFLAGS_HUNSPELL)
|
||||||
LIBS += $(LIBS_HUNSPELL)
|
LIBS += $(LIBS_HUNSPELL)
|
||||||
|
SRC += spellchecker_hunspell.cpp
|
||||||
|
else
|
||||||
|
EXTRA_DIST += spellchecker_hunspell.cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
|
@ -102,10 +120,6 @@ font_file_lister_fontconfig.o: CXXFLAGS += $(CFLAGS_FONTCONFIG)
|
||||||
text_file_reader.o: CXXFLAGS += -D_X86_
|
text_file_reader.o: CXXFLAGS += -D_X86_
|
||||||
video_provider_manager.o: CXXFLAGS += $(CFLAGS_FFMS2)
|
video_provider_manager.o: CXXFLAGS += $(CFLAGS_FFMS2)
|
||||||
|
|
||||||
|
|
||||||
# Ensure any optional source files above are added for compilation.
|
|
||||||
SRC += $(SRC_OPT)
|
|
||||||
|
|
||||||
SRC += \
|
SRC += \
|
||||||
MatroskaParser.c \
|
MatroskaParser.c \
|
||||||
aegisublocale.cpp \
|
aegisublocale.cpp \
|
||||||
|
@ -252,23 +266,26 @@ SRC += \
|
||||||
|
|
||||||
HEADER += \
|
HEADER += \
|
||||||
*.h \
|
*.h \
|
||||||
|
command/*.h \
|
||||||
|
config/*.h \
|
||||||
include/aegisub/*.h \
|
include/aegisub/*.h \
|
||||||
config/*.h
|
gl/*.h
|
||||||
|
|
||||||
|
EXTRA_DIST += \
|
||||||
EXTRA_DIST = \
|
bitmaps/button/*.png \
|
||||||
$(SRC_OPT) \
|
|
||||||
*.hxx
|
|
||||||
|
|
||||||
EXTRA_DIST= \
|
|
||||||
bitmaps/16/*.png \
|
|
||||||
bitmaps/24/*.png \
|
|
||||||
bitmaps/misc/*.png \
|
bitmaps/misc/*.png \
|
||||||
bitmaps/windows/eyedropper.cur \
|
bitmaps/windows/eyedropper.cur \
|
||||||
bitmaps/windows/icon.ico
|
bitmaps/windows/icon.ico \
|
||||||
|
bitmaps/*.respack
|
||||||
|
|
||||||
|
EXTRA_DIST += \
|
||||||
|
command/Makefile.inc \
|
||||||
|
libresrc/Makefile.inc
|
||||||
|
|
||||||
include command/Makefile.inc
|
include command/Makefile.inc
|
||||||
include libresrc/Makefile.inc
|
include libresrc/Makefile.inc
|
||||||
|
|
||||||
include ../Makefile.target
|
include ../Makefile.target
|
||||||
-include *.d
|
-include *.d
|
||||||
|
-include command/*.d
|
||||||
|
-include libresrc/*.d
|
||||||
|
|
|
@ -18,4 +18,8 @@ CLEANFILES += \
|
||||||
libresrc/default_config.cpp \
|
libresrc/default_config.cpp \
|
||||||
libresrc/default_config.h
|
libresrc/default_config.h
|
||||||
|
|
||||||
GLOBAL_DEPS = libresrc/bitmap.h libresrc/default_config.h
|
GLOBAL_DEPS += libresrc/bitmap.h libresrc/default_config.h
|
||||||
|
|
||||||
|
EXTRA_DIST += \
|
||||||
|
libresrc/*.json \
|
||||||
|
libresrc/*.respack
|
||||||
|
|
|
@ -13,6 +13,7 @@ endif
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
osx-bundle-restart-helper.c \
|
osx-bundle-restart-helper.c \
|
||||||
osx-bundle.sh \
|
osx-bundle.sh \
|
||||||
|
osx-bundle.sed.in \
|
||||||
osx-dmg.sh \
|
osx-dmg.sh \
|
||||||
osx-fix-libs.py
|
osx-fix-libs.py
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue