commit 6972efbc1ae9e513c8a670223848ef65bb22715c parent 3092aa0329c3532faa8b519137d1239782556baf Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sun, 27 Apr 2014 15:30:37 +0200 add ii Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org> Diffstat:
A | ii/config.mk | | | 28 | ++++++++++++++++++++++++++++ |
A | ii/ii.mk | | | 12 | ++++++++++++ |
A | ii/mkfile | | | 5 | +++++ |
3 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/ii/config.mk b/ii/config.mk @@ -0,0 +1,28 @@ +# Customize to fit your system + +# paths +#PREFIX = /usr/local +BINDIR = ${PREFIX}/bin +MANDIR = ${PREFIX}/share/man +MAN1DIR = ${MANDIR}/man1 +DOCDIR = ${PREFIX}/share/doc/ii + +# Set the following to install to a different root +#DESTDIR = + +#INCDIR = ${PREFIX}/include +#LIBDIR = ${PREFIX}/lib +VERSION = 1.7 + +# includes and libs +#INCLUDES = -I. -I${INCDIR} -I/usr/include +#LIBS = -L${LIBDIR} -L/usr/lib -lc +# uncomment and comment other variables for compiling on Solaris +#LIBS = -L${LIBDIR} -L/usr/lib -lc -lsocket -lnsl +#CFLAGS = -g ${INCLUDES} -DVERSION=\"${VERSION}\" + +# compiler +#CC = cc +LD = ${CC} +CFLAGS = -g -W -Wall -DVERSION=\"${VERSION}\" +LDFLAGS = ${LIBS} diff --git a/ii/ii.mk b/ii/ii.mk @@ -0,0 +1,12 @@ +TARG = ii +INSTALL_BIN = \ + ii +INSTALL_MAN1 = \ + ii.1 + +<$mkbuild/mk.common + +ii:QV: + # overwrite default config.mk to allow overriding some variables. + cp ../config.mk config.mk + CC="${CC} -static" make -j$nprocs PREFIX="$prefix" DESTDIR="$ROOT" diff --git a/ii/mkfile b/ii/mkfile @@ -0,0 +1,5 @@ +<$mkbuild/mk.3rdparty + +src = ii +git = git://git.suckless.org/ii +mkfile = ../ii.mk