ports

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

git.mk (1342B)


      1 TARG = git
      2 DEPS = curl libressl zlib
      3 
      4 <$mkbuild/mk.common-noinst
      5 
      6 git:QV:
      7 	export CFLAGS="$CFLAGS $DEPS_CFLAGS"
      8 	export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
      9 	# https://sourceware.org/bugzilla/show_bug.cgi?id=16698
     10 	test x"$arch" = x"arm" && export LDFLAGS="`printf "%s" \"$LDFLAGS\" | sed 's@-Wl,--gc-sections@@g'`"
     11 	# NOTE: "$PREFIX/" is needed to set the proper mandir.
     12 	make CURL_LIBCURL="${curl_libdir}/libcurl.a ${libressl_libdir}/libssl.a ${libressl_libdir}/libcrypto.a" \
     13 	CC="$CC -static" \
     14 		AR="$AR" \
     15 		prefix="$PREFIX/" gitexecdir="$PREFIX"/lib/git-core \
     16 		NO_TCLTK=1 NO_PYTHON=1 NO_EXPAT=1 NO_GETTEXT=1 \
     17 		CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS -static" \
     18 		DESTDIR="$ROOT" -j$nprocs V=1 all
     19 
     20 install:
     21 	export CFLAGS="$CFLAGS $DEPS_CFLAGS"
     22 	export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS"
     23 	# https://sourceware.org/bugzilla/show_bug.cgi?id=16698
     24 	test x"$arch" = x"arm" && export LDFLAGS="`printf "%s" \"$LDFLAGS\" | sed 's@-Wl,--gc-sections@@g'`"
     25 	# NOTE: "$PREFIX/" is needed to set the proper mandir.
     26 	make CURL_LIBCURL="${curl_libdir}/libcurl.a ${libressl_libdir}/libssl.a ${libressl_libdir}/libcrypto.a" \
     27 	CC="$CC -static" \
     28 		AR="$AR" \
     29 		prefix="$PREFIX/" gitexecdir="$PREFIX"/lib/git-core \
     30 		NO_TCLTK=1 NO_PYTHON=1 NO_EXPAT=1 NO_GETTEXT=1 \
     31 		CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS -static" \
     32 		DESTDIR="$ROOT" -j$nprocs V=1 all install