ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

cgit.mk (617B)


      1 # TODO: add lua support? and fix filter_write() in filter.c
      2 #       see: cgit-dlsym.patch
      3 # TODO: -DNO_LUA=1 ?
      4 TARG = cgit
      5 DEPS = git openssl lua zlib
      6 BIN = cgit
      7 OBJ = `{ ls *.c | sed 's/.$/o/'}
      8 
      9 INSTALL_BIN = cgit
     10 
     11 <../v.mk
     12 
     13 <$mkbuild/mk.default
     14 
     15 LOCAL_CFLAGS = \
     16 	-DSHA1_HEADER=\"${openssl_includedir}/openssl/sha.h\" \
     17 	-DCGIT_VERSION=\"$v\" \
     18 	-DCGIT_CACHE_ROOT=\"/var/cache/cgit\" \
     19 	-DCGIT_SCRIPT_NAME=\"cgit.cgi\" \
     20 	-DCGIT_SCRIPT_PATH=\"/var/www/htdocs/cgit\" \
     21 	-DCGIT_DATA_PATH=\"/var/www/htdocs/cgit\" \
     22 	-DCGIT_CONFIG=\"/etc/cgitrc\"
     23 
     24 LOCAL_LDFLAGS = \
     25 	${git_libdir}/xdiff/lib.a -lgit -lssl -lcrypto -lz