[PATCH] Fix paths for building in FreeBSD

Dan Rue drue at therub.org
Wed Oct 17 18:23:10 CEST 2012


---
 Makefile          |    4 ++++
 cgit.conf.freebsd |    6 ++++++
 2 files changed, 10 insertions(+)
 create mode 100644 cgit.conf.freebsd

diff --git a/Makefile b/Makefile
index 1e34129..7a330e7 100644
--- a/Makefile
+++ b/Makefile
@@ -49,6 +49,10 @@ ifeq ($(uname_O),Cygwin)
        NEEDS_LIBICONV = YesPlease
 endif

+ifeq ($(uname_S),FreeBSD)
+       include cgit.conf.freebsd
+endif
+
 #
 # Let the user override the above settings.
 #
diff --git a/cgit.conf.freebsd b/cgit.conf.freebsd
new file mode 100644
index 0000000..883d551
--- /dev/null
+++ b/cgit.conf.freebsd
@@ -0,0 +1,6 @@
+# FreeBSD-specific Paths
+LDFLAGS = -L/usr/local/lib
+CFLAGS = -I/usr/local/include
+prefix = /usr/local
+NEEDS_LIBICONV = yes
+GIT_OPTIONS = prefix=/usr/local
--
1.7.10.3





More information about the CGit mailing list