]> git.saurik.com Git - apt.git/blobdiff - methods/makefile
merge with my debian-sid branch
[apt.git] / methods / makefile
index 5c4fa82bf7a9795e12ede86a64fd3afef34bc134..6ba51058ebb3d25ff554af60254781afd6cb041b 100644 (file)
@@ -6,9 +6,8 @@ SUBDIR=methods
 include ../buildlib/defaults.mak
 BIN := $(BIN)/methods
 
-# FIXME..
-LIB_APT_PKG_MAJOR = 4.6
-APT_DOMAIN := libapt-pkg$(LIB_APT_PKG_MAJOR)
+include ../buildlib/libversion.mak
+APT_DOMAIN := libapt-pkg$(LIBAPTPKG_MAJOR)
 
 # The file method
 PROGRAM=file
@@ -40,7 +39,7 @@ include $(PROGRAM_H)
 
 # The cdrom method
 PROGRAM=cdrom
-SLIBS = -lapt-pkg $(INTLLIBS)
+SLIBS = -lapt-pkg -ldl $(INTLLIBS)
 LIB_MAKES = apt-pkg/makefile
 SOURCE = cdrom.cc
 include $(PROGRAM_H)
@@ -68,7 +67,7 @@ include $(PROGRAM_H)
 
 # The rred method
 PROGRAM=rred
-SLIBS = -lapt-pkg $(SOCKETLIBS) $(INTLLIBS)
+SLIBS = -lapt-pkg -lz $(SOCKETLIBS) $(INTLLIBS)
 LIB_MAKES = apt-pkg/makefile
 SOURCE = rred.cc
 include $(PROGRAM_H)
@@ -87,9 +86,16 @@ LIB_MAKES = apt-pkg/makefile
 SOURCE = mirror.cc http.cc rfc2553emu.cc connect.cc
 include $(PROGRAM_H)
 
-# SSH and bzip2 method symlink
-binary: $(BIN)/ssh $(BIN)/bzip2 $(BIN)/lzma
-veryclean: clean-$(BIN)/ssh clean-$(BIN)/bzip2 clean-$(BIN)/lzma
+# The gzip method
+PROGRAM=bzip2
+SLIBS = -lapt-pkg $(INTLLIBS)
+LIB_MAKES = apt-pkg/makefile
+SOURCE = bzip2.cc
+include $(PROGRAM_H)
+
+# SSH and lzma method symlink
+binary: $(BIN)/ssh $(BIN)/lzma $(BIN)/xz
+veryclean: clean-$(BIN)/ssh clean-$(BIN)/lzma clean-$(BIN)/xz
 
 $(BIN)/ssh:
        echo "Installing ssh method link"
@@ -97,13 +103,14 @@ $(BIN)/ssh:
 clean-$(BIN)/ssh:
        -rm $(BIN)/ssh
 
-$(BIN)/bzip2:
-       echo "Installing bzip2 method link"
-       ln -fs gzip $(BIN)/bzip2
 $(BIN)/lzma:
        echo "Installing lzma method link"
-       ln -fs gzip $(BIN)/lzma
-clean-$(BIN)/bzip2:
-       -rm $(BIN)/bzip2
+       ln -fs bzip2 $(BIN)/lzma
 clean-$(BIN)/lzma:
        -rm $(BIN)/lzma
+
+$(BIN)/xz:
+       echo "Installing xz method link"
+       ln -fs bzip2 $(BIN)/xz
+clean-$(BIN)/xz:
+       -rm $(BIN)/xz