]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Enable build on FreeBSD ports (includes DragonFly BSD) 265/head 266/head
authorjrmarino <draco@marino.st>
Sun, 31 Jul 2016 00:10:36 +0000 (19:10 -0500)
committerjrmarino <draco@marino.st>
Sun, 31 Jul 2016 00:11:15 +0000 (19:11 -0500)
Zstd has been introduced to FreeBSD ports
(http://www.freshports.org/archivers/zstd/) which DragonFly BSD also
uses.  FreeBSD and DragonFly use the install targets (albeit modified in
some cases) so they must be added to the associated Makefile filters.

Makefile
lib/Makefile
programs/Makefile

index 9f5e1ebfaf633fe3e76055eab40d50146a4aac53..c7e79832afbc68ad5c4e0e91d31c9034c5507121 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -70,10 +70,10 @@ clean:
        @echo Cleaning completed
 
 
-#------------------------------------------------------------------------
-#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets
-#------------------------------------------------------------------------
-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU))
+#----------------------------------------------------------------------------------
+#make install is validated only for Linux, OSX, kFreeBSD, Hurd and some BSD targets
+#----------------------------------------------------------------------------------
+ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly))
 HOST_OS = POSIX
 install:
        $(MAKE) -C $(ZSTDDIR) $@
index 76731abc1011b7a18cb439bb218e8f81121468c1..6e0b014b3718dc178eb1cf9a61671991f25e4095 100644 (file)
@@ -98,8 +98,8 @@ clean:
        @echo Cleaning library completed
 
 #------------------------------------------------------------------------
-#make install is validated only for Linux, OSX, kFreeBSD and Hurd targets
-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU))
+#make install is validated only for Linux, OSX, kFreeBSD, Hurd and some BSD targets
+ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly))
 
 libzstd.pc:
 libzstd.pc: libzstd.pc.in
index a55268a011f2fa5d8438d4c5cf9a143f365a2392..e9c99fd97c0e83786bf3b868f41a6ada8601b2a8 100644 (file)
@@ -154,10 +154,10 @@ clean:
        @echo Cleaning completed
 
 
-#---------------------------------------------------------------------------------
-#make install is validated only for Linux, OSX, kFreeBSD, Hurd and OpenBSD targets
-#---------------------------------------------------------------------------------
-ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD))
+#----------------------------------------------------------------------------------
+#make install is validated only for Linux, OSX, kFreeBSD, Hurd and some BSD targets
+#----------------------------------------------------------------------------------
+ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD DragonFly))
 HOST_OS = POSIX
 install: zstd
        @echo Installing binaries